Skip to main content

availability_sets

Creates, updates, deletes, gets or lists an availability_sets resource.

Overview

Nameavailability_sets
TypeResource
Idazure.scvmm.availability_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
availabilitySetNamestringName of the availability set.
extendedLocationobjectThe extended location. Required.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", and "Created".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
vmmServerIdstringARM Id of the vmmServer resource in which this resource resides.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, availability_set_resource_name, subscription_idGets an AvailabilitySet. Implements AvailabilitySet GET method.
list_by_resource_groupselectresource_group_name, subscription_idImplements GET AvailabilitySets in a resource group. List of AvailabilitySets in a resource group.
list_by_subscriptionselectsubscription_idImplements GET AvailabilitySets in a subscription. List of AvailabilitySets in a subscription.
create_or_updateinsertresource_group_name, availability_set_resource_name, subscription_id, location, extendedLocationImplements AvailabilitySets PUT method. Onboards the ScVmm availability set as an Azure resource.
updateupdateresource_group_name, availability_set_resource_name, subscription_idImplements the AvailabilitySets PATCH method. Updates the AvailabilitySets resource.
create_or_updatereplaceresource_group_name, availability_set_resource_name, subscription_id, location, extendedLocationImplements AvailabilitySets PUT method. Onboards the ScVmm availability set as an Azure resource.
deletedeleteresource_group_name, availability_set_resource_name, subscription_idforceImplements AvailabilitySet DELETE method. Deregisters the ScVmm availability set from Azure.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
availability_set_resource_namestringName of the AvailabilitySet. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
forcestringForces the resource to be deleted. Known values are: "true" and "false". Default value is None.

SELECT examples

Gets an AvailabilitySet. Implements AvailabilitySet GET method.

SELECT
id,
name,
availabilitySetName,
extendedLocation,
location,
provisioningState,
systemData,
tags,
type,
vmmServerId
FROM azure.scvmm.availability_sets
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND availability_set_resource_name = '{{ availability_set_resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Implements AvailabilitySets PUT method. Onboards the ScVmm availability set as an Azure resource.

INSERT INTO azure.scvmm.availability_sets (
tags,
location,
properties,
extendedLocation,
resource_group_name,
availability_set_resource_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ extendedLocation }}' /* required */,
'{{ resource_group_name }}',
'{{ availability_set_resource_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Implements the AvailabilitySets PATCH method. Updates the AvailabilitySets resource.

UPDATE azure.scvmm.availability_sets
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND availability_set_resource_name = '{{ availability_set_resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Implements AvailabilitySets PUT method. Onboards the ScVmm availability set as an Azure resource.

REPLACE azure.scvmm.availability_sets
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND availability_set_resource_name = '{{ availability_set_resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND extendedLocation = '{{ extendedLocation }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

DELETE examples

Implements AvailabilitySet DELETE method. Deregisters the ScVmm availability set from Azure.

DELETE FROM azure.scvmm.availability_sets
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND availability_set_resource_name = '{{ availability_set_resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND force = '{{ force }}'
;