Questions tagged [azure-python-sdk]

146 questions
0
votes
2 answers

can you deploy `appsettings.json` to azure function in python (v2 programming model)?

Can you create and use appsettings.json in the repo of an Azure Function in Python (v2 programming model), and so that when you deploy this function the settings end-up in App Settings in the Azure Portal? How to do this? I thought such method is…
average.everyman
  • 123
  • 1
  • 12
0
votes
3 answers

Is there a way to get list of folders from a datastore in Azure ML studio with Python SDK v2

I have a situation where i want to get a list of all the folders from the registered datastore in azure ML studio. We are able to browse the folders in the data section after selecting the particular datastore but i didn't find anyway to see the…
0
votes
0 answers

Azure Form Recognizer Python SDK : API calls are successful but the values for key-value pairs are empty(Nonetype)

As mentioned above, I created a custom model using form-recognizer studio and calling it with python via SDK. The model worked fine last week but it failed all of a sudden this week. The API calls are still successful however the Key-Value pairs it…
0
votes
1 answer

Python: How to copy data from snapshot to disk using start_copy_from_url api

I am using Microsoft Azure SDK for Python in project. I want to copy data from snapshot to disk. For this task I am using readable SASuri of Snapshot and writable SASuri of Disk. Here is the example I am using to transfer data. blob_client =…
Nilesh
  • 3
  • 2
0
votes
2 answers

generating test data and sending it to the azure iot cloud using python

I have to generate test data periodically like every 6 minute and send it to azure iot cloud using python, And use that data to manipulate or control my other device both physical(esp8266 or arduino) and software one. i actually have very little bit…
0
votes
0 answers

Not able to set pipeline parameters for a Azure ML pipeline run via python SDK

I am trying to set up and run an ML pipeline on Azure ML studio. I created the pipeline and got a REST endpoint published for it. When I run the pipeline endpoint using the UI, it works as expected. I am trying to get it to run using the python SDK…
Ananda
  • 2,925
  • 5
  • 22
  • 45
0
votes
1 answer

Copy blob from one storage account to another storage account(both are private) using sas token by python sdk

from azure.storage.blob import BlobClient, BlobServiceClient from azure.storage.blob import ResourceTypes, AccountSasPermissions from azure.storage.blob import generate_account_sas from datetime import datetime, timedelta #Credentials for…
0
votes
0 answers

How can I get the "versioning of blobs" setting for a storage account via Azure Python SDK or REST API

I want to be able to programmatically find out if versioning of blobs is enabled on a storage account. Via the web console I can see this in Data Protection -> Tracking. I cannot find any reference to how to get (or set) this setting using the…
0
votes
1 answer

Azure Python SDK ClientSecretCredential fetch the values from Azure keyvault

Unable to get the values of tenant_id, client_id,client_secret which are stored in Azure Keyvault, by using library from azure.identity import ClientSecretCredential. I have installed and imported the modules azure-keyvault-secrets azure-identity…
0
votes
0 answers

List azure aks containers that haven't been restarted in 31 days or more and are at least 31 days or more old with python sdk?

I'm trying to get a list of azure aks containers that haven't been restarted in 31 days or more, are running, and are created at least 31 days ago. from azure.mgmt.containerservice import ContainerServiceClient from azure.identity import…
0
votes
1 answer

list orphan disks using python sdk

Trying to get the list unattached disks/orphan disks on Azure automation account using python sdk runbook version is 3.8, getting error as ** Failed Traceback (most recent call last): File…
User
  • 31
  • 4
0
votes
1 answer

Possible to use Azure SDK for python to query azure service health?

I'm interested in querying service health (as opposed to resource health). As described here; "Service Health provides a personalized view of the status of your Azure services and regions, as well as information about current incidents, planned…
krafty1010
  • 19
  • 3
0
votes
3 answers

Azure.mgmt.containerservice.ContainerServiceClient import fails with No module named 'azure.mgmt'

I am working on automating certain tasks related to Azure Kubernetes. For this, I want to connect to AKS to list pods and to get live logs which we get through kubectl. However, when I import the azure module as follows from…
Pallavi
  • 548
  • 2
  • 9
  • 18
0
votes
2 answers

in Azure, how to list all the subscriptions under a management group by using Python SDK?

I am trying to list all the Azure subscriptions under a specific management group by using Azure Python SDK. But I couldn't find any function which retrieves them. Do you have any idea?
0
votes
1 answer

Azure Key Vault Secrets vs Keys - where to store the private keys in AzureKeyVault?

I wanted to store the public private keys (generated from below commands) into Azure Key Vault. private-key command: openssl genrsa 2048 | openssl pkcs8 -topk8 -v2 des3 -inform PEM -out rsa_key.p8 private-key command: openssl rsa -in rsa_key.p8…
Srik
  • 21
  • 2