Questions tagged [azure-python-sdk]

146 questions
0
votes
1 answer

Azure ML Studio Dataset is taking forever to load

I've machine learning model in production that has its predictions being used to make a Azure ML File Dataset. The Dataset is compose by 94 files and has the size of 8,618 MiB. I'm using a compute instance of the time STANDARD_E4S_V3` and trying to…
0
votes
1 answer

Is there a more efficient way to interact with ItemPaged objects from azure-data-tables SDK function query_entities?

The quickest method I have found is to just convert the ItemPaged object to a list using list() and then I'm able to manipulate/extract using a Pandas DataFrame. However, if I have millions of results, the process can be quite time-consuming,…
0
votes
2 answers

How to lock storage accounts in Azure using Python SDK

I am using python SDK to lock a particular azure resource. Although I found documentation, I am getting exceptions as a resource not found while I am trying to lock the storage account. As I am trying to store accounts in a Resource Grp, I'm using…
0
votes
1 answer

Error when calling the Azure Quota SDK for python for Standard NCASv3_T4 Family types of instances

I have been trying to call the quota.get() method and it works for all resource names that doesn't have a space or underscore in the name, for example: "standardNCFamily" works but not for the rest like, "Standard NCASv3_T4 Family" does not. #…
guidingfox
  • 77
  • 2
  • 12
0
votes
1 answer

Azure function published to app from cli not listed under functions

I've the following directory structure for an Azure function app: . |-test |-TriggerTrainingApp -host.json |---azure_ws |---test_func -__init__.py -function.json -requirements.json …
0
votes
1 answer

How to upload the a folder into Azure blob storage while preserving the structure in Python?

I've wrote the following code to upload a file into blob storage using Python: blob_service_client = ContainerClient(account_url="https://{}.blob.core.windows.net".format(ACCOUNT_NAME), …
Wiliam
  • 1,078
  • 10
  • 21
0
votes
2 answers

Azure Mlflow Run id not found using Python SDK azure-ai-ml v2

I'm using Azure ML jobs to run an experiment using python sdk-v2, and I haven't be able to access into the run logs after the run is completed. I'm not sure what is happening, if I'm missing some permission or a previous step. It just says "run…
0
votes
2 answers

Azure: Python SDK to list and calculate expired app registration client secrets

I am looking for a method to connect to Azure SDK via Python to get a list of expired app registration secrets before the 30 day expiration limit. I know this can be done using Powershell, but how would we would go with plugging Python SDK into…
0
votes
2 answers

Can't Create Blob Container: This request is not authorized to perform this operation

I'm trying to create a blob container within an Azure storage account with Azure's Python API. def create_storage_container(storageAccountName: str, containerName: str): print( f"Creating storage container '{containerName}'", …
0
votes
1 answer

Reading NLP models from Azure blob container

I have uploaded the sentence transformer model on my blob container. The idea is to load the model into a Python notebook from the blob container. To do this I do the following: from azure.storage.blob import BlobServiceClient, BlobClient,…
0
votes
1 answer

Azure Blob Storage Upload Performance (python async)

I'm uploading concurrently 1500 blobs (1Mo max per blob) to a container in Azure Storage Account (StorageV2 (general purpose v2)) So far i'm uploading them via python package azure-blob_storage with the pseudo-code below. async def…
0
votes
1 answer

Azure Python SDK to get cost of individual resources

I want to get cost of individual resources using python script is thr any way to get the price of VM,Database etc.,
0
votes
1 answer

AuthorizationPermissionMismatch when copy blobs across different storage accounts

I am using below code to copy blob across different storage accounts, but it fails with the below error src_blob =…
0
votes
2 answers

Why isn't ContentSettings cache_control max-age being honored in Azure storage blob via Python?

I can't seem to activate Cache-Control max-age in an Azure storage blob in Python via the following code: contentSettings = ContentSettings(cache_control="max-age=86400") containerClient.upload_blob(blobname, theBytes, length=byteCount, …
0
votes
1 answer

Azure Python SDK add tag to subscription

I am new to use Azure python sdk. I have been using the following command to add tags to a subscription: az tag update --operation merge --resource-id /subscriptions/{subscription-id} --tags = The above command works good and…
rammanoj
  • 479
  • 8
  • 26