ComputeManagementClient Class

Compute Client.

Constructor

ComputeManagementClient(credential: TokenCredential, subscription_id: str, base_url: str | None = None, *, cloud_setting: AzureClouds | None = None, **kwargs: Any)

Parameters

Name Description
credential
Required

Credential used to authenticate requests to the service. Required.

subscription_id
Required
str

The ID of the target subscription. The value must be an UUID. Required.

base_url
str

Service host. Default value is None.

Default value: None

Keyword-Only Parameters

Name Description
cloud_setting

The cloud setting for which to get the ARM endpoint. Default value is None.

Default value: None
polling_interval
int

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

Variables

Name Description
operations

Operations operations

virtual_machine_scale_sets

VirtualMachineScaleSetsOperations operations

virtual_machine_scale_set_extensions

VirtualMachineScaleSetExtensionsOperations operations

virtual_machine_scale_set_life_cycle_hook_events

VirtualMachineScaleSetLifeCycleHookEventsOperations operations

virtual_machine_scale_set_vm_extensions

VirtualMachineScaleSetVMExtensionsOperations operations

virtual_machines

VirtualMachinesOperations operations

virtual_machine_extensions

VirtualMachineExtensionsOperations operations

virtual_machine_extension_images

VirtualMachineExtensionImagesOperations operations

availability_sets

AvailabilitySetsOperations operations

proximity_placement_groups

ProximityPlacementGroupsOperations operations

dedicated_host_groups

DedicatedHostGroupsOperations operations

dedicated_hosts

DedicatedHostsOperations operations

images

ImagesOperations operations

restore_point_collections

RestorePointCollectionsOperations operations

restore_points

RestorePointsOperations operations

capacity_reservation_groups

CapacityReservationGroupsOperations operations

capacity_reservations

CapacityReservationsOperations operations

virtual_machine_run_commands

VirtualMachineRunCommandsOperations operations

virtual_machine_scale_set_vm_run_commands

VirtualMachineScaleSetVMRunCommandsOperations operations

disks

DisksOperations operations

disk_accesses

DiskAccessesOperations operations

disk_encryption_sets

DiskEncryptionSetsOperations operations

snapshots

SnapshotsOperations operations

galleries

GalleriesOperations operations

gallery_images

GalleryImagesOperations operations

gallery_image_versions

GalleryImageVersionsOperations operations

gallery_applications

GalleryApplicationsOperations operations

gallery_application_versions

GalleryApplicationVersionsOperations operations

gallery_scripts

GalleryScriptsOperations operations

gallery_script_versions

GalleryScriptVersionsOperations operations

gallery_in_vm_access_control_profiles

GalleryInVMAccessControlProfilesOperations operations

gallery_in_vm_access_control_profile_versions

GalleryInVMAccessControlProfileVersionsOperations operations

shared_galleries

SharedGalleriesOperations operations

shared_gallery_images

SharedGalleryImagesOperations operations

shared_gallery_image_versions

SharedGalleryImageVersionsOperations operations

community_galleries

CommunityGalleriesOperations operations

community_gallery_images

CommunityGalleryImagesOperations operations

community_gallery_image_versions

CommunityGalleryImageVersionsOperations operations

resource_skus

ResourceSkusOperations operations

virtual_machine_scale_set_rolling_upgrades

VirtualMachineScaleSetRollingUpgradesOperations operations

virtual_machine_scale_set_vms

VirtualMachineScaleSetVMsOperations operations

ssh_public_keys

SshPublicKeysOperations operations

usage

UsageOperations operations

virtual_machine_sizes

VirtualMachineSizesOperations operations

virtual_machine_images_edge_zone

VirtualMachineImagesEdgeZoneOperations operations

virtual_machine_images

VirtualMachineImagesOperations operations

log_analytics

LogAnalyticsOperations operations

disk_restore_point

DiskRestorePointOperations operations

soft_deleted_resource

SoftDeletedResourceOperations operations

gallery_sharing_profile

GallerySharingProfileOperations operations

Methods

close
send_request

Runs the network request through the client's chained policies.


>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = client.send_request(request)
<HttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request

close

close() -> None

send_request

Runs the network request through the client's chained policies.


>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = client.send_request(request)
<HttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request

send_request(request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse

Parameters

Name Description
request
Required

The network request you want to make. Required.

Keyword-Only Parameters

Name Description
stream

Whether the response payload will be streamed. Defaults to False.

Default value: False

Returns

Type Description

The response of your network call. Does not do error handling on your response.