所以我有以下Python3脚本来列出所有虚拟机。import os, json from azure.mgmt.compute import ComputeManagementClient from azure.mgmt.network import NetworkManagementClie...
我正在尝试使用azure-python-sdk列出Azure账户中的订阅。 我遵循了文档中的这个链接。 https://learn.microsoft.com/en-us/python/api/azure-mgmt-subscription/azure.mgmt.subscription....
我在使用一个自托管代理时,使用了Azure Pipeline 的这个任务。 - task: AzureCLI@2 displayName: Azure CLI task with Python SDK inputs: azure...
我需要通过Python SDK创建服务主体并为其分配新角色。我目前正在按照此stackoverflow问题中列出的步骤进行操作。 我目前正在进行角色分配,但我卡在了需要输入principal_id的步骤上。例如,如需创建新角色分配此处所需。在Azure门户中,我可以在哪里找到此服务的prin...
我正在尝试通过Python访问Azure表存储。根据旧教程https://learn.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-python#install-the-azure-storage-sdk-for-py...
我编写了一个Azure函数,使用Python3来简单地启动Azure虚拟机。 该函数应用程序具有系统分配的托管标识,我已经授予VM贡献者角色。为了让函数使用托管标识,我正在使用DefaultAzureCredential()类。 我遇到的错误是: “Exception: Attribute...