azure.mgmt.compute.operations module

class azure.mgmt.compute.operations.AvailabilitySetsOperations(client, config, serializer, deserializer)[source]

Bases: object

AvailabilitySetsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

create_or_update(resource_group_name, name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Create or update an availability set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • name (str) – The name of the availability set.
  • parameters (AvailabilitySet) – Parameters supplied to the Create Availability Set operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

AvailabilitySet

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, availability_set_name, custom_headers=None, raw=False, **operation_config)[source]

Delete an availability set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • availability_set_name (str) – The name of the availability set.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, availability_set_name, custom_headers=None, raw=False, **operation_config)[source]

Retrieves information about an availability set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • availability_set_name (str) – The name of the availability set.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

AvailabilitySet

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Lists all availability sets in a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

AvailabilitySetPaged

Raises:

CloudError

list_available_sizes(resource_group_name, availability_set_name, custom_headers=None, raw=False, **operation_config)[source]

Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • availability_set_name (str) – The name of the availability set.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineSizePaged

Raises:

CloudError

class azure.mgmt.compute.operations.VirtualMachineExtensionImagesOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualMachineExtensionImagesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

get(location, publisher_name, type, version, custom_headers=None, raw=False, **operation_config)[source]

Gets a virtual machine extension image.

Parameters:
  • location (str) –
  • publisher_name (str) –
  • type (str) –
  • version (str) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineExtensionImage

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_types(location, publisher_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of virtual machine extension image types.

Parameters:
  • location (str) –
  • publisher_name (str) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

list of VirtualMachineExtensionImage

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_versions(location, publisher_name, type, filter=None, top=None, orderby=None, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of virtual machine extension image versions.

Parameters:
  • location (str) –
  • publisher_name (str) –
  • type (str) –
  • filter (str) – The filter to apply on the operation.
  • top (int) –
  • orderby (str) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

list of VirtualMachineExtensionImage

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.compute.operations.VirtualMachineExtensionsOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualMachineExtensionsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers=None, raw=False, **operation_config)[source]

The operation to create or update the extension.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine where the extension should be create or updated.
  • vm_extension_name (str) – The name of the virtual machine extension.
  • extension_parameters (VirtualMachineExtension) – Parameters supplied to the Create Virtual Machine Extension operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns VirtualMachineExtension

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, vm_name, vm_extension_name, custom_headers=None, raw=False, **operation_config)[source]

The operation to delete the extension.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine where the extension should be deleted.
  • vm_extension_name (str) – The name of the virtual machine extension.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, vm_name, vm_extension_name, expand=None, custom_headers=None, raw=False, **operation_config)[source]

The operation to get the extension.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine containing the extension.
  • vm_extension_name (str) – The name of the virtual machine extension.
  • expand (str) – The expand expression to apply on the operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineExtension

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.compute.operations.VirtualMachineImagesOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualMachineImagesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

get(location, publisher_name, offer, skus, version, custom_headers=None, raw=False, **operation_config)[source]

Gets a virtual machine image.

Parameters:
  • location (str) – The name of a supported Azure region.
  • publisher_name (str) – A valid image publisher.
  • offer (str) – A valid image publisher offer.
  • skus (str) – A valid image SKU.
  • version (str) – A valid image SKU version.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineImage

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(location, publisher_name, offer, skus, filter=None, top=None, orderby=None, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

Parameters:
  • location (str) – The name of a supported Azure region.
  • publisher_name (str) – A valid image publisher.
  • offer (str) – A valid image publisher offer.
  • skus (str) – A valid image SKU.
  • filter (str) – The filter to apply on the operation.
  • top (int) –
  • orderby (str) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

list of VirtualMachineImageResource

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_offers(location, publisher_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of virtual machine image offers for the specified location and publisher.

Parameters:
  • location (str) – The name of a supported Azure region.
  • publisher_name (str) – A valid image publisher.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

list of VirtualMachineImageResource

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_publishers(location, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of virtual machine image publishers for the specified Azure location.

Parameters:
  • location (str) – The name of a supported Azure region.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

list of VirtualMachineImageResource

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_skus(location, publisher_name, offer, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.

Parameters:
  • location (str) – The name of a supported Azure region.
  • publisher_name (str) – A valid image publisher.
  • offer (str) – A valid image publisher offer.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

list of VirtualMachineImageResource

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.compute.operations.UsageOperations(client, config, serializer, deserializer)[source]

Bases: object

UsageOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

list(location, custom_headers=None, raw=False, **operation_config)[source]

Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.

Parameters:
  • location (str) – The location for which resource usage is queried.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

UsagePaged

Raises:

CloudError

class azure.mgmt.compute.operations.VirtualMachineSizesOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualMachineSizesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

list(location, custom_headers=None, raw=False, **operation_config)[source]

Lists all available virtual machine sizes for a subscription in a location.

Parameters:
  • location (str) – The location upon which virtual-machine-sizes is queried.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineSizePaged

Raises:

CloudError

class azure.mgmt.compute.operations.ImagesOperations(client, config, serializer, deserializer)[source]

Bases: object

ImagesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

create_or_update(resource_group_name, image_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Create or update an image.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • image_name (str) – The name of the image.
  • parameters (Image) – Parameters supplied to the Create Image operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Image

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, image_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes an Image.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • image_name (str) – The name of the image.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, image_name, expand=None, custom_headers=None, raw=False, **operation_config)[source]

Gets an image.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • image_name (str) – The name of the image.
  • expand (str) – The expand expression to apply on the operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Image

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is not null to fetch all the Images.

Parameters:
Return type:

ImagePaged

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the list of images under a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ImagePaged

Raises:

CloudError

class azure.mgmt.compute.operations.VirtualMachinesOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualMachinesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

capture(resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • parameters (VirtualMachineCaptureParameters) – Parameters supplied to the Capture Virtual Machine operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns VirtualMachineCaptureResult

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

convert_to_managed_disks(resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config)[source]

Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

create_or_update(resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

The operation to create or update a virtual machine.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • parameters (VirtualMachine) – Parameters supplied to the Create Virtual Machine operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns VirtualMachine

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

deallocate(resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config)[source]

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config)[source]

The operation to delete a virtual machine.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

generalize(resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config)[source]

Sets the state of the virtual machine to generalized.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, vm_name, expand=None, custom_headers=None, raw=False, **operation_config)[source]

Retrieves information about the model view or the instance view of a virtual machine.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • expand (str or InstanceViewTypes) – The expand expression to apply on the operation. Possible values include: ‘instanceView’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachine

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachinePaged

Raises:

CloudError

list_all(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.

Parameters:
Return type:

VirtualMachinePaged

Raises:

CloudError

list_available_sizes(resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config)[source]

Lists all available virtual machine sizes to which the specified virtual machine can be resized.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineSizePaged

Raises:

CloudError

power_off(resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config)[source]

The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

redeploy(resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config)[source]

The operation to redeploy a virtual machine.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

restart(resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config)[source]

The operation to restart a virtual machine.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

start(resource_group_name, vm_name, custom_headers=None, raw=False, **operation_config)[source]

The operation to start a virtual machine.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_name (str) – The name of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.compute.operations.VirtualMachineScaleSetsOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualMachineScaleSetsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

create_or_update(resource_group_name, name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Create or update a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • name (str) – The name of the VM scale set to create or update.
  • parameters (VirtualMachineScaleSet) – The scale set object.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns VirtualMachineScaleSet

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

deallocate(resource_group_name, vm_scale_set_name, instance_ids=None, custom_headers=None, raw=False, **operation_config)[source]

Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_ids (list of str) – The virtual machine scale set instance ids.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete_instances(resource_group_name, vm_scale_set_name, instance_ids, custom_headers=None, raw=False, **operation_config)[source]

Deletes virtual machines in a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_ids (list of str) – The virtual machine scale set instance ids.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config)[source]

Display information about a virtual machine scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineScaleSet

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_instance_view(resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the status of a VM scale set instance.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineScaleSetInstanceView

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of all VM scale sets under a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineScaleSetPaged

Raises:

CloudError

list_all(custom_headers=None, raw=False, **operation_config)[source]

Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is not null to fetch all the VM Scale Sets.

Parameters:
Return type:

VirtualMachineScaleSetPaged

Raises:

CloudError

list_skus(resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineScaleSetSkuPaged

Raises:

CloudError

power_off(resource_group_name, vm_scale_set_name, instance_ids=None, custom_headers=None, raw=False, **operation_config)[source]

Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_ids (list of str) – The virtual machine scale set instance ids.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

reimage(resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config)[source]

Reimages (upgrade the operating system) one or more virtual machines in a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

reimage_all(resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config)[source]

Reimages all the disks ( including data disks ) in the virtual machines in a virtual machine scale set. This operation is only supported for managed disks.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

restart(resource_group_name, vm_scale_set_name, instance_ids=None, custom_headers=None, raw=False, **operation_config)[source]

Restarts one or more virtual machines in a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_ids (list of str) – The virtual machine scale set instance ids.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

start(resource_group_name, vm_scale_set_name, instance_ids=None, custom_headers=None, raw=False, **operation_config)[source]

Starts one or more virtual machines in a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_ids (list of str) – The virtual machine scale set instance ids.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

update_instances(resource_group_name, vm_scale_set_name, instance_ids, custom_headers=None, raw=False, **operation_config)[source]

Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_ids (list of str) – The virtual machine scale set instance ids.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.compute.operations.VirtualMachineScaleSetVMsOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualMachineScaleSetVMsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers=None, raw=False, **operation_config)[source]

Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_id (str) – The instance ID of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers=None, raw=False, **operation_config)[source]

Deletes a virtual machine from a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_id (str) – The instance ID of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, vm_scale_set_name, instance_id, custom_headers=None, raw=False, **operation_config)[source]

Gets a virtual machine from a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_id (str) – The instance ID of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineScaleSetVM

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers=None, raw=False, **operation_config)[source]

Gets the status of a virtual machine from a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_id (str) – The instance ID of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineScaleSetVMInstanceView

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_group_name, virtual_machine_scale_set_name, filter=None, select=None, expand=None, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of all virtual machines in a VM scale sets.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • virtual_machine_scale_set_name (str) – The name of the VM scale set.
  • filter (str) – The filter to apply to the operation.
  • select (str) – The list parameters.
  • expand (str) – The expand expression to apply to the operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

VirtualMachineScaleSetVMPaged

Raises:

CloudError

power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers=None, raw=False, **operation_config)[source]

Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_id (str) – The instance ID of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers=None, raw=False, **operation_config)[source]

Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_id (str) – The instance ID of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers=None, raw=False, **operation_config)[source]

Allows you to re-image all the disks ( including data disks ) in the a virtual machine scale set instance. This operation is only supported for managed disks.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_id (str) – The instance ID of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers=None, raw=False, **operation_config)[source]

Restarts a virtual machine in a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_id (str) – The instance ID of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

start(resource_group_name, vm_scale_set_name, instance_id, custom_headers=None, raw=False, **operation_config)[source]

Starts a virtual machine in a VM scale set.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • vm_scale_set_name (str) – The name of the VM scale set.
  • instance_id (str) – The instance ID of the virtual machine.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.compute.operations.ContainerServicesOperations(client, config, serializer, deserializer)[source]

Bases: object

ContainerServicesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2017-01-31”.

create_or_update(resource_group_name, container_service_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates a container service.

Creates or updates a container service with the specified configuration of orchestrator, masters, and agents.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • container_service_name (str) – The name of the container service in the specified subscription and resource group.
  • parameters (ContainerService) – Parameters supplied to the Create or Update a Container Service operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns ContainerService

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, container_service_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes the specified container service.

Deletes the specified container service in the specified subscription and resource group. The operation does not delete other resources created as part of creating a container service, including storage accounts, VMs, and availability sets. All the other resources created with the container service are part of the same resource group and can be deleted individually.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • container_service_name (str) – The name of the container service in the specified subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, container_service_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the properties of the specified container service.

Gets the properties of the specified container service in the specified subscription and resource group. The operation returns the properties including state, orchestrator, number of masters and agents, and FQDNs of masters and agents. .

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • container_service_name (str) – The name of the container service in the specified subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ContainerService

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Gets a list of container services in the specified subscription.

Gets a list of container services in the specified subscription. The operation returns properties of each container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.

Parameters:
Return type:

ContainerServicePaged

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of container services in the specified resource group.

Gets a list of container services in the specified subscription and resource group. The operation returns properties of each container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ContainerServicePaged

Raises:

CloudError

class azure.mgmt.compute.operations.DisksOperations(client, config, serializer, deserializer)[source]

Bases: object

DisksOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

create_or_update(resource_group_name, disk_name, disk, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates a disk.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • disk_name (str) – The name of the disk within the given subscription and resource group.
  • disk (Disk) – Disk object supplied in the body of the Put disk operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Disk

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, disk_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a disk.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • disk_name (str) – The name of the disk within the given subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, disk_name, custom_headers=None, raw=False, **operation_config)[source]

Gets information about a disk.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • disk_name (str) – The name of the disk within the given subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Disk

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

grant_access(resource_group_name, disk_name, access, duration_in_seconds, custom_headers=None, raw=False, **operation_config)[source]

Grants access to a disk.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • disk_name (str) – The name of the disk within the given subscription and resource group.
  • access (str or AccessLevel) – Possible values include: ‘None’, ‘Read’
  • duration_in_seconds (int) – Time duration in seconds until the SAS access expires.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns AccessUri

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all the disks under a subscription.

Parameters:
Return type:

DiskPaged

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Lists all the disks under a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

DiskPaged

Raises:

CloudError

revoke_access(resource_group_name, disk_name, custom_headers=None, raw=False, **operation_config)[source]

Revokes access to a disk.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • disk_name (str) – The name of the disk within the given subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

update(resource_group_name, disk_name, disk, custom_headers=None, raw=False, **operation_config)[source]

Updates (patches) a disk.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • disk_name (str) – The name of the disk within the given subscription and resource group.
  • disk (DiskUpdate) – Disk object supplied in the body of the Patch disk operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Disk

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.compute.operations.SnapshotsOperations(client, config, serializer, deserializer)[source]

Bases: object

SnapshotsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-04-30-preview”.

create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates a snapshot.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • snapshot_name (str) – The name of the snapshot within the given subscription and resource group.
  • snapshot (Snapshot) – Snapshot object supplied in the body of the Put disk operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Snapshot

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, snapshot_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a snapshot.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • snapshot_name (str) – The name of the snapshot within the given subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, snapshot_name, custom_headers=None, raw=False, **operation_config)[source]

Gets information about a snapshot.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • snapshot_name (str) – The name of the snapshot within the given subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Snapshot

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

grant_access(resource_group_name, snapshot_name, access, duration_in_seconds, custom_headers=None, raw=False, **operation_config)[source]

Grants access to a snapshot.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • snapshot_name (str) – The name of the snapshot within the given subscription and resource group.
  • access (str or AccessLevel) – Possible values include: ‘None’, ‘Read’
  • duration_in_seconds (int) – Time duration in seconds until the SAS access expires.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns AccessUri

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Lists snapshots under a subscription.

Parameters:
Return type:

SnapshotPaged

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Lists snapshots under a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

SnapshotPaged

Raises:

CloudError

revoke_access(resource_group_name, snapshot_name, custom_headers=None, raw=False, **operation_config)[source]

Revokes access to a snapshot.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • snapshot_name (str) – The name of the snapshot within the given subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns OperationStatusResponse

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

update(resource_group_name, snapshot_name, snapshot, custom_headers=None, raw=False, **operation_config)[source]

Updates (patches) a snapshot.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • snapshot_name (str) – The name of the snapshot within the given subscription and resource group.
  • snapshot (SnapshotUpdate) – Snapshot object supplied in the body of the Patch snapshot operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Snapshot

Return type:

ClientRawResponse if raw=true

Raises:

CloudError