Questions tagged [azure-python-sdk]
146 questions
0
votes
1 answer
Creating Azure Recovery Service Vault - Python SDK - bad request
I am trying to create a Recovery Service Vault in Azure using Python SDK.
Package version: azure-mgmt-recoveryservices==2.0.0
Code snippet:
client=RecoveryServicesClient(client_secret_credential,…

Robert
- 127
- 2
- 11
0
votes
1 answer
Unable To Generate Azure CustomerProvidedEncryptionKey (cpk)
I am attempting to move to Azure Blob Storage from AWS S3, but am facing some issues with generating the customer provided encryption key. For reference, in AWS, it is possible to have server-side encryption enabled without too much trouble (AWS…

Senarii
- 11
- 4
0
votes
0 answers
Azure function unable to send messages to topic
I am trying to solve this issue on which I don't understand fully why is not working.
I have 2 topics. TOPIC_Aon which I can send my messages and I receive them correctly. And once the message has been received, I would like to send it to another…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
1 answer
Azure Function app serviceBus ImportError: cannot import name 'c_uamqp'
I have an azure function app to trigger in event of a message sent to service bus.
The code logic works just fine and I can manually send a message to the service bus, run my python code to receive that message and it works just fine.
But when I…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
0 answers
Azure Function App Service Bus topic ImportError module c_uamqp
I hope somebody can help me to understand what I am doing wrong with this azure function.
My idea is structure as follow.
I have 2 topics. TOPIC_A is designed to receive a message and process it and send it to TOPIC_B which I want just to have that…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
1 answer
Azure function Time Trigger sdk python
I have a fully working python script that connects to a key vault, retrieve some secrets from them and use those secrets to perform some backup.
Goes without saying that locally this code works just fine:
import datetime
import logging
import…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
1 answer
Azure Python SDK retrieve Key Vault secret for storage account
I have the following code for a key vault to retrieve the secret and be able to use them in a storage account backup. The following code for the key vault is the following
keyvault_name = f'keyvault-link'
KeyVaultName = "name"
credential =…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
1 answer
Azure Retrieve Secret from key vault
I am following the Microsoft documentation to retrieve secrets from a key vault using python sdk.
The code and explanation offered by Microsoft leads to this code:
import os
import cmd
from azure.keyvault.secrets import SecretClient
from…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
0 answers
Azure Python SDK storage backup fails
I am facing a problem in my script and honestly I don't know anymore where to look and/or how to solve it.
I have the following script.
# Source Client
connection_string = '' # The connection string for the source container
account_key = '' # The…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
1 answer
Azure table backup retrieve more than 1000 rows
I hope somebody can help me to debug this issue.
I have the following script
from azure.cosmosdb.table.tableservice import TableService,ListGenerator
from azure.storage.blob import BlobServiceClient
from datetime import date
from datetime import…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
1 answer
Azure python sdk storage table backup table Return more than 1000 rows
Hope I can get some hints about this issue.
I have written the following code, to make a table backup from one storage to another.
query_size = 100
#save data to storage2 and check if there is lefted data in current table,if yes recurrence
def…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
1 answer
Azure python sdk Container already exists
I have the following script to copy blobs from one container to another.
#================================ SOURCE ===============================
# Source Client
connection_string = '' # The connection string for the source container
account_key =…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
1 answer
Azure Batch NodePreparationError trying to fetch Docker image from Azure Container Registry
I'm trying to run an Azure Batch task on an Ubuntu VM with an image pulled from a private Azure Container Registry. The nodes in the pool fail on creation with the following error, whether I pre-fetch or not:
Code: NodePreparationError
Message:
An…

kthy
- 827
- 10
- 27
0
votes
1 answer
Need help in updating resource tags using python sdk in AZURE
I am looking for help in updating the resource tags using python SDK in azure. I am able to update tags for resource groups but I am not able to find how I can update tags for resources
Below is the code that I have used for updating resource groups…

Sumit
- 1,953
- 6
- 32
- 58
0
votes
2 answers
Azure python sdk loop over blobs
I am trying to build a backup system for storage accounts.
Just to make the example as clear as possible, this is my storage account structure
storageA:
|---container1
| |---Blob1.txt
|---container2
| |---Blob2.txt
| |---Blob3.txt
| …

Nayden Van
- 1,133
- 1
- 23
- 70