Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Commands/vm/availability-set/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ Create an availability set.

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets/{} 2024-07-01 -->

#### examples

- Create an availability set.
```bash
vm availability-set create -g myRG -n myAvailabilitySet -l westus --platform-fault-domain-count 2 --platform-update-domain-count 20
```

### [2025-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2F2YWlsYWJpbGl0eXNldHMve30=/2025-04-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets/{} 2025-04-01 -->
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/availabilitysets", "version": "2024-07-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvYXZhaWxhYmlsaXR5U2V0cw==/V/MjAyNC0wNy0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets", "version": "2024-07-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9hdmFpbGFiaWxpdHlTZXRz/V/MjAyNC0wNy0wMQ=="}], "commandGroups": [{"name": "vm availability-set", "commands": [{"name": "list", "version": "2024-07-01", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/availabilitysets", "version": "2024-07-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvYXZhaWxhYmlsaXR5U2V0cw==/V/MjAyNC0wNy0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets", "version": "2024-07-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9hdmFpbGFiaWxpdHlTZXRz/V/MjAyNC0wNy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.expand", "options": ["expand"], "help": {"short": "The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'."}}]}], "conditions": [{"var": "$Condition_AvailabilitySets_ListBySubscription", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.resourceGroupName"}}]}}, {"var": "$Condition_AvailabilitySets_List", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.resourceGroupName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_AvailabilitySets_ListBySubscription"], "operationId": "AvailabilitySets_ListBySubscription", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-07-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/availabilitySets/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "integer32", "name": "platformFaultDomainCount"}, {"type": "integer32", "name": "platformUpdateDomainCount"}, {"type": "@SubResource_read", "name": "proximityPlacementGroup"}, {"type": "object", "name": "scheduledEventsPolicy", "props": [{"type": "object", "name": "scheduledEventsAdditionalPublishingTargets", "props": [{"type": "object", "name": "eventGridAndResourceGraph", "props": [{"type": "boolean", "name": "enable"}]}]}, {"type": "object", "name": "userInitiatedReboot", "props": [{"type": "boolean", "name": "automaticallyApprove"}]}, {"type": "object", "name": "userInitiatedRedeploy", "props": [{"type": "boolean", "name": "automaticallyApprove"}]}]}, {"readOnly": true, "type": "array<object>", "name": "statuses", "item": {"type": "object", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "displayStatus"}, {"type": "string", "name": "level", "enum": {"items": [{"value": "Error"}, {"value": "Info"}, {"value": "Warning"}]}}, {"type": "string", "name": "message"}, {"type": "dateTime", "name": "time"}]}}, {"type": "array<object>", "name": "virtualMachines", "item": {"type": "object", "props": [{"type": "string", "name": "id"}], "cls": "SubResource_read"}}], "clientFlatten": true}, {"type": "object", "name": "sku", "props": [{"type": "integer64", "name": "capacity"}, {"type": "string", "name": "name"}, {"type": "string", "name": "tier"}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"when": ["$Condition_AvailabilitySets_List"], "operationId": "AvailabilitySets_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-07-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/availabilitySets/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "integer32", "name": "platformFaultDomainCount"}, {"type": "integer32", "name": "platformUpdateDomainCount"}, {"type": "@SubResource_read", "name": "proximityPlacementGroup"}, {"type": "object", "name": "scheduledEventsPolicy", "props": [{"type": "object", "name": "scheduledEventsAdditionalPublishingTargets", "props": [{"type": "object", "name": "eventGridAndResourceGraph", "props": [{"type": "boolean", "name": "enable"}]}]}, {"type": "object", "name": "userInitiatedReboot", "props": [{"type": "boolean", "name": "automaticallyApprove"}]}, {"type": "object", "name": "userInitiatedRedeploy", "props": [{"type": "boolean", "name": "automaticallyApprove"}]}]}, {"readOnly": true, "type": "array<object>", "name": "statuses", "item": {"type": "object", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "displayStatus"}, {"type": "string", "name": "level", "enum": {"items": [{"value": "Error"}, {"value": "Info"}, {"value": "Warning"}]}}, {"type": "string", "name": "message"}, {"type": "dateTime", "name": "time"}]}}, {"type": "array<@SubResource_read>", "name": "virtualMachines", "item": {"type": "@SubResource_read"}}], "clientFlatten": true}, {"type": "object", "name": "sku", "props": [{"type": "integer64", "name": "capacity"}, {"type": "string", "name": "name"}, {"type": "string", "name": "tier"}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/availabilitysets", "version": "2024-07-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvYXZhaWxhYmlsaXR5U2V0cw==/V/MjAyNC0wNy0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets", "version": "2024-07-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9hdmFpbGFiaWxpdHlTZXRz/V/MjAyNC0wNy0wMQ=="}], "commandGroups": [{"name": "vm availability-set", "commands": [{"name": "list", "version": "2024-07-01", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/availabilitysets", "version": "2024-07-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvYXZhaWxhYmlsaXR5U2V0cw==/V/MjAyNC0wNy0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets", "version": "2024-07-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9hdmFpbGFiaWxpdHlTZXRz/V/MjAyNC0wNy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.expand", "options": ["expand"], "help": {"short": "The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'."}}]}], "conditions": [{"var": "$Condition_AvailabilitySets_ListBySubscription", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.resourceGroupName"}}]}}, {"var": "$Condition_AvailabilitySets_List", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.resourceGroupName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_AvailabilitySets_ListBySubscription"], "operationId": "AvailabilitySets_ListBySubscription", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-07-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/availabilitySets/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "integer32", "name": "platformFaultDomainCount"}, {"type": "integer32", "name": "platformUpdateDomainCount"}, {"type": "@SubResource_read", "name": "proximityPlacementGroup"}, {"type": "object", "name": "scheduledEventsPolicy", "props": [{"type": "object", "name": "scheduledEventsAdditionalPublishingTargets", "props": [{"type": "object", "name": "eventGridAndResourceGraph", "props": [{"type": "boolean", "name": "enable"}]}]}, {"type": "object", "name": "userInitiatedReboot", "props": [{"type": "boolean", "name": "automaticallyApprove"}]}, {"type": "object", "name": "userInitiatedRedeploy", "props": [{"type": "boolean", "name": "automaticallyApprove"}]}]}, {"readOnly": true, "type": "array<object>", "name": "statuses", "item": {"type": "object", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "displayStatus"}, {"type": "string", "name": "level", "enum": {"items": [{"value": "Error"}, {"value": "Info"}, {"value": "Warning"}]}}, {"type": "string", "name": "message"}, {"type": "dateTime", "name": "time", "format": {"protocol": "iso"}}]}}, {"type": "array<object>", "name": "virtualMachines", "item": {"type": "object", "props": [{"type": "string", "name": "id"}], "cls": "SubResource_read"}}], "clientFlatten": true}, {"type": "object", "name": "sku", "props": [{"type": "integer64", "name": "capacity"}, {"type": "string", "name": "name"}, {"type": "string", "name": "tier"}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"when": ["$Condition_AvailabilitySets_List"], "operationId": "AvailabilitySets_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-07-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/availabilitySets/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "integer32", "name": "platformFaultDomainCount"}, {"type": "integer32", "name": "platformUpdateDomainCount"}, {"type": "@SubResource_read", "name": "proximityPlacementGroup"}, {"type": "object", "name": "scheduledEventsPolicy", "props": [{"type": "object", "name": "scheduledEventsAdditionalPublishingTargets", "props": [{"type": "object", "name": "eventGridAndResourceGraph", "props": [{"type": "boolean", "name": "enable"}]}]}, {"type": "object", "name": "userInitiatedReboot", "props": [{"type": "boolean", "name": "automaticallyApprove"}]}, {"type": "object", "name": "userInitiatedRedeploy", "props": [{"type": "boolean", "name": "automaticallyApprove"}]}]}, {"readOnly": true, "type": "array<object>", "name": "statuses", "item": {"type": "object", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "displayStatus"}, {"type": "string", "name": "level", "enum": {"items": [{"value": "Error"}, {"value": "Info"}, {"value": "Warning"}]}}, {"type": "string", "name": "message"}, {"type": "dateTime", "name": "time", "format": {"protocol": "iso"}}]}}, {"type": "array<@SubResource_read>", "name": "virtualMachines", "item": {"type": "@SubResource_read"}}], "clientFlatten": true}, {"type": "object", "name": "sku", "props": [{"type": "integer64", "name": "capacity"}, {"type": "string", "name": "name"}, {"type": "string", "name": "tier"}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@
</enum>
</prop>
<prop type="string" name="message"/>
<prop type="dateTime" name="time"/>
<prop type="dateTime" name="time">
<format protocol="iso"/>
</prop>
</item>
</prop>
<prop type="array<object>" name="virtualMachines">
Expand Down Expand Up @@ -170,7 +172,9 @@
</enum>
</prop>
<prop type="string" name="message"/>
<prop type="dateTime" name="time"/>
<prop type="dateTime" name="time">
<format protocol="iso"/>
</prop>
</item>
</prop>
<prop type="array<@SubResource_read>" name="virtualMachines">
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@
</enum>
</prop>
<prop type="string" name="message"/>
<prop type="dateTime" name="time"/>
<prop type="dateTime" name="time">
<format protocol="iso"/>
</prop>
</item>
</prop>
<prop type="array<object>" name="virtualMachines">
Expand Down Expand Up @@ -283,7 +285,9 @@
</enum>
</prop>
<prop type="string" name="message"/>
<prop type="dateTime" name="time"/>
<prop type="dateTime" name="time">
<format protocol="iso"/>
</prop>
</item>
</prop>
<prop type="array<object>" name="virtualMachines">
Expand Down Expand Up @@ -428,7 +432,9 @@
</enum>
</prop>
<prop type="string" name="message"/>
<prop type="dateTime" name="time"/>
<prop type="dateTime" name="time">
<format protocol="iso"/>
</prop>
</item>
</prop>
<prop type="array<object>" name="virtualMachines">
Expand Down