ComputeManagementClient Class

Compute Client.

This ready contains multiple API versions, to help you deal with all of the Azure clouds (Azure Stack, Azure Government, Azure China, etc.). By default, it uses the latest API version available on public Azure. For production, you should stick to a particular api-version and/or profile. The profile sets a mapping between an operation group and its API version. The api-version parameter sets the default API version if the operation group is not described in the profile.

Inheritance
ComputeManagementClient
azure.mgmt.compute._compute_management_client._SDKClient
ComputeManagementClient

Constructor

ComputeManagementClient(credential: TokenCredential, subscription_id: str, api_version: str | None = None, base_url: str = 'https://management.azure.com', profile: KnownProfiles = KnownProfiles.default, **kwargs: Any)

Parameters

Name Description
credential
Required

Credential needed for the client to connect to Azure. Required.

subscription_id
Required
str

Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.

api_version
str

API version to use if no profile is provided, or if missing in profile.

default value: None
base_url
str

Service URL

default value: https://management.azure.com
profile

A profile definition, from KnownProfiles to dict.

default value: KnownProfiles.default

Keyword-Only Parameters

Name Description
polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Methods

close
models

Module depends on the API version:

close

close()

models

Module depends on the API version:

models(api_version='2023-10-02')

Parameters

Name Description
api_version
default value: 2023-10-02

Attributes

availability_sets

capacity_reservation_groups

capacity_reservations

cloud_service_operating_systems

Instance depends on the API version:

cloud_service_role_instances

Instance depends on the API version:

cloud_service_roles

Instance depends on the API version:

cloud_services

Instance depends on the API version:

cloud_services_update_domain

Instance depends on the API version:

community_galleries

Instance depends on the API version:

dedicated_host_groups

dedicated_hosts

disk_accesses

Instance depends on the API version:

disk_encryption_sets

disk_restore_point

disks

Instance depends on the API version:

galleries

Instance depends on the API version:

Instance depends on the API version:

images

Instance depends on the API version:

log_analytics

Instance depends on the API version:

operations

Instance depends on the API version:

proximity_placement_groups

resource_skus

Instance depends on the API version:

restore_point_collections

restore_points

Instance depends on the API version:

shared_galleries

Instance depends on the API version:

Instance depends on the API version:

snapshots

Instance depends on the API version:

ssh_public_keys

Instance depends on the API version:

usage

Instance depends on the API version:

virtual_machine_extension_images

virtual_machine_extensions

virtual_machine_images

virtual_machine_images_edge_zone

virtual_machine_run_commands

virtual_machine_scale_set_extensions

virtual_machine_scale_set_rolling_upgrades

virtual_machine_scale_set_vm_extensions

virtual_machine_scale_set_vm_run_commands

virtual_machine_scale_set_vms

virtual_machine_scale_sets

virtual_machine_sizes

virtual_machines

DEFAULT_API_VERSION

DEFAULT_API_VERSION = '2023-10-02'

LATEST_PROFILE

LATEST_PROFILE = azure.mgmt.compute.ComputeManagementClient latest