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.objectAvailabilitySetsOperations
Constructor
AvailabilitySetsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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. |
create_or_update
Create or update an availability set.
create_or_update(resource_group_name: str, name: str, parameters: _models.AvailabilitySet, **kwargs: Any) -> _models.AvailabilitySet
Parameters
- 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) -> Optional[_models.OperationStatusResponse]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
OperationStatusResponse, 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
- 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
- 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
- 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
Attributes
models
models = <module 'azure.mgmt.compute.v2015_06_15.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2015_06_15\\models\\__init__.py'>
Feedback
Submit and view feedback for