AvailabilitySets interface
Interface representing a AvailabilitySets.
Methods
create |
Create or update an availability set. |
delete(string, string, Availability |
Delete an availability set. |
get(string, string, Availability |
Retrieves information about an availability set. |
list(string, Availability |
Lists all availability sets in a resource group. |
list |
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. |
list |
Lists all availability sets in a subscription. |
update(string, string, Availability |
Update an availability set. |
Method Details
createOrUpdate(string, string, AvailabilitySet, AvailabilitySetsCreateOrUpdateOptionalParams)
Create or update an availability set.
function createOrUpdate(resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySet, options?: AvailabilitySetsCreateOrUpdateOptionalParams): Promise<AvailabilitySet>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- availabilitySetName
-
string
The name of the availability set.
- parameters
- AvailabilitySet
Parameters supplied to the Create Availability Set operation.
The options parameters.
Returns
Promise<AvailabilitySet>
delete(string, string, AvailabilitySetsDeleteOptionalParams)
Delete an availability set.
function delete(resourceGroupName: string, availabilitySetName: string, options?: AvailabilitySetsDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- availabilitySetName
-
string
The name of the availability set.
The options parameters.
Returns
Promise<void>
get(string, string, AvailabilitySetsGetOptionalParams)
Retrieves information about an availability set.
function get(resourceGroupName: string, availabilitySetName: string, options?: AvailabilitySetsGetOptionalParams): Promise<AvailabilitySet>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- availabilitySetName
-
string
The name of the availability set.
The options parameters.
Returns
Promise<AvailabilitySet>
list(string, AvailabilitySetsListOptionalParams)
Lists all availability sets in a resource group.
function list(resourceGroupName: string, options?: AvailabilitySetsListOptionalParams): PagedAsyncIterableIterator<AvailabilitySet, AvailabilitySet[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group.
The options parameters.
Returns
listAvailableSizes(string, string, AvailabilitySetsListAvailableSizesOptionalParams)
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.
function listAvailableSizes(resourceGroupName: string, availabilitySetName: string, options?: AvailabilitySetsListAvailableSizesOptionalParams): PagedAsyncIterableIterator<VirtualMachineSize, VirtualMachineSize[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- availabilitySetName
-
string
The name of the availability set.
The options parameters.
Returns
listBySubscription(AvailabilitySetsListBySubscriptionOptionalParams)
Lists all availability sets in a subscription.
function listBySubscription(options?: AvailabilitySetsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AvailabilitySet, AvailabilitySet[], PageSettings>
Parameters
The options parameters.
Returns
update(string, string, AvailabilitySetUpdate, AvailabilitySetsUpdateOptionalParams)
Update an availability set.
function update(resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySetUpdate, options?: AvailabilitySetsUpdateOptionalParams): Promise<AvailabilitySet>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- availabilitySetName
-
string
The name of the availability set.
- parameters
- AvailabilitySetUpdate
Parameters supplied to the Update Availability Set operation.
The options parameters.
Returns
Promise<AvailabilitySet>