AvailabilitySetsOperations Class

AvailabilitySetsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
AvailabilitySetsOperations

Constructor

AvailabilitySetsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Create or update an availability set.

delete

Delete an availability set.

get

Retrieves information about an availability set.

list

Lists all availability sets in a resource group.

list_available_sizes

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

list_by_subscription

Lists all availability sets in a subscription.

create_or_update

Create or update an availability set.

create_or_update(resource_group_name, name, parameters, **kwargs)

Parameters

resource_group_name
str
Required

The name of the resource group.

name
str
Required

The name of the availability set.

parameters
AvailabilitySet
Required

Parameters supplied to the Create Availability Set operation.

cls
callable

A custom type or function that will be passed the direct response

Returns

AvailabilitySet, or the result of cls(response)

Return type

delete

Delete an availability set.

delete(resource_group_name, availability_set_name, **kwargs)

Parameters

resource_group_name
str
Required

The name of the resource group.

availability_set_name
str
Required

The name of the availability set.

cls
callable

A custom type or function that will be passed the direct response

Returns

OperationStatusResponse, or the result of cls(response)

Return type

get

Retrieves information about an availability set.

get(resource_group_name, availability_set_name, **kwargs)

Parameters

resource_group_name
str
Required

The name of the resource group.

availability_set_name
str
Required

The name of the availability set.

cls
callable

A custom type or function that will be passed the direct response

Returns

AvailabilitySet, or the result of cls(response)

Return type

list

Lists all availability sets in a resource group.

list(resource_group_name, **kwargs)

Parameters

resource_group_name
str
Required

The name of the resource group.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either AvailabilitySetListResult or the result of cls(response)

Return type

list_available_sizes

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

list_available_sizes(resource_group_name, availability_set_name, **kwargs)

Parameters

resource_group_name
str
Required

The name of the resource group.

availability_set_name
str
Required

The name of the availability set.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either VirtualMachineSizeListResult or the result of cls(response)

Return type

list_by_subscription

Lists all availability sets in a subscription.

list_by_subscription(expand=None, **kwargs)

Parameters

expand
str
default value: None

The expand expression to apply to the operation. Allowed values are 'instanceView'.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either AvailabilitySetListResult or the result of cls(response)

Return type

Attributes

models

models = <module 'azure.mgmt.compute.v2016_03_30.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2016_03_30\\models\\__init__.py'>