azure-sdk-python Questions

3

Solved

Is there a recommended approach in terms of using either Azure CLI or the Azure Python SDK? The CLI seems to be better documented but since it's built on Python, I would assume it will eventually...
Henni asked 24/4, 2018 at 6:0

2

Solved

I am working on a script that accesses details about an Azure Virtual Machine currently. This is the code that I have so far: """ Instantiate the ComputeManagementClient with the ap...

4

I wrote an Azure function that runs Python3 to simply turn on an Azure VM. The function app has a system assigned managed identity that I've given VM contributor role. To have the function use the ...
Cove asked 12/8, 2020 at 20:12

4

I'm trying to list the subscriptions in an Azure account using azure-python-sdk. I have followed this link in documentation. https://learn.microsoft.com/en-us/python/api/azure-mgmt-subscription/a...
Longford asked 28/5, 2019 at 3:54

2

Solved

I an Azure Pipeline on a self-hosted agent I use this task - task: AzureCLI@2 displayName: Azure CLI task with Python SDK inputs: azureSubscription: 'SUBSCRIPTION-SERVICE-CONNECTION' scriptTyp...
Maas asked 9/11, 2021 at 8:54

5

I need to retrieve secrets from keyvault. This is my code so far: from azure.mgmt.keyvault import KeyVaultManagementClient from azure.common.credentials import ServicePrincipalCredentials subscr...
Basutoland asked 30/8, 2017 at 18:44

3

Solved

I use below App insights python sdk to send my custom metrics in app insights resource. https://github.com/Microsoft/ApplicationInsights-Python Now when I want to retrieve it, all i can find is R...
Propylaeum asked 7/6, 2018 at 3:21

2

Solved

So I have the following Python3 script to list all virtual machines. import os, json from azure.mgmt.compute import ComputeManagementClient from azure.mgmt.network import NetworkManagementClient fr...

3

Solved

I am trying to access Azure Table Storage via python. Following an old walkthrough here: https://learn.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-python#install-the-azure-storag...
Raynell asked 21/1, 2018 at 22:49

1

Solved

I'm trying to upload some larger blobs (>50MB) to my Azure storage container using the Python SDK: connect_str = os.environ['AZURE_STORAGE_CONNECTION_STRING'] blob_service_client = BlobServiceCl...
Aridatha asked 2/7, 2020 at 11:56

1

Solved

I need to create a service principal and assign a new role to it through Python SDK. I am currently following steps as listed from this stackoverflow question. I am currently working on the role a...
Decrepit asked 23/1, 2020 at 15:55

2

Solved

I have been referring to the document https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-python. I have not been able to find the proper APIs for copy/move a file from o...

2

Solved

I am trying to upload a .csv file into Microsoft Azure storage account using python. I have found C-sharp code to write a data to blob storage. But, I don't know C# language. I need to upload .csv ...

1

Solved

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...
Triolein asked 1/11, 2016 at 11:9
1

© 2022 - 2024 — McMap. All rights reserved.