Availability Sets - Update
Implements the AvailabilitySets PATCH method.
Updates the AvailabilitySets resource.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetResourceName}?api-version=2024-06-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
availability
|
path | True |
string |
Name of the AvailabilitySet. Regex pattern: |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string uuid |
The ID of the target subscription. The value must be an UUID. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Type | Description |
---|---|---|
tags |
object |
Resource tags. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Azure operation completed successfully. |
|
202 Accepted |
Resource update request accepted. Headers
|
|
Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Availability |
Availability |
AvailabilitySets_Update_MaximumSet
Sample request
PATCH https://management.azure.com/subscriptions/79332E5A-630B-480F-A266-A941C015AB19/resourceGroups/rgscvmm/providers/Microsoft.ScVmm/availabilitySets/-?api-version=2024-06-01
{
"tags": {
"key1460": "vcbwibkvr"
}
}
Sample response
{
"properties": {
"availabilitySetName": "njrpftunzo",
"vmmServerId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/vmmServers/vmmServerName",
"provisioningState": "Succeeded"
},
"extendedLocation": {
"type": "customLocation",
"name": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/customLocationName"
},
"tags": {
"key5701": "cldtxloqh"
},
"location": "jelevilan",
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/availabilitySets/availabilitySetResourceName",
"name": "dibfuxyuidzxcfik",
"type": "xwzjruksexpuqgtreexm",
"systemData": {
"createdBy": "p",
"createdByType": "User",
"createdAt": "2024-01-29T22:28:00.094Z",
"lastModifiedBy": "goxcwpyyqlxndquly",
"lastModifiedByType": "User",
"lastModifiedAt": "2024-01-29T22:28:00.095Z"
}
}
location: https://contoso.com/operationstatus
AvailabilitySets_Update_MinimumSet
Sample request
PATCH https://management.azure.com/subscriptions/79332E5A-630B-480F-A266-A941C015AB19/resourceGroups/rgscvmm/providers/Microsoft.ScVmm/availabilitySets/1?api-version=2024-06-01
{}
Sample response
{
"extendedLocation": {},
"location": "jelevilan"
}
location: https://contoso.com/operationstatus
Definitions
Name | Description |
---|---|
Availability |
The AvailabilitySets resource definition. |
Availability |
The type used for updating tags in AvailabilitySet resources. |
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Extended |
The extended location. |
Provisioning |
The provisioning state of the resource. |
system |
Metadata pertaining to creation and last modification of the resource. |
AvailabilitySet
The AvailabilitySets resource definition.
Name | Type | Description |
---|---|---|
extendedLocation |
The extended location. |
|
id |
string |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
properties.availabilitySetName |
string |
Name of the availability set. |
properties.provisioningState |
Provisioning state of the resource. |
|
properties.vmmServerId |
string |
ARM Id of the vmmServer resource in which this resource resides. |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
AvailabilitySetTagsUpdate
The type used for updating tags in AvailabilitySet resources.
Name | Type | Description |
---|---|---|
tags |
object |
Resource tags. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
ExtendedLocation
The extended location.
Name | Type | Description |
---|---|---|
name |
string |
The extended location name. |
type |
string |
The extended location type. |
ProvisioningState
The provisioning state of the resource.
Name | Type | Description |
---|---|---|
Accepted |
string |
The resource has been accepted. |
Canceled |
string |
Resource creation was canceled. |
Created |
string |
The resource was created. |
Deleting |
string |
The resource is being deleted. |
Failed |
string |
Resource creation failed. |
Provisioning |
string |
The resource is provisioning. |
Succeeded |
string |
Resource has been created. |
Updating |
string |
The resource is updating. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |