Questions tagged [azure-python-sdk]
146 questions
0
votes
1 answer
from msrestazure.azure_active_directory import ( ModuleNotFoundError: No module named 'msrestazure'
I have written the code to list down the Azure Virtual Machines. but I am getting this error. when I try pip install msrest or pip install msrestazure. none of the commands works. It neither gives error nor starts the installation.
Traceback (most…

Hassan Turi
- 334
- 3
- 14
0
votes
1 answer
How to check OS detailed information of Azure virtual machine using Python SDK
I have written this code to list down the Azure Virtual Machine. Now I want to print all the details related to the OS disks such as OS, disk size, encryption settings, and other details related to Azure Virtual Machine
from azure.mgmt.resource…

Hassan Turi
- 334
- 3
- 14
0
votes
1 answer
How to delete a specific document from azure search index?
I have a specific number of documents from the azure search index to be deleted and I need a solution in python for the same.
I created an index in azure search already and the format of the index is given below
> {
> "@odata.context":…
0
votes
1 answer
Enable VM Insights (in Azure) using Azure Python SDK
Is there a way to enable VM insights in azure using azure python sdk ?
Need to enable this so that the InsightMetrics/PerfMetrics are available in Log Analytics.
Thanks.

Palakonda Shiva Prasad
- 29
- 1
- 5
0
votes
1 answer
What are valid Azure ML Workspace connection argument options?
I want to build an Azure ML environment with two python packages that I have in Azure Devops.
For this I need a workspace connection to Azure Devops. One package is published to an artifact feed and I can access it using the python SDK using a…

Kyllian Broers
- 1
- 1
0
votes
1 answer
Trying to start several ADf triggers using asyncio with azure python SDK, I get RuntimeError: got Future attached to a different loop
I'm trying to write a simple python script to start several triggers in my Azure Data Factory.
However, when I tried using the aio variants of the azure SDK classes, I get the following error:
RuntimeError: Task

Antoine
- 3
- 1
0
votes
1 answer
Uploading folders on Azure Datalake storage failed using Azure Storage Explorer and python SDK both
I am trying to upload my on-premise data on the Azure Datalake storage, the data is about 10 GB in total and divided into multiple folders. I have tried multiple ways to upload the files, the size of each file varies from some KBs to 56MBs, and all…

Rebe
- 37
- 2
- 12
0
votes
1 answer
How to provision a virtual machine in azure using python SDK from an image in azure?
I want to write a python code equivalent of creating a virtual machine from the azure portal using Create Vm button in an image resource which is present in a resource group in azure.
Any pointers or documentation related to this?

Shailesh Tanwar
- 122
- 1
- 9
0
votes
1 answer
' ClientSecretCredential ' object has no attribute 'signed_session' error occurs when run the code below to get Key Vault infos
subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"]
tenant_id = os.environ["AZURE_TENANT_ID"]
client_id = os.environ["AZURE_CLIENT_ID"]
client_secret = os.environ["AZURE_CLIENT_SECRET"]
credentials = ClientSecretCredential(tenant_id=tenant_id,…

Hilal
- 41
- 7
0
votes
1 answer
how to download files from python azure function with post method
**I am creating azure python function which will eventually create kml file with some information and now when i call the function URL with post method it should download me the file **
I have written simple code but its downloading…

vishal
- 209
- 2
- 4
- 14
0
votes
0 answers
Python Code to run Azure Devops Pipelines
The below solution is to trigger a pipeline by providing a pipeline ID explicitly in code. But If we have 5 pipelines created and if we run python code it should run the all pipeline that we created and important thing here is, Once we run python…
0
votes
1 answer
How can I append JSON data to an existing JSON file stored in Azure blob storage through python?
I've been looking around the web to append data to an existing JSON file in azure storage, I also check on this post, but it didn't help. I have millions of JSON records coming in real-time which are available in python list and I want to append…

zawster
- 53
- 9
0
votes
2 answers
GraphRbacManagementClient not working with Managed Identity
I have a function app in azure that needs to read AAD group information.
This function app has system assigned managed identity enabled and the MSI has Directory.ReadAll permission on Microsoft Graph.
I use this code to get list of AAD Groups:
…

Meenakshi
- 33
- 3
0
votes
1 answer
Copy directory in blob storage across different storage accounts
I am working on a data transfer service, which copies data in a specific directory of the container to the destination container. This service will be fed with src-container-URL with SAS token and the directory which needs to be copied as inputs.…

harish chava
- 252
- 2
- 19
0
votes
1 answer
Azure API Not Working(sorry for the title I have no idea what's wrong)
As I said already sorry for the title. I have never worked with Azure API and have no idea what is wrong with the code, as I just copied from the documentation and put in my information.
Here is the code:
from azure.cognitiveservices.speech import…

Bambi2k21
- 15
- 7