Questions tagged [azure-sdk-python]
302 questions
0
votes
1 answer
How to update device twin from device with Azure Python device SDK?
I am working with Azure device SDK for Python.
I like to trigger an update of the device twin from the device with the Azure device Python SDK.
Unfortunately I can not find any samples or even an API documentation which explains how to use…

Roland
- 1
0
votes
2 answers
KeyVault getting a secret out fails
Here is my code, this was working a few days ago and now it throws the error when trying to fetch the secret out of the vault. I am using the latest version of Azure's Python SDK which was installed through pip.
from azure.keyvault import…

ddavtian
- 1,361
- 3
- 14
- 16
0
votes
2 answers
Upload VHD to Azure using the Azure SDK
Is there a way to upload a VHD to Azure using the Azure SDK? I am aware of the same process for uploading it via Powershell (https://learn.microsoft.com/en-us/azure/virtual-machines/windows/classic/createupload-vhd) , but I would like to achieve…

George Tseres
- 498
- 6
- 19
0
votes
1 answer
azure API to restart VM
When I try to list azure VMs on my account from their python API, I get the following error:
Message: The client 'xxxxxxxxxxxxxxxxxxx' with object id 'xxxxxxxxxxxxxxxxx' does not have authorization to perform action…

baigz
- 1
0
votes
1 answer
Azure python sdk for VM Resource Monitoring
I can retrieve the VM state by using Azure python sdk. Now I tried to get the VMs resource usage [ CPU, bandwith, disk ]. But unable to find the option for it.
Someone please share the link if its available,.

KMG
- 889
- 2
- 14
- 36
0
votes
2 answers
Using a delimiter with azure storage blob list
The Python SDK for Azure provides the list_blobs method for listing blobs present in a container using a container name, prefix and a delimiter.
The Node.js based azure-cli also provides an option for listing blobs
azure storage blob list [options]…

axon_synapse
- 71
- 7
0
votes
1 answer
How to find an azure vm cpu utilization statistics, using python azurerm sdk
I am not able to find the cpu utilization of an azurerm using azurerm python sdk.

Ramani
- 3
- 1
0
votes
1 answer
How to create tags in Resource Management of Python azure SDK?
I am working with Python azure 2.0.0rc2 SDK and looking to create few tags. Can anyone suggest me the way to do it.
user5967371
0
votes
2 answers
sdk for creating a remote app in azure
I have a Azure account.
I am able to create RemoteApp in azure using PowerShell.
I need to know whether there are SDKs available for implementing remoteapp functionality.
Kindly brief enough.
Thanks in advance.

hari
- 41
- 1
- 4
-1
votes
1 answer
Adding userdata on create VM operation with Python SDK for Azure
I am using Python sdk for azure creation virtual machine operation. I want some script to be executed whenever the VM starts. So, I have tried adding the custom-data while creating VM with Python.
My…

Deependra Dangal
- 1,145
- 1
- 13
- 36
-1
votes
1 answer
How to create kubernates cluster using azure python sdk
I'm not able to get proper documentation for this on docs. I found this but not able to completely understand how to instantiate all the parameters. Is there better documentation/samples available for azure python SDKs?

Pramod Jangam
- 316
- 3
- 10
-1
votes
1 answer
How to store multiple log parameters using AzureML SDK for Python?
I use AzureML SDK for Python to define a Run and assign log parameters as shown below.
run = Run.get_context()
run.parent.log("param1", 25)
run.parent.log("param2", 100)
run.parent.log("param3", 10)
run.parent.log("param4", 40)
The problem is that…

Fluxy
- 2,838
- 6
- 34
- 63
-1
votes
1 answer
How to add Availabity set to virtual machine in azure through python script
I am using python script to create virtual machine. I am able to create virtul machine. Just wanted to add availabilty set feature.
<< some snip >>
resource_client = ResourceManagementClient(credentials, subscription_id)
compute_client =…

10305059
- 128
- 2
- 13
-2
votes
1 answer
Unable to find azure.commons.ServicePrincipalCredentials Function in Azure Python SDK
I am unable to find the function in the Azure Python SDK documentation, but it works in python code as a library

cyber_secur
- 7
- 1
-2
votes
1 answer
How to get Python WebJob working on Azure
I am struggling to deploy a Python WorkerRole on Microsoft Azure. Has anybody successfully gotten a Python process working on Microsoft Azure?
Microsoft seems to be telling people that their documentation related to Python on Azure is out of date,…

andrewkittredge
- 742
- 5
- 12