Questions tagged [azure-sdk-python]
302 questions
0
votes
1 answer
How can I programmatically find VMs with unrestricted SSH connection?
I need to get a list of VMs that have unrestricted SSH.
I've been browsing the Azure SDK for Python documentation. There is an SshConfiguration class in the compute module, but it only has info about the public keys. There is a different…

supernova
- 149
- 4
- 17
0
votes
0 answers
How to get the consumer lag in eventhub
I am using eventhub python sdk consumer for real time processing of the data from eventhub. I have currently 2 partitions of my topic. I would like to know about my consumer lag. I know what is the sequence number of the message I am processing, but…

Nipun
- 4,119
- 5
- 47
- 83
0
votes
1 answer
How to provide the complete path of the container in AzureStorageCheckpointLeaseManager class
I am using EPH ( EventProcessorHost) class of Azure python SDK to receive events from the eventhub.
It actually uses AzureStorageCheckpointLeaseManager for checkpointing and partitioning in the storage account. But I cannot see where I can write…

Nipun
- 4,119
- 5
- 47
- 83
0
votes
1 answer
Cannot import 'BlockBlobService' when calling a script from ML pipeline
I have 2 scripts that use Azure ML SDK. In the main script I call the second script connect_to_blob.py. The connect_to_blob.py fails with the following error:
User program failed with ImportError: cannot import name 'BlockBlobService'
If I run the…

Fluxy
- 2,838
- 6
- 34
- 63
0
votes
2 answers
Azure Metric: dtu_used does not accept zero dimension case
I am trying to get the metrics of Microsoft.Sql/servers/ resource:
The resource_id is: /subscriptions/******-8**2-44**-95**-****13a5****/resourceGroups/SQLTesting/providers/Microsoft.Sql/servers/sqltest
As in example…

gd1
- 655
- 1
- 10
- 21
0
votes
3 answers
Copy Azure Blob as BlockBlob from Remote URL
I'm using the azure-sdk-for-python BlobClient start_copy_from_url to copy a remote file to my local storage.
However, the file always ends up as an AppendBlob instead of BlockBlob. I can't see how I can force the destination BlockType to be…

Brig
- 10,211
- 12
- 47
- 71
0
votes
1 answer
Find the Infiniband IP Address of an Azure VM
This is similar to Is there any python API which can get the IP address (internal or external) of Virtual machine in Azure, but instead I'd like to get the infiniband IP address of an azure VM.
So far, I can get the NIC of the VM in the VMSS, but…

Alex Kaszynski
- 1,817
- 2
- 17
- 17
0
votes
1 answer
Azure API Permission Fix
When trying to create a security group through the azure python sdk, I get this permissions issue: msrest.exceptions.ValidationError: Parameter 'SecurityRule.access' can not be None. How should I fix this permissions issue through the azure web…

Michael Wang
- 31
- 4
0
votes
1 answer
Get availability status of Azure resources
I want to get the availability of azure resources. Right now I am using:
GET "https://management.azure.com/{}/providers/Microsoft.ResourceHealth/
availabilityStatuses/current?api-version=2015-01-01" api for which I need to get jwt.
Is there any…

gd1
- 655
- 1
- 10
- 21
0
votes
2 answers
Azure Python SDK Compute Client isn't Using Managed Disk Parameters
I am using the compute client to create a VM (using create_or_update) and I want the VM to have a standard hdd and not a premium ssd as its os disk. I should be able to specify that in the managed disk parameters but when I do, the VM still creates…

Michael Wang
- 31
- 4
0
votes
1 answer
Azure SDK for Python
I am trying to get a list of subscriptions in an Azure tenant using the Python SDK.
I want to use this class: https://learn.microsoft.com/en-us/python/api/azure-mgmt-subscription/azure.mgmt.subscription.operations.subscriptionsoperations
and the…

Mick
- 1,401
- 4
- 23
- 40
0
votes
1 answer
Azure SAS expiry while copying blobs
What should be an ideal expiry time for SAS. The SAS url is to be used to copy blobs from one container to another (different storage account also possible).
The copy command is called immediately after generating SAS, so is the expiry time just…

Srinath
- 102
- 8
0
votes
2 answers
How to change tier of blobs in a batch using batch_set_standard_blob_tier part of BlockBlobService?
The documentation for the batch_set_standard_blob_tier function part of BlockBlobService in azure python SDK is not clear.
What exactly should be passed in the parameter?
An example would be appreciated.

Srinath
- 102
- 8
0
votes
1 answer
How can I do auto-forwarding for azure service bus in python?
I found that in C# Azure SDK we are able to use SubscriptionDescription class to set the ForwardTo property to achieve auto-forwarding.
However when I check for python SDK, the Subscription class is said to be the same as SubscriptionDescription…

Sivvie Lim
- 784
- 2
- 14
- 43
0
votes
1 answer
How can I resolve the following error, "code": "NoRegisteredProviderFound" in Azure when I am using azurerm in Python?
I am using the following azurerm function in my code:
public_ips = azurerm.get_vmss_public_ips(access_token, SUBSCRIPTION_ID,
GROUP_NAME, CUScaleSet)
print(public_ips)
I am getting the following output:
{u'error': {u'message': u"No registered…

New_to_work
- 253
- 2
- 5
- 16