AvailabilitySets interface

Interface representing a AvailabilitySets.

Methods

createOrUpdate(string, string, AvailabilitySet, AvailabilitySetsCreateOrUpdateOptionalParams)

Create or update an availability set.

delete(string, string, AvailabilitySetsDeleteOptionalParams)

Delete an availability set.

get(string, string, AvailabilitySetsGetOptionalParams)

Retrieves information about an availability set.

list(string, AvailabilitySetsListOptionalParams)

Lists all availability sets in a resource group.

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.

listBySubscription(AvailabilitySetsListBySubscriptionOptionalParams)

Lists all availability sets in a subscription.

update(string, string, AvailabilitySetUpdate, AvailabilitySetsUpdateOptionalParams)

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.

options
AvailabilitySetsCreateOrUpdateOptionalParams

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.

options
AvailabilitySetsDeleteOptionalParams

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.

options
AvailabilitySetsGetOptionalParams

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.

options
AvailabilitySetsListOptionalParams

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.

options
AvailabilitySetsListAvailableSizesOptionalParams

The options parameters.

Returns

listBySubscription(AvailabilitySetsListBySubscriptionOptionalParams)

Lists all availability sets in a subscription.

function listBySubscription(options?: AvailabilitySetsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AvailabilitySet, AvailabilitySet[], PageSettings>

Parameters

options
AvailabilitySetsListBySubscriptionOptionalParams

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.

options
AvailabilitySetsUpdateOptionalParams

The options parameters.

Returns

Promise<AvailabilitySet>