我想获取资源组中自动化帐户的详细信息。我遇到过这个班azure.mgmt.automation自动化.操作.自动化会计操作. 所需的参数是client、config、serializer和deserializer。我不确定这些参数是什么。有谁能举例说明一下吗。你知道吗
这是我指的文件
我的示例代码是
> from azure.common.credentials import UserPassCredentials from
> azure.mgmt.resource import ResourceManagementClient from
> azure.mgmt.compute import ComputeManagementClient from
> azure.mgmt.automation.operations.automation_account_operations import
> AutomationAccountOperations
>
>
> GROUP_NAME = 'group_name'
>
> subscription_id = '111111-11111-11111-1111'
>
>
> credentials = UserPassCredentials(
> 'user123@xyz.com',
> 'password' )
>
>
> automation_client =
> AutomationAccountOperations(credentials,subscription_id)
>
> def get_automation_details():
> for item in automation_client.list(GROUP_NAME):
> print(item)
下面是我在python3中使用
azure-mgmt-automation
包的示例代码。对我来说很好。你知道吗希望有帮助。你知道吗
相关问题 更多 >
编程相关推荐