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.

update

Update an availability set.

create_or_update

Create or update an availability set.

create_or_update(resource_group_name: str, availability_set_name: str, parameters: _models.AvailabilitySet, **kwargs: Any) -> _models.AvailabilitySet

Parameters

resource_group_name
str
Required

The name of the resource group.

availability_set_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

Exceptions

delete

Delete an availability set.

delete(resource_group_name: str, availability_set_name: str, **kwargs: Any) -> None

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

None, or the result of cls(response)

Return type

Exceptions

get

Retrieves information about an availability set.

get(resource_group_name: str, availability_set_name: str, **kwargs: Any) -> _models.AvailabilitySet

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

Exceptions

list

Lists all availability sets in a resource group.

list(resource_group_name: str, **kwargs: Any) -> Iterable[_models.AvailabilitySetListResult]

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

Exceptions

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: str, availability_set_name: str, **kwargs: Any) -> Iterable[_models.VirtualMachineSizeListResult]

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

Exceptions

list_by_subscription

Lists all availability sets in a subscription.

list_by_subscription(expand: Optional[str] = None, **kwargs: Any) -> Iterable[_models.AvailabilitySetListResult]

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

Exceptions

update

Update an availability set.

update(resource_group_name: str, availability_set_name: str, parameters: _models.AvailabilitySetUpdate, **kwargs: Any) -> _models.AvailabilitySet

Parameters

resource_group_name
str
Required

The name of the resource group.

availability_set_name
str
Required

The name of the availability set.

parameters
AvailabilitySetUpdate
Required

Parameters supplied to the Update 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

Exceptions

Attributes

models

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