Questions tagged [azure-python-sdk]
146 questions
2
votes
1 answer
How to create a URL for Azure File Share with SAS
I already know how to create a download link using SAS to create a downloadable link for a Blob in Azure as per the docs. Using this code:
sas = generate_blob_sas(
account_name="account",
container_name="container",
blob_name="myblob",
…

mp252
- 453
- 1
- 6
- 18
2
votes
1 answer
Python - Azure function service bus trigger batch processing
I am using Azure function service bus trigger in Python to receive messages in batch from a service bus queue. Even though this process is not well documented in Python, but I managed to enable the batch processing by following the below Github…

Niladri
- 5,832
- 2
- 23
- 41
2
votes
1 answer
Slow upload to azure blob storage with python
The Api receive the file, than tries to create an unique blob name.
Than I upload in chunks of 4MB to the blob. Each chunk takes something about 8 seconds, is this normal? My upload speed is 110Mbps. I tried uploading a 50MB file and it took almost…

Mikhael Abdallah
- 260
- 1
- 7
2
votes
0 answers
How to iterate over azure.core.paging.ItemPaged and get the peering name?
I have created the below code but when I execute it it gives me an error as Iterator object.
If I apply for loop for data it doesn't give me any output.Any advice as how to pull data out of that object, I also explored the azure provided virtual…

Ghost rider
- 43
- 1
- 9
2
votes
2 answers
ERROR 'ClientSecretCredential' object has no attribute 'signed_session'
I was trying to collect the List of Deny Assignments present in a particular tenant, so I passed the required arguments here:
tenant_id = arguments['tenant_id']
client_id = arguments['client_id']
client_secret = arguments['client_secret']
I created…

gnsharans
- 21
- 3
2
votes
2 answers
Azure cost analysis for a particular subscription using Python SDK
So I'm trying to automate fetching the current cost and cost forecast (Like it is shown under cost analysis for a particular subscription) for a particular subscription using python SDK but I haven't been able to find a single API that does this…

Enoptix
- 23
- 4
2
votes
1 answer
Generate Azure storage sas token with python or cli without account key
All commands in the Azure Python sdk that targets Storage seems to want the account key or a sas token.
If I'm running code in command line and have authenticated with az login or am in an AzureCli task in Azure Devops, can I then generate a sas…

Mathias Rönnlund
- 4,078
- 7
- 43
- 96
2
votes
1 answer
Printing list of Virtual Machines
I want to list down my vms on my azure. This code is running correctly but the I am getting output in the form of object address. how to convert this object address to readable information. the ouput is…

Hassan Turi
- 334
- 3
- 14
2
votes
1 answer
How to publish events in azure event grid to a topic in python?
Unable to import the eventgrid modules in my VS Code, I have added all the modules in requirement.txt and pip installed from my cmd.
Also, below is the python function which I am looking and trying with:
def publish_event():
# authenticate…

Rishika
- 53
- 1
- 4
2
votes
1 answer
Azure Machine Learning Python Module failing to Execute Calls to Cognitive Services
I have created a Pipeline in Azure ML which makes calls to Azure Cognitive Services Text Analytics using its Python API. When I run the code I have written locally, it executes without error, but when run it in the pipeline it fails to perform the…

Angus B
- 129
- 7
2
votes
3 answers
Azure Python SDK: BlobServiceClient vs. BlobClient?
Most (all?) of the Azure Storage Python SDK examples I've seen demonstrate creating a BlobServiceClient in order to then create a BlobClient for uploading / downloading blobs (ref1, ref2, etc.).
Why create a BlobServiceClient then a BlobClient…

SeaDude
- 3,725
- 6
- 31
- 68
1
vote
0 answers
How to catch throttling exceptions in Azure Python SDK
How can I catch throttling exceptions (429 status code) in Azure's Python SDK?
In the example code below, I would expect to quickly (after many iterations over the while loop) be throttled. When a 429 throttled response is returned, I would expect…

Nessy
- 41
- 4
1
vote
1 answer
Identify Storage Accounts that are not having any resources like tables, containers.. using Python Sdk
List the storage accounts that are not having containers,tables,queues,fileshares using python sdk on azure automation account python version 3.8. Below is the script which im trying to get the same but getting error **as containers =…

DSH
- 69
- 1
- 8
1
vote
1 answer
Is it better practice/for scalability to store many blobs or one append blob for data captured per-hour?
I am storing data (JSON) into blobs in Azure, capturing it hourly to create relatively small JSON documents. Between backup times, I may have produce 10s or 100s (unlikely 1000s, but possible) of these documents that I then want to backup into blobs…

Joe Moon
- 104
- 1
- 10
1
vote
0 answers
How to check which credential Azure python SDK class DefaultAzureCredential is using for login
I'm using Azure SDK for python in the machine learning env and to create a Workspace instance I'm using the following code.
from azure.identity import DefaultAzureCredential
from azureml.core import Workspace
credential =…

Gabriel Padilha
- 121
- 8