跳转到主要内容

Microsoft Azure Scvmm Management Client Library for Python

项目描述

Microsoft Azure SDK for Python

这是Microsoft Azure Scvmm Management Client Library。此包已在Python 3.8+上进行了测试。有关Azure库的更完整视图,请参阅azure sdk python发布

免责声明

Azure SDK Python包对Python 2.7的支持已于2022年1月1日结束。有关更多信息及问题,请参阅https://github.com/Azure/azure-sdk-for-python/issues/20691

入门指南

先决条件

安装包

pip install azure-mgmt-scvmm
pip install azure-identity

身份验证

默认情况下,Azure Active Directory令牌身份验证依赖于以下环境变量的正确配置。

  • AZURE_CLIENT_ID用于Azure客户端ID。
  • AZURE_TENANT_ID 用于 Azure 租户 ID。
  • AZURE_CLIENT_SECRET 用于 Azure 客户端密钥。

此外,可以通过环境变量 AZURE_SUBSCRIPTION_ID 配置 Azure 订阅 ID。

以上配置后,客户端可以通过以下代码进行身份验证

from azure.identity import DefaultAzureCredential
from azure.mgmt.scvmm import SCVMM
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = SCVMM(credential=DefaultAzureCredential(), subscription_id=sub_id)

示例

此包的代码示例可以在

故障排除

下一步

提供反馈

如果您遇到任何错误或建议,请在项目的 问题 部分提交问题。

发行历史

1.0.0 (2024-06-20)

新增功能

  • 添加了 GuestAgentsOperations 操作组
  • 添加了 VirtualMachineInstancesOperations 操作组
  • 添加了 VmInstanceHybridIdentityMetadatasOperations 操作组
  • Model AvailabilitySet 有一个新参数 properties
  • Model Cloud 有一个新参数 properties
  • Model InventoryItem 有一个新参数 properties
  • Model ProxyResource 有一个新参数 system_data
  • Model Resource 有一个新参数 system_data
  • Model VirtualDisk 有一个新参数 storage_qos_policy
  • Model VirtualDiskUpdate 有一个新参数 storage_qos_policy
  • Model VirtualMachineInventoryItem 有一个新参数 bios_guid
  • Model VirtualMachineInventoryItem 有一个新参数 managed_machine_resource_id
  • Model VirtualMachineInventoryItem 有一个新参数 os_version
  • Model VirtualMachineTemplate 有一个新参数 properties
  • Model VirtualNetwork 有一个新参数 properties

破坏性更改

  • 客户端名称从 SCVMM 更改为 ScVmmMgmtClient
  • Model AvailabilitySet 不再具有参数 availability_set_name
  • Model AvailabilitySet 不再具有参数 provisioning_state
  • Model AvailabilitySet 不再具有参数 vmm_server_id
  • Model Cloud 不再具有参数 cloud_capacity
  • Model Cloud 不再具有参数 cloud_name
  • Model Cloud 不再具有参数 inventory_item_id
  • Model Cloud 不再具有参数 provisioning_state
  • Model Cloud 不再具有参数 storage_qo_s_policies
  • Model Cloud 不再具有参数 uuid
  • Model Cloud 不再具有参数 vmm_server_id
  • Model InventoryItem 不再具有参数 inventory_item_name
  • Model InventoryItem 不再具有参数 inventory_type
  • Model InventoryItem 不再具有参数 managed_resource_id
  • Model InventoryItem 不再具有参数 provisioning_state
  • Model InventoryItem 不再具有参数 uuid
  • Model VirtualDisk 不再具有参数 storage_qo_s_policy
  • Model VirtualDiskUpdate 不再具有参数 storage_qo_s_policy
  • Model VirtualMachineTemplate 不再具有参数 computer_name
  • Model VirtualMachineTemplate 不再具有参数 cpu_count
  • Model VirtualMachineTemplate 不再具有参数 disks
  • Model VirtualMachineTemplate 不再具有参数 dynamic_memory_enabled
  • Model VirtualMachineTemplate 不再具有参数 dynamic_memory_max_mb
  • Model VirtualMachineTemplate 不再具有参数 dynamic_memory_min_mb
  • Model VirtualMachineTemplate 不再具有参数 generation
  • Model VirtualMachineTemplate 不再具有参数 inventory_item_id
  • Model VirtualMachineTemplate 不再具有参数 is_customizable
  • Model VirtualMachineTemplate 不再具有参数 is_highly_available
  • Model VirtualMachineTemplate 不再具有参数 limit_cpu_for_migration
  • Model VirtualMachineTemplate 不再具有参数 memory_mb
  • Model VirtualMachineTemplate 不再具有参数 network_interfaces
  • Model VirtualMachineTemplate 不再具有参数 os_name
  • Model VirtualMachineTemplate 不再具有参数 os_type
  • Model VirtualMachineTemplate 不再具有参数 provisioning_state
  • Model VirtualMachineTemplate 不再具有参数 uuid
  • Model VirtualMachineTemplate 不再具有参数 vmm_server_id
  • Model VirtualNetwork 不再具有参数 inventory_item_id
  • 模型VirtualNetwork不再有参数network_name
  • 模型VirtualNetwork不再有参数provisioning_state
  • 模型VirtualNetwork不再有参数uuid
  • 模型VirtualNetwork不再有参数vmm_server_id
  • 操作AvailabilitySetsOperations.begin_create_or_update有一个新的必填参数availability_set_resource_name
  • 操作AvailabilitySetsOperations.begin_create_or_update有一个新的必填参数resource
  • 操作AvailabilitySetsOperations.begin_create_or_update不再有参数availability_set_name
  • 操作AvailabilitySetsOperations.begin_create_or_update不再有参数body
  • 操作AvailabilitySetsOperations.begin_delete有一个新的必填参数availability_set_resource_name
  • 操作AvailabilitySetsOperations.begin_delete不再有参数availability_set_name
  • 操作AvailabilitySetsOperations.begin_update有一个新的必填参数availability_set_resource_name
  • 操作AvailabilitySetsOperations.begin_update有一个新的必填参数properties
  • 操作AvailabilitySetsOperations.begin_update不再有参数availability_set_name
  • 操作AvailabilitySetsOperations.begin_update不再有参数body
  • 操作AvailabilitySetsOperations.get有一个新的必填参数availability_set_resource_name
  • 操作AvailabilitySetsOperations.get不再有参数availability_set_name
  • 操作CloudsOperations.begin_create_or_update有一个新的必填参数cloud_resource_name
  • 操作CloudsOperations.begin_create_or_update有一个新的必填参数resource
  • 操作CloudsOperations.begin_create_or_update不再有参数body
  • 操作CloudsOperations.begin_create_or_update不再有参数cloud_name
  • 操作CloudsOperations.begin_delete有一个新的必填参数cloud_resource_name
  • 操作CloudsOperations.begin_delete不再有参数cloud_name
  • 操作CloudsOperations.begin_update有一个新的必填参数cloud_resource_name
  • 操作CloudsOperations.begin_update有一个新的必填参数properties
  • 操作CloudsOperations.begin_update不再有参数body
  • 操作CloudsOperations.begin_update不再有参数cloud_name
  • 操作CloudsOperations.get有一个新的必填参数cloud_resource_name
  • 操作CloudsOperations.get不再有参数cloud_name
  • 操作InventoryItemsOperations.create有一个新的必填参数inventory_item_resource_name
  • 操作InventoryItemsOperations.create有一个新的必填参数resource
  • 操作InventoryItemsOperations.create不再有参数body
  • 操作InventoryItemsOperations.create不再有参数inventory_item_name
  • 操作InventoryItemsOperations.delete有一个新的必填参数inventory_item_resource_name
  • 操作InventoryItemsOperations.delete不再有参数inventory_item_name
  • 操作InventoryItemsOperations.get有一个新的必填参数inventory_item_resource_name
  • 操作InventoryItemsOperations.get不再有参数inventory_item_name
  • 操作VirtualMachineTemplatesOperations.begin_create_or_update有一个新的必填参数resource
  • 操作VirtualMachineTemplatesOperations.begin_create_or_update不再有参数body
  • 操作VirtualMachineTemplatesOperations.begin_update有一个新的必填参数properties
  • 操作VirtualMachineTemplatesOperations.begin_update不再有参数body
  • 操作VirtualNetworksOperations.begin_create_or_update有一个新的必填参数resource
  • 操作VirtualNetworksOperations.begin_create_or_update不再有参数body
  • 操作VirtualNetworksOperations.begin_update有一个新的必填参数properties
  • 操作VirtualNetworksOperations.begin_update不再有参数body
  • 操作VmmServersOperations.begin_create_or_update有一个新的必填参数resource
  • 操作VmmServersOperations.begin_create_or_update不再有参数body
  • 操作VmmServersOperations.begin_update有一个新的必填参数properties
  • 操作VmmServersOperations.begin_update不再有参数body
  • 模型AvailabilitySet的参数extended_location现在是必填的
  • 模型AvailabilitySet的参数location现在是必填的
  • 模型AvailabilitySetListResult的参数value现在是必填的
  • 模型CloudListResult的参数value现在是必填的
  • 模型VirtualMachineTemplateListResult的参数value现在是必填的
  • 模型VirtualNetworkListResult的参数value现在是必填的
  • 移除操作组 VirtualMachinesOperations

1.0.0b2 (2022-11-23)

其他变更

  • 在github仓库中添加了生成的示例
  • 放弃对python<3.7.0的支持

1.0.0b1 (2022-04-20)

  • 初始发布

项目详情


下载文件

下载您平台对应的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

azure-mgmt-scvmm-1.0.0.tar.gz (96.8 kB 查看哈希值)

上传时间

构建分布

azure_mgmt_scvmm-1.0.0-py3-none-any.whl (132.6 kB 查看哈希值)

上传时间 Python 3

由以下组织支持