diff --git a/custom-words.txt b/custom-words.txt
index 4c4798dcad7c..dfddb4020460 100644
--- a/custom-words.txt
+++ b/custom-words.txt
@@ -1,4 +1,4 @@
-A128CBCPAD
+A128CBCPAD
A192CBCPAD
A256CBCPAD
AADDS
@@ -2799,6 +2799,11 @@ logalertv1metricmeasurement
resourcehealth
activitylog
budget
+galleryimage
+networkinterfaces
+storagecontainers
+virtualharddisks
+vippool
routeset
routesets
wayfind
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json
new file mode 100644
index 000000000000..cecf3fd6cb16
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json
@@ -0,0 +1,64 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "AzureStackHCI",
+ "description": "The Microsoft.AzureStackHCI Rest API spec",
+ "version": "2021-07-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {},
+ "definitions": {
+ "ExtendedLocationType": {
+ "type": "string",
+ "description": "The type of extendedLocation.",
+ "enum": [
+ "CustomLocation"
+ ],
+ "x-ms-enum": {
+ "name": "ExtendedLocationTypes",
+ "modelAsString": true
+ }
+ },
+ "ExtendedLocation": {
+ "description": "The complex type of the extended location.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the extended location."
+ },
+ "type": {
+ "$ref": "#/definitions/ExtendedLocationType",
+ "description": "The type of the extended location."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteGalleryImage.json
new file mode 100644
index 000000000000..6fa43b53091b
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteGalleryImage.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "galleryimagesName": "test-gallery-image",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteNetworkInterface.json
new file mode 100644
index 000000000000..0f143273b3b4
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteNetworkInterface.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "networkinterfacesName": "test-nic",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualHardDisk.json
new file mode 100644
index 000000000000..52ac04785902
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualHardDisk.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualharddisksName": "test-vhd",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualMachine.json
new file mode 100644
index 000000000000..67aa509f7b31
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualMachine.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualmachinesName": "test-vm",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualNetwork.json
new file mode 100644
index 000000000000..dc0b557ea415
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualNetwork.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualnetworksName": "test-vnet",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetGalleryImage.json
new file mode 100644
index 000000000000..7f2a16f26d9f
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetGalleryImage.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "galleryimagesName": "test-gallery-image",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image",
+ "name": "test-gallery-image",
+ "type": "Microsoft.AzureStackHCI/galleryimages",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "imagePath": "C:\\test.vhdx",
+ "containerName": "Default_Container"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetNetworkInterface.json
new file mode 100644
index 000000000000..1b00f139df70
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetNetworkInterface.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "networkinterfacesName": "test-nic",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic",
+ "name": "test-vnet",
+ "type": "Microsoft.AzureStackHCI/networkinterfaces",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "ipConfigurations": [
+ {
+ "name": "ipconfig-sample",
+ "properties": {
+ "subnet": {
+ "id": "external"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualHardDisk.json
new file mode 100644
index 000000000000..e83c302800a6
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualHardDisk.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualharddisksName": "test-vhd",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd",
+ "name": "test-vhd",
+ "type": "Microsoft.AzureStackHCI/virtualharddisks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "diskSizeBytes": 32,
+ "provisioningState": "Accepted"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualMachine.json
new file mode 100644
index 000000000000..7a79825dbafe
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualMachine.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualmachinesName": "test-vm",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm",
+ "name": "test-vm",
+ "type": "Microsoft.AzureStackHCI/virtualmachines",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "storageProfile": {
+ "imageReference": {
+ "name": "test-gallery-image"
+ }
+ },
+ "hardwareProfile": {
+ "vmSize": "Default"
+ },
+ "osProfile": {
+ "computerName": "luamaster",
+ "adminUsername": "localadmin"
+ },
+ "networkProfile": {
+ "networkInterfaces": [
+ {
+ "id": "test-nic"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualNetwork.json
new file mode 100644
index 000000000000..44ee8d02f755
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualNetwork.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualnetworksName": "test-vnet",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet",
+ "name": "test-vnet",
+ "type": "Microsoft.AzureStackHCI/virtualnetworks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "networkType": "Transparent"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageByResourceGroup.json
new file mode 100644
index 000000000000..5d3954d56d3c
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageByResourceGroup.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image",
+ "name": "test-gallery-image",
+ "type": "Microsoft.AzureStackHCI/galleryimages",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "imagePath": "C:\\test.vhdx",
+ "containerName": "Default_Container"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageBySubscription.json
new file mode 100644
index 000000000000..c6a451f57776
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageBySubscription.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image",
+ "name": "test-gallery-image",
+ "type": "Microsoft.AzureStackHCI/galleryimages",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "imagePath": "C:\\test.vhdx",
+ "containerName": "Default_Container"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceByResourceGroup.json
new file mode 100644
index 000000000000..540cd2c069ef
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceByResourceGroup.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "networkinterfacesName": "test-nic",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic",
+ "name": "test-vnet",
+ "type": "Microsoft.AzureStackHCI/networkinterfaces",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "ipConfigurations": [
+ {
+ "name": "ipconfig-sample",
+ "properties": {
+ "subnet": {
+ "id": "external"
+ }
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceBySubscription.json
new file mode 100644
index 000000000000..540cd2c069ef
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListNetworkInterfaceBySubscription.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "networkinterfacesName": "test-nic",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic",
+ "name": "test-vnet",
+ "type": "Microsoft.AzureStackHCI/networkinterfaces",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "ipConfigurations": [
+ {
+ "name": "ipconfig-sample",
+ "properties": {
+ "subnet": {
+ "id": "external"
+ }
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json
new file mode 100644
index 000000000000..0d87657337c5
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListOperations.json
@@ -0,0 +1,243 @@
+{
+ "parameters": {
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.AzureStackHCI/Operations/Read",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "Operations",
+ "operation": "Gets/List operations resources",
+ "description": "Gets operations"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/Restart/Action",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines",
+ "operation": "Restarts virtual machine resource",
+ "description": "Restarts virtual machine resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/Start/Action",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines",
+ "operation": "Starts virtual machine resource",
+ "description": "Starts virtual machine resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/Stop/Action",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines",
+ "operation": "Stops virtual machine resource",
+ "description": "Stops virtual machine resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/Delete",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines",
+ "operation": "Deletes virtual machine resource",
+ "description": "Deletes virtual machine resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/Write",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines",
+ "operation": "Creates/Updates virtual machine resource",
+ "description": "Creates/Updates virtual machine resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/Read",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines",
+ "operation": "Gets/Lists virtual machine resource",
+ "description": "Gets/Lists virtual machine resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualNetworks/Delete",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualNetworks",
+ "operation": "Deletes virtual networks resource",
+ "description": "Deletes virtual networks resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualNetworks/Write",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualNetworks",
+ "operation": "Creates/Updates virtual networks resource",
+ "description": "Creates/Updates virtual networks resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualNetworks/Read",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualNetworks",
+ "operation": "Gets/Lists virtual networks resource",
+ "description": "Gets/Lists virtual networks resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Delete",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualHardDisks",
+ "operation": "Deletes virtual hard disk resource",
+ "description": "Deletes virtual hard disk resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Write",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualHardDisks",
+ "operation": "Creates/Updates virtual hard disk resource",
+ "description": "Creates/Updates virtual hard disk resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Read",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualHardDisks",
+ "operation": "Gets/Lists virtual hard disk resource",
+ "description": "Gets/Lists virtual hard disk resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Delete",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "NetworkInterfaces",
+ "operation": "Deletes network interfaces resource",
+ "description": "Deletes network interfaces resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Write",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "NetworkInterfaces",
+ "operation": "Creates/Updates network interfaces resource",
+ "description": "Creates/Updates network interfaces resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Read",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "NetworkInterfaces",
+ "operation": "Gets/Lists network interfaces resource",
+ "description": "Gets/Lists network interfaces resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/GalleryImages/Delete",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "GalleryImages",
+ "operation": "Deletes gallery images resource",
+ "description": "Deletes gallery images resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/GalleryImages/Write",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "GalleryImages",
+ "operation": "Creates/Updates gallery images resource",
+ "description": "Creates/Updates gallery images resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/GalleryImages/Read",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "GalleryImages",
+ "operation": "Gets/Lists gallery images resource",
+ "description": "Gets/Lists gallery images resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/HybridIdentityMetadata/Read",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines/HybridIdentityMetadata",
+ "operation": "Gets/Lists virtual machine hybrid identity metadata proxy resource",
+ "description": "Gets/Lists virtual machine hybrid identity metadata proxy resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/Extensions/Read",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines/Extensions",
+ "operation": "Gets/Lists virtual machine extensions resource",
+ "description": "Gets/Lists virtual machine extensions resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/Extensions/Write",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines/Extensions",
+ "operation": "Creates/Updates virtual machine extensions resource",
+ "description": "Creates/Updates virtual machine extensions resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureStackHCI/VirtualMachines/Extensions/Delete",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.AzureStackHCI",
+ "resource": "VirtualMachines/Extensions",
+ "operation": "Deletes virtual machine extensions resource",
+ "description": "Deletes virtual machine extensions resource"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskByResourceGroup.json
new file mode 100644
index 000000000000..b7b8443dc390
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskByResourceGroup.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd",
+ "name": "test-vhd",
+ "type": "Microsoft.AzureStackHCI/virtualharddisks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "diskSizeBytes": 32,
+ "provisioningState": "Accepted"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskBySubscription.json
new file mode 100644
index 000000000000..1a01a047f5ed
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualHardDiskBySubscription.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd",
+ "name": "test-vhd",
+ "type": "Microsoft.AzureStackHCI/virtualharddisks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "diskSizeBytes": 32,
+ "provisioningState": "Accepted"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineByResourceGroup.json
new file mode 100644
index 000000000000..b3940c7f7e85
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineByResourceGroup.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm",
+ "name": "test-vm",
+ "type": "Microsoft.AzureStackHCI/virtualmachines",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "storageProfile": {
+ "imageReference": {
+ "name": "test-gallery-image"
+ }
+ },
+ "hardwareProfile": {
+ "vmSize": "Default"
+ },
+ "osProfile": {
+ "computerName": "luamaster",
+ "adminUsername": "localadmin"
+ },
+ "networkProfile": {
+ "networkInterfaces": [
+ {
+ "id": "test-nic"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineBySubscription.json
new file mode 100644
index 000000000000..5fdebe9e5920
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualMachineBySubscription.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm",
+ "name": "test-vm",
+ "type": "Microsoft.AzureStackHCI/virtualmachines",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "storageProfile": {
+ "imageReference": {
+ "name": "test-gallery-image"
+ }
+ },
+ "hardwareProfile": {
+ "vmSize": "Default"
+ },
+ "osProfile": {
+ "computerName": "luamaster",
+ "adminUsername": "localadmin"
+ },
+ "networkProfile": {
+ "networkInterfaces": [
+ {
+ "id": "test-nic"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkByResourceGroup.json
new file mode 100644
index 000000000000..8135a2d2e518
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkByResourceGroup.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet",
+ "name": "test-vnet",
+ "type": "Microsoft.AzureStackHCI/virtualnetworks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "networkType": "Transparent"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkBySubscription.json
new file mode 100644
index 000000000000..8485a41c47e2
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/ListVirtualNetworkBySubscription.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet",
+ "name": "test-vnet",
+ "type": "Microsoft.AzureStackHCI/virtualnetworks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "networkType": "Transparent"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutGalleryImage.json
new file mode 100644
index 000000000000..3fc94333ab8a
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutGalleryImage.json
@@ -0,0 +1,55 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "galleryimagesName": "test-gallery-image",
+ "api-version": "2021-07-01-preview",
+ "galleryimages": {
+ "location": "West US2",
+ "extendedLocation": {
+ "type": "CustomLocation",
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"
+ },
+ "properties": {
+ "imagePath": "C:\\test.vhdx",
+ "containerName": "Default_Container"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image",
+ "name": "test-gallery-image",
+ "type": "Microsoft.AzureStackHCI/galleryimages",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "imagePath": "C:\\test.vhdx",
+ "containerName": "Default_Container"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-galimg3325",
+ "name": "test-gallery-image",
+ "type": "Microsoft.AzureStackHCI/galleryimages",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "provisioningState": "Created",
+ "imagePath": "C:\\test.vhdx",
+ "containerName": "Default_Container"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutNetworkInterface.json
new file mode 100644
index 000000000000..4f7398e8b2a1
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutNetworkInterface.json
@@ -0,0 +1,79 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "networkinterfacesName": "test-nic",
+ "api-version": "2021-07-01-preview",
+ "networkinterfaces": {
+ "location": "West US2",
+ "extendedLocation": {
+ "type": "CustomLocation",
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"
+ },
+ "properties": {
+ "ipConfigurations": [
+ {
+ "name": "ipconfig-sample",
+ "properties": {
+ "subnet": {
+ "id": "test-vnet"
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic",
+ "name": "test-nic",
+ "type": "Microsoft.AzureStackHCI/networkinterfaces",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "ipConfigurations": [
+ {
+ "name": "ipconfig-sample",
+ "properties": {
+ "subnet": {
+ "id": "test-vnet"
+ }
+ }
+ }
+ ],
+ "provisioningState": "Accepted"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic",
+ "name": "test-nic",
+ "type": "Microsoft.AzureStackHCI/networkinterfaces",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "ipConfigurations": [
+ {
+ "name": "ipconfig-sample",
+ "properties": {
+ "subnet": {
+ "id": "test-vnet"
+ }
+ }
+ }
+ ],
+ "provisioningState": "Created"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualHardDisk.json
new file mode 100644
index 000000000000..bdbd1d080d46
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualHardDisk.json
@@ -0,0 +1,52 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualharddisksName": "test-vhd",
+ "api-version": "2021-07-01-preview",
+ "virtualharddisks": {
+ "location": "West US2",
+ "extendedLocation": {
+ "type": "CustomLocation",
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"
+ },
+ "properties": {
+ "diskSizeBytes": 32
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd",
+ "name": "test-vhd",
+ "type": "Microsoft.AzureStackHCI/virtualharddisks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "diskSizeBytes": 32,
+ "provisioningState": "Accepted"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd",
+ "name": "test-vhd",
+ "type": "Microsoft.AzureStackHCI/virtualharddisks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "diskSizeBytes": 32,
+ "provisioningState": "Created"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json
new file mode 100644
index 000000000000..f2dc5b0baa76
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualMachine.json
@@ -0,0 +1,103 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualmachinesName": "test-vm",
+ "api-version": "2021-07-01-preview",
+ "virtualmachines": {
+ "location": "West US2",
+ "extendedLocation": {
+ "type": "CustomLocation",
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"
+ },
+ "properties": {
+ "storageProfile": {
+ "imageReference": {
+ "name": "test-gallery-image"
+ }
+ },
+ "hardwareProfile": {
+ "vmSize": "Default"
+ },
+ "osProfile": {
+ "computerName": "luamaster",
+ "adminUsername": "localadmin",
+ "adminPassword": "password"
+ },
+ "networkProfile": {
+ "networkInterfaces": [
+ {
+ "id": "test-nic"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm",
+ "location": "West US2",
+ "extendedLocation": {
+ "type": "CustomLocation",
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"
+ },
+ "properties": {
+ "storageProfile": {
+ "imageReference": {
+ "name": "test-galimg"
+ }
+ },
+ "hardwareProfile": {
+ "vmSize": "Default"
+ },
+ "osProfile": {
+ "computerName": "luamaster",
+ "adminUsername": "localadmin"
+ },
+ "networkProfile": {
+ "networkInterfaces": [
+ {
+ "id": "test-nic"
+ }
+ ]
+ },
+ "provisioningState": "Accepted"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm",
+ "location": "West US2",
+ "extendedLocation": {
+ "type": "CustomLocation",
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"
+ },
+ "properties": {
+ "storageProfile": {
+ "imageReference": {
+ "name": "test-galimg"
+ }
+ },
+ "hardwareProfile": {
+ "vmSize": "Default"
+ },
+ "osProfile": {
+ "computerName": "luamaster",
+ "adminUsername": "localadmin"
+ },
+ "networkProfile": {
+ "networkInterfaces": [
+ {
+ "id": "test-nic"
+ }
+ ]
+ },
+ "provisioningState": "created"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualNetwork.json
new file mode 100644
index 000000000000..c5876d83d439
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/PutVirtualNetwork.json
@@ -0,0 +1,52 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualnetworksName": "test-vnet",
+ "api-version": "2021-07-01-preview",
+ "virtualnetworks": {
+ "location": "West US2",
+ "extendedLocation": {
+ "type": "CustomLocation",
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"
+ },
+ "properties": {
+ "networkType": "Transparent"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet",
+ "name": "test-vnet",
+ "type": "Microsoft.AzureStackHCI/virtualnetworks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "networkType": "Transparent",
+ "provisioningState": "Accepted"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet",
+ "name": "test-vnet",
+ "type": "Microsoft.AzureStackHCI/virtualnetworks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "networkType": "Transparent",
+ "provisioningState": "Created"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json
new file mode 100644
index 000000000000..75e8beade82a
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/RestartVirtualMachine.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualmachinesName": "test-vm",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse"
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json
new file mode 100644
index 000000000000..75e8beade82a
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StartVirtualMachine.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualmachinesName": "test-vm",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse"
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json
new file mode 100644
index 000000000000..75e8beade82a
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/StopVirtualMachine.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualmachinesName": "test-vm",
+ "api-version": "2021-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2021-07-01-preview&asyncResponse"
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json
new file mode 100644
index 000000000000..467bf7eb08a4
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateGalleryImage.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "galleryimagesName": "test-gallery-image",
+ "api-version": "2021-07-01-preview",
+ "galleryimages": {
+ "tags": {
+ "additionalProperties": "sample"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-galimg3325",
+ "name": "test-gallery-image",
+ "type": "Microsoft.AzureStackHCI/galleryimages",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "tags": {
+ "additionalProperties": "sample"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "imagePath": "C:\\test.vhdx",
+ "containerName": "Default_Container"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json
new file mode 100644
index 000000000000..1f4d1f1f0104
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateNetworkInterface.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "networkinterfacesName": "test-nic",
+ "api-version": "2021-07-01-preview",
+ "networkinterfaces": {
+ "tags": {
+ "additionalProperties": "sample"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic",
+ "name": "test-nic",
+ "type": "Microsoft.AzureStackHCI/networkinterfaces",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "ipConfigurations": [
+ {
+ "name": "ipconfig-sample",
+ "properties": {
+ "subnet": {
+ "id": "test-vnet"
+ }
+ }
+ }
+ ],
+ "provisioningState": "Accepted"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json
new file mode 100644
index 000000000000..04fafae04763
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualHardDisk.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualharddisksName": "test-vhd",
+ "api-version": "2021-07-01-preview",
+ "virtualharddisks": {
+ "tags": {
+ "additionalProperties": "sample"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd",
+ "name": "test-vhd",
+ "type": "Microsoft.AzureStackHCI/virtualharddisks",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "tags": {
+ "additionalProperties": "sample"
+ },
+ "properties": {
+ "diskSizeBytes": 32,
+ "provisioningState": "Accepted"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json
new file mode 100644
index 000000000000..280392ec62c3
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualMachine.json
@@ -0,0 +1,52 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualmachinesName": "test-vm",
+ "api-version": "2021-07-01-preview",
+ "virtualmachines": {
+ "tags": {
+ "additionalProperties": "sample"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm",
+ "name": "test-vm",
+ "type": "Microsoft.AzureStackHCI/virtualmachines",
+ "location": "West US2",
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "tags": {
+ "additionalProperties": "sample"
+ },
+ "properties": {
+ "provisioningState": "Accepted",
+ "storageProfile": {
+ "imageReference": {
+ "name": "test-gallery-image"
+ }
+ },
+ "hardwareProfile": {
+ "vmSize": "Default"
+ },
+ "osProfile": {
+ "computerName": "luamaster",
+ "adminUsername": "localadmin"
+ },
+ "networkProfile": {
+ "networkInterfaces": [
+ {
+ "id": "test-nic"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json
new file mode 100644
index 000000000000..b1458c6ca90b
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/UpdateVirtualNetwork.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
+ "resourceGroupName": "test-rg",
+ "virtualnetworksName": "test-vnet",
+ "api-version": "2021-07-01-preview",
+ "virtualnetworks": {
+ "tags": {
+ "additionalProperties": "sample"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualnetworks/test-vnet",
+ "name": "test-vnet",
+ "type": "Microsoft.AzureStackHCI/virtualnetworks",
+ "location": "West US2",
+ "tags": {
+ "additionalProperties": "sample"
+ },
+ "extendedLocation": {
+ "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
+ "type": "CustomLocation"
+ },
+ "properties": {
+ "networkType": "Transparent",
+ "provisioningState": "Accepted"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json
new file mode 100644
index 000000000000..9382be4991c9
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json
@@ -0,0 +1,421 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "AzureStackHCI",
+ "description": "The Microsoft.AzureStackHCI Rest API spec.",
+ "version": "2021-07-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryimages/{galleryimagesName}": {
+ "get": {
+ "operationId": "galleryimages_Retrieve",
+ "description": "Lists all galleryimages under the resource group.",
+ "x-ms-examples": {
+ "GetGalleryImage": {
+ "$ref": "./examples/GetGalleryImage.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/galleryimagesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Retrieves the galleryimages resource.",
+ "schema": {
+ "$ref": "#/definitions/galleryimages"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "galleryimages_CreateOrUpdate",
+ "description": "Create or update a galleryimage.",
+ "x-ms-examples": {
+ "PutGalleryImage": {
+ "$ref": "./examples/PutGalleryImage.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/galleryimagesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "galleryimages",
+ "in": "body",
+ "required": true,
+ "description": "Spec of the to-be-created galleryimage resource",
+ "schema": {
+ "$ref": "#/definitions/galleryimages"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the galleryimages resource.",
+ "schema": {
+ "$ref": "#/definitions/galleryimages"
+ }
+ },
+ "201": {
+ "description": "Creates the galleryimages resource.",
+ "schema": {
+ "$ref": "#/definitions/galleryimages"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "galleryimages_Delete",
+ "description": "Delete a galleryimage.",
+ "x-ms-examples": {
+ "DeleteGalleryImage": {
+ "$ref": "./examples/DeleteGalleryImage.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/galleryimagesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Deletes the galleryimages resource."
+ },
+ "204": {
+ "description": "No content"
+ }
+ }
+ },
+ "patch": {
+ "operationId": "galleryimages_Update",
+ "description": "Update a galleryimage.",
+ "x-ms-examples": {
+ "UpdateGalleryImage": {
+ "$ref": "./examples/UpdateGalleryImage.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/galleryimagesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "galleryimages",
+ "in": "body",
+ "required": true,
+ "description": "Patch of the updated galleryimage resource",
+ "schema": {
+ "$ref": "#/definitions/galleryimagesPatch"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the galleryimages resource.",
+ "schema": {
+ "$ref": "#/definitions/galleryimages"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryimages": {
+ "get": {
+ "operationId": "galleryimages_ListByResourceGroup",
+ "description": "Lists all galleryimages under the resource group.",
+ "x-ms-examples": {
+ "ListGalleryImageByResourceGroup": {
+ "$ref": "./examples/ListGalleryImageByResourceGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all galleryimages under the resource group.",
+ "schema": {
+ "$ref": "#/definitions/galleryimagesListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryimages": {
+ "get": {
+ "operationId": "galleryimages_ListBySubscription",
+ "description": "List all galleryimages under the subscription",
+ "x-ms-examples": {
+ "ListGalleryImageByResourceGroup": {
+ "$ref": "./examples/ListGalleryImageBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all galleryimages under the subscription.",
+ "schema": {
+ "$ref": "#/definitions/galleryimagesListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "galleryimagesProperties": {
+ "type": "object",
+ "x-ms-client-flatten": true,
+ "properties": {
+ "containerName": {
+ "type": "string",
+ "description": "Container Name for storage container"
+ },
+ "imagePath": {
+ "type": "string",
+ "description": "location of the image the gallery image should be created from"
+ },
+ "osType": {
+ "type": "string",
+ "enum": [
+ "Windows",
+ "Linux"
+ ],
+ "x-ms-enum": {
+ "name": "OperatingSystemTypes",
+ "modelAsString": false
+ },
+ "description": "operating system type that the gallery image uses. Expected to be linux or windows"
+ },
+ "provisioningState": {
+ "type": "string",
+ "description": "Provisioning state of the gallery image.",
+ "readOnly": true,
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "InProgress",
+ "Accepted",
+ "Deleting"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningStateEnum",
+ "modelAsString": true
+ }
+ },
+ "resourceName": {
+ "type": "string",
+ "description": "name of the object to be used in moc"
+ },
+ "status": {
+ "$ref": "#/definitions/GalleryImageStatus"
+ }
+ }
+ },
+ "GalleryImageStatus": {
+ "type": "object",
+ "description": "GalleryImageStatus defines the observed state of MOCGalleryImage",
+ "x-ms-client-flatten": true,
+ "readOnly": true,
+ "properties": {
+ "errorCode": {
+ "type": "string",
+ "description": "GalleryImage provisioning error code"
+ },
+ "errorMessage": {
+ "type": "string",
+ "description": "Descriptive error message"
+ }
+ }
+ },
+ "galleryimages": {
+ "type": "object",
+ "description": "The galleryimages resource definition.",
+ "x-ms-azure-resource": true,
+ "x-ms-client-flatten": true,
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/galleryimagesProperties"
+ },
+ "extendedLocation": {
+ "$ref": "./common.json#/definitions/ExtendedLocation",
+ "description": "The extendedLocation of the resource."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ]
+ },
+ "galleryimagesPatch": {
+ "type": "object",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "description": "The galleryimages resource patch definition."
+ },
+ "galleryimagesListResult": {
+ "type": "object",
+ "description": "List of galleryimages.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/galleryimages"
+ }
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "Link to the next set of results.",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "galleryimagesNameParameter": {
+ "name": "galleryimagesName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "maxLength": 64,
+ "minLength": 3,
+ "description": "Name of the gallery image"
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json
new file mode 100644
index 000000000000..bbaf459500a4
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json
@@ -0,0 +1,471 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "AzureStackHCI",
+ "description": "The Microsoft.AzureStackHCI Rest API spec.",
+ "version": "2021-07-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkinterfaces/{networkinterfacesName}": {
+ "get": {
+ "operationId": "networkinterfaces_Retrieve",
+ "x-ms-examples": {
+ "GetNetworkInterface": {
+ "$ref": "./examples/GetNetworkInterface.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/networkinterfacesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Retrieves the networkinterfaces resource.",
+ "schema": {
+ "$ref": "#/definitions/networkinterfaces"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "networkinterfaces_CreateOrUpdate",
+ "x-ms-examples": {
+ "PutNetworkInterface": {
+ "$ref": "./examples/PutNetworkInterface.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/networkinterfacesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "networkinterfaces",
+ "in": "body",
+ "required": true,
+ "description": "Spec of the to-be-created networkinterfaces resource",
+ "schema": {
+ "$ref": "#/definitions/networkinterfaces"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the networkinterfaces resource.",
+ "schema": {
+ "$ref": "#/definitions/networkinterfaces"
+ }
+ },
+ "201": {
+ "description": "Creates the networkinterfaces resource.",
+ "schema": {
+ "$ref": "#/definitions/networkinterfaces"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "networkinterfaces_Delete",
+ "x-ms-examples": {
+ "DeleteNetworkInterface": {
+ "$ref": "./examples/DeleteNetworkInterface.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/networkinterfacesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Deletes the networkinterfaces resource."
+ },
+ "204": {
+ "description": "No content"
+ }
+ }
+ },
+ "patch": {
+ "operationId": "networkinterfaces_Update",
+ "x-ms-examples": {
+ "UpdateNetworkInterface": {
+ "$ref": "./examples/UpdateNetworkInterface.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/networkinterfacesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "networkinterfaces",
+ "in": "body",
+ "required": true,
+ "description": "Patch of the updated networkinterfaces resource",
+ "schema": {
+ "$ref": "#/definitions/networkinterfacesPatch"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the networkinterfaces resource.",
+ "schema": {
+ "$ref": "#/definitions/networkinterfaces"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkinterfaces": {
+ "get": {
+ "operationId": "networkinterfaces_ListByResourceGroup",
+ "x-ms-examples": {
+ "ListNetworkInterfaceByResourceGroup": {
+ "$ref": "./examples/ListNetworkInterfaceByResourceGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all networkinterfaces under the resource group.",
+ "schema": {
+ "$ref": "#/definitions/networkinterfacesListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/networkinterfaces": {
+ "get": {
+ "operationId": "networkinterfaces_ListBySubscription",
+ "x-ms-examples": {
+ "ListNetworkInterfaceBySubscription": {
+ "$ref": "./examples/ListNetworkInterfaceBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all networkinterfaces under the subscription.",
+ "schema": {
+ "$ref": "#/definitions/networkinterfacesListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "InterfaceDNSSettings": {
+ "type": "object",
+ "properties": {
+ "dnsServers": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of DNS server IP Addresses for the interface"
+ }
+ }
+ },
+ "networkinterfacesProperties": {
+ "type": "object",
+ "x-ms-client-flatten": true,
+ "properties": {
+ "ipConfigurations": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ipConfiguration"
+ },
+ "description": "IPConfigurations - A list of IPConfigurations of the network interface.",
+ "x-ms-identifiers": []
+ },
+ "macAddress": {
+ "type": "string",
+ "description": "MacAddress - The MAC address of the network interface."
+ },
+ "dnsSettings": {
+ "$ref": "#/definitions/InterfaceDNSSettings",
+ "description": "DNS Settings for the interface"
+ },
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "InProgress",
+ "Accepted",
+ "Deleting"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningStateEnum",
+ "modelAsString": true
+ }
+ },
+ "resourceName": {
+ "type": "string",
+ "description": "name of the object to be used in moc"
+ },
+ "status": {
+ "$ref": "#/definitions/NetworkInterfaceStatus"
+ }
+ },
+ "description": "NetworkInterfaceSpec defines the desired state of NetworkInterface"
+ },
+ "NetworkInterfaceStatus": {
+ "type": "object",
+ "description": "NetworkInterfaceStatus defines the observed state of NetworkInterface",
+ "x-ms-client-flatten": true,
+ "readOnly": true,
+ "properties": {
+ "errorCode": {
+ "type": "string",
+ "description": "NetworkInterface provisioning error code"
+ },
+ "errorMessage": {
+ "type": "string",
+ "description": "Descriptive error message"
+ }
+ }
+ },
+ "ipConfiguration": {
+ "type": "object",
+ "x-ms-client-flatten": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name - The name of the resource that is unique within a resource group. This name can be used to access the resource."
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "gateway": {
+ "x-ms-client-flatten": true,
+ "type": "string",
+ "description": "Gateway for network interface"
+ },
+ "prefixLength": {
+ "type": "string",
+ "description": "prefixLength for network interface"
+ },
+ "privateIPAddress": {
+ "type": "string",
+ "description": "PrivateIPAddress - Private IP address of the IP configuration."
+ },
+ "privateIPAllocationMethod": {
+ "type": "string",
+ "description": "PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic'",
+ "enum": [
+ "Dynamic",
+ "Static"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateIPAllocationMethodEnum",
+ "modelAsString": true
+ }
+ },
+ "subnet": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "ID - The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/..."
+ }
+ },
+ "description": "Subnet - Name of Subnet bound to the IP configuration."
+ }
+ },
+ "description": "InterfaceIPConfigurationPropertiesFormat properties of IP configuration."
+ }
+ },
+ "description": "InterfaceIPConfiguration iPConfiguration in a network interface."
+ },
+ "networkinterfaces": {
+ "type": "object",
+ "description": "The networkinterfaces resource definition.",
+ "x-ms-azure-resource": true,
+ "x-ms-client-flatten": true,
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/networkinterfacesProperties"
+ },
+ "extendedLocation": {
+ "$ref": "./common.json#/definitions/ExtendedLocation",
+ "description": "The extendedLocation of the resource."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ]
+ },
+ "networkinterfacesPatch": {
+ "type": "object",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "description": "The networkinterfaces resource patch definition."
+ },
+ "networkinterfacesListResult": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/networkinterfaces"
+ }
+ },
+ "nextLink": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "networkinterfacesNameParameter": {
+ "name": "networkinterfacesName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "maxLength": 64,
+ "minLength": 3
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json
new file mode 100644
index 000000000000..fc6acb220730
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json
@@ -0,0 +1,73 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2021-07-01-preview",
+ "title": "AzureStackHCI",
+ "description": "Azure Stack HCI management service"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {
+ "/providers/Microsoft.AzureStackHCI/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "operationId": "Operations_List",
+ "x-ms-examples": {
+ "List Operations": {
+ "$ref": "./examples/ListOperations.json"
+ }
+ },
+ "description": "List all available Microsoft.AzureStackHCI provider operations",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {},
+ "parameters": {}
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json
new file mode 100644
index 000000000000..75dc5b899e24
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json
@@ -0,0 +1,409 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "AzureStackHCI",
+ "description": "The Microsoft.AzureStackHCI Rest API spec.",
+ "version": "2021-07-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualharddisks/{virtualharddisksName}": {
+ "get": {
+ "operationId": "virtualharddisks_Retrieve",
+ "x-ms-examples": {
+ "GetVirtualHardDisk": {
+ "$ref": "./examples/GetVirtualHardDisk.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualharddisksNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Retrieves the virtualharddisks resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualharddisks"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "virtualharddisks_CreateOrUpdate",
+ "x-ms-examples": {
+ "PutVirtualHardDisk": {
+ "$ref": "./examples/PutVirtualHardDisk.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualharddisksNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "virtualharddisks",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/virtualharddisks"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the virtualharddisks resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualharddisks"
+ }
+ },
+ "201": {
+ "description": "Creates the virtualharddisks resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualharddisks"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "virtualharddisks_Delete",
+ "x-ms-examples": {
+ "DeleteVirtualHardDisk": {
+ "$ref": "./examples/DeleteVirtualHardDisk.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualharddisksNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Deletes the virtualharddisks resource."
+ },
+ "204": {
+ "description": "No content"
+ }
+ }
+ },
+ "patch": {
+ "operationId": "virtualharddisks_Update",
+ "x-ms-examples": {
+ "UpdateVirtualHardDisk": {
+ "$ref": "./examples/UpdateVirtualHardDisk.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualharddisksNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "virtualharddisks",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/virtualharddisksPatch"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the virtualharddisks resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualharddisks"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualharddisks": {
+ "get": {
+ "operationId": "virtualharddisks_ListByResourceGroup",
+ "x-ms-examples": {
+ "ListVirtualHardDiskByResourceGroup": {
+ "$ref": "./examples/ListVirtualHardDiskByResourceGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all virtualharddisks under the resource group.",
+ "schema": {
+ "$ref": "#/definitions/virtualharddisksListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualharddisks": {
+ "get": {
+ "operationId": "virtualharddisks_ListBySubscription",
+ "x-ms-examples": {
+ "ListVirtualHardDiskByResourceGroup": {
+ "$ref": "./examples/ListVirtualHardDiskBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all virtualharddisks under the subscription.",
+ "schema": {
+ "$ref": "#/definitions/virtualharddisksListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "virtualharddisksProperties": {
+ "type": "object",
+ "properties": {
+ "blockSizeBytes": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "diskSizeBytes": {
+ "type": "integer",
+ "format": "int64",
+ "description": "diskSizeBytes - size of the disk in GB"
+ },
+ "dynamic": {
+ "type": "boolean",
+ "description": "Boolean for enabling dynamic sizing on the virtual hard disk"
+ },
+ "logicalSectorBytes": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "physicalSectorBytes": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "InProgress",
+ "Accepted",
+ "Deleting"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningStateEnum",
+ "modelAsString": true
+ }
+ },
+ "resourceName": {
+ "type": "string",
+ "description": "name of the object to be used in moc"
+ },
+ "status": {
+ "$ref": "#/definitions/VirtualHardDiskStatus"
+ }
+ },
+ "description": "VirtualHardDiskSpec defines the desired state of VirtualHardDisk"
+ },
+ "VirtualHardDiskStatus": {
+ "type": "object",
+ "description": "VirtualHardDiskStatus defines the observed state of VirtualHardDisk",
+ "x-ms-client-flatten": true,
+ "readOnly": true,
+ "properties": {
+ "errorCode": {
+ "type": "string",
+ "description": "NetworkInterface provisioning error code"
+ },
+ "errorMessage": {
+ "type": "string",
+ "description": "Descriptive error message"
+ }
+ }
+ },
+ "virtualharddisks": {
+ "type": "object",
+ "description": "The virtualharddisks resource definition.",
+ "x-ms-azure-resource": true,
+ "x-ms-client-flatten": true,
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/virtualharddisksProperties"
+ },
+ "extendedLocation": {
+ "$ref": "./common.json#/definitions/ExtendedLocation",
+ "description": "The extendedLocation of the resource."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ]
+ },
+ "virtualharddisksPatch": {
+ "type": "object",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "description": "The virtualharddisks resource patch definition."
+ },
+ "virtualharddisksListResult": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/virtualharddisks"
+ }
+ },
+ "nextLink": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "virtualharddisksNameParameter": {
+ "name": "virtualharddisksName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "maxLength": 64,
+ "minLength": 3
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json
new file mode 100644
index 000000000000..2f8fe8523931
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json
@@ -0,0 +1,840 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "AzureStackHCI",
+ "description": "The Microsoft.AzureStackHCI Rest API spec.",
+ "version": "2021-07-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}": {
+ "get": {
+ "operationId": "virtualmachines_Retrieve",
+ "x-ms-examples": {
+ "GetVirtualMachine": {
+ "$ref": "./examples/GetVirtualMachine.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualmachinesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Retrieves the virtualmachines resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualmachines"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "virtualmachines_CreateOrUpdate",
+ "x-ms-examples": {
+ "PutVirtualMachine": {
+ "$ref": "./examples/PutVirtualMachine.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualmachinesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "virtualmachines",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/virtualmachines"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the virtualmachines resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualmachines"
+ }
+ },
+ "201": {
+ "description": "Creates the virtualmachines resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualmachines"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "virtualmachines_Delete",
+ "x-ms-examples": {
+ "DeleteVirtualMachine": {
+ "$ref": "./examples/DeleteVirtualMachine.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualmachinesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Deletes the virtualmachines resource."
+ },
+ "204": {
+ "description": "No content"
+ }
+ }
+ },
+ "patch": {
+ "operationId": "virtualmachines_Update",
+ "x-ms-examples": {
+ "UpdateVirtualMachine": {
+ "$ref": "./examples/UpdateVirtualMachine.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualmachinesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "virtualmachines",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/virtualmachinesPatch"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the virtualmachines resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualmachines"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}/start": {
+ "post": {
+ "operationId": "virtualmachines_Start",
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "x-ms-examples": {
+ "StartVirtualMachine": {
+ "$ref": "./examples/StartVirtualMachine.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualmachinesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Ok."
+ },
+ "202": {
+ "description": "Accepted."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}/stop": {
+ "post": {
+ "operationId": "virtualmachines_Stop",
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "x-ms-examples": {
+ "StopVirtualMachine": {
+ "$ref": "./examples/StopVirtualMachine.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualmachinesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Ok."
+ },
+ "202": {
+ "description": "Accepted."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines/{virtualmachinesName}/restart": {
+ "post": {
+ "operationId": "virtualmachines_Restart",
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "x-ms-examples": {
+ "RestartVirtualMachine": {
+ "$ref": "./examples/RestartVirtualMachine.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualmachinesNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Ok."
+ },
+ "202": {
+ "description": "Accepted."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualmachines": {
+ "get": {
+ "operationId": "virtualmachines_ListByResourceGroup",
+ "x-ms-examples": {
+ "ListVirtualMachineByResourceGroup": {
+ "$ref": "./examples/ListVirtualMachineByResourceGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all virtualmachines under the resource group.",
+ "schema": {
+ "$ref": "#/definitions/virtualmachinesListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualmachines": {
+ "get": {
+ "operationId": "virtualmachines_ListBySubscription",
+ "x-ms-examples": {
+ "ListVirtualMachineBySubscription": {
+ "$ref": "./examples/ListVirtualMachineBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all virtualmachines under the subscription.",
+ "schema": {
+ "$ref": "#/definitions/virtualmachinesListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "virtualmachinesProperties": {
+ "type": "object",
+ "x-ms-client-flatten": true,
+ "properties": {
+ "hardwareProfile": {
+ "type": "object",
+ "properties": {
+ "vmSize": {
+ "type": "string"
+ },
+ "processors": {
+ "type": "integer",
+ "format": "int32",
+ "description": "number of processors for the virtual machine"
+ },
+ "memoryGB": {
+ "type": "integer",
+ "format": "int32",
+ "description": "RAM in gb for the virtual machine"
+ },
+ "dynamicMemoryConfig": {
+ "type": "object",
+ "properties": {
+ "maximumMemoryGB": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "minimumMemoryGB": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "targetMemoryBuffer": {
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ }
+ },
+ "description": "HardwareProfile - Specifies the hardware settings for the virtual machine."
+ },
+ "networkProfile": {
+ "type": "object",
+ "properties": {
+ "networkInterfaces": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the network interface"
+ }
+ }
+ },
+ "description": "NetworkInterfaces - list of network interfaces to be attached to the virtual machine"
+ }
+ },
+ "description": "NetworkProfile - describes the network configuration the virtual machine"
+ },
+ "osProfile": {
+ "type": "object",
+ "properties": {
+ "adminPassword": {
+ "type": "string",
+ "x-ms-secret": true,
+ "description": "AdminPassword - admin password",
+ "x-ms-mutability": [
+ "create"
+ ]
+ },
+ "adminUsername": {
+ "type": "string",
+ "description": "AdminUsername - admin username"
+ },
+ "computerName": {
+ "type": "string",
+ "description": "ComputerName - name of the compute"
+ },
+ "linuxConfiguration": {
+ "type": "object",
+ "properties": {
+ "disablePasswordAuthentication": {
+ "type": "boolean",
+ "description": "DisablePasswordAuthentication - whether password authentication should be disabled"
+ },
+ "ssh": {
+ "type": "object",
+ "properties": {
+ "publicKeys": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "keyData": {
+ "type": "string",
+ "x-ms-secret": true,
+ "description": "KeyData - SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.
For creating ssh keys, see [Create SSH keys on Linux and Mac for Li nux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)."
+ },
+ "path": {
+ "type": "string",
+ "description": "Path - Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys"
+ }
+ }
+ },
+ "description": "PublicKeys - The list of SSH public keys used to authenticate with linux based VMs.",
+ "x-ms-identifiers": []
+ }
+ },
+ "description": "SSH - contains settings related to ssh configuration"
+ }
+ },
+ "description": "LinuxConfiguration - linux specific configuration values for the virtual machine"
+ },
+ "osType": {
+ "type": "string",
+ "description": "OsType - string specifying whether the OS is Linux or Windows",
+ "enum": [
+ "Linux",
+ "Windows"
+ ],
+ "x-ms-enum": {
+ "name": "OsTypeEnum",
+ "modelAsString": true
+ }
+ },
+ "windowsConfiguration": {
+ "type": "object",
+ "properties": {
+ "enableAutomaticUpdates": {
+ "type": "boolean",
+ "description": "Whether to EnableAutomaticUpdates on the machine"
+ },
+ "ssh": {
+ "type": "object",
+ "properties": {
+ "publicKeys": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "keyData": {
+ "type": "string",
+ "x-ms-secret": true,
+ "description": "KeyData - SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.
For creating ssh keys, see [Create SSH keys on Linux and Mac for Li nux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)."
+ },
+ "path": {
+ "type": "string",
+ "description": "Path - Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys"
+ }
+ }
+ },
+ "description": "PublicKeys - The list of SSH public keys used to authenticate with linux based VMs.",
+ "x-ms-identifiers": []
+ }
+ },
+ "description": "SSH Configuration"
+ },
+ "timeZone": {
+ "type": "string",
+ "description": "TimeZone for the virtual machine"
+ }
+ },
+ "description": "Windows Configuration for the virtual machine "
+ }
+ },
+ "description": "OsProfile - describes the configuration of the operating system and sets login data"
+ },
+ "resourceName": {
+ "type": "string",
+ "description": "name of the object to be used in moc"
+ },
+ "securityProfile": {
+ "type": "object",
+ "properties": {
+ "enableTPM": {
+ "type": "boolean"
+ }
+ },
+ "description": "SecurityProfile - Specifies the security settings for the virtual machine."
+ },
+ "storageProfile": {
+ "type": "object",
+ "properties": {
+ "dataDisks": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ }
+ },
+ "description": "adds data disks to the virtual machine",
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "imageReference": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name - Name of the image"
+ }
+ },
+ "description": "Which Image to use for the virtual machine"
+ }
+ },
+ "description": "StorageProfile - contains information about the disks and storage information for the virtual machine"
+ },
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "InProgress",
+ "Accepted",
+ "Deleting"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningStateEnum",
+ "modelAsString": true
+ }
+ },
+ "status": {
+ "$ref": "#/definitions/VirtualMachineStatus"
+ }
+ },
+ "description": "VirtualMachineSpec defines the desired state of VirtualMachine"
+ },
+ "VirtualMachineStatus": {
+ "type": "object",
+ "description": "VirtualMachineStatus defines the observed state of VirtualMachine",
+ "x-ms-client-flatten": true,
+ "readOnly": true,
+ "properties": {
+ "powerState": {
+ "type": "string",
+ "description": "PowerState of the VM",
+ "enum": [
+ "Deallocated",
+ "Deallocating",
+ "Running",
+ "Starting",
+ "Stopped",
+ "Stopping",
+ "Unknown"
+ ],
+ "x-ms-enum": {
+ "name": "PowerStateEnum",
+ "modelAsString": true
+ }
+ },
+ "errorCode": {
+ "type": "string",
+ "description": "VM provisioning error code"
+ },
+ "errorMessage": {
+ "type": "string",
+ "description": "Descriptive error message"
+ }
+ }
+ },
+ "virtualmachines": {
+ "type": "object",
+ "description": "The virtualmachines resource definition.",
+ "x-ms-client-flatten": true,
+ "x-ms-azure-resource": true,
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/virtualmachinesProperties"
+ },
+ "extendedLocation": {
+ "$ref": "./common.json#/definitions/ExtendedLocation",
+ "description": "The extendedLocation of the resource."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ]
+ },
+ "hardwareProfileUpdate": {
+ "type": "object",
+ "properties": {
+ "vmSize": {
+ "type": "string",
+ "enum": [
+ "Default",
+ "Standard_A2_v2",
+ "Standard_A4_v2",
+ "Standard_D2s_v3",
+ "Standard_D4s_v3",
+ "Standard_D8s_v3",
+ "Standard_D16s_v3",
+ "Standard_D32s_v3",
+ "Standard_DS2_v2",
+ "Standard_DS3_v2",
+ "Standard_DS4_v2",
+ "Standard_DS5_v2",
+ "Standard_DS13_v2",
+ "Standard_K8S_v1",
+ "Standard_K8S2_v1",
+ "Standard_K8S3_v1",
+ "Standard_K8S4_v1",
+ "Standard_NK6",
+ "Standard_NK12",
+ "Standard_NV6",
+ "Standard_NV12",
+ "Standard_K8S5_v1",
+ "Custom"
+ ],
+ "x-ms-enum": {
+ "name": "VmSizeEnum",
+ "modelAsString": true
+ }
+ },
+ "processors": {
+ "type": "integer",
+ "format": "int32",
+ "description": "number of processors for the virtual machine"
+ },
+ "memoryGB": {
+ "type": "integer",
+ "format": "int32",
+ "description": "RAM in gb for the virtual machine"
+ }
+ },
+ "description": "HardwareProfile - Specifies the hardware settings for the virtual machine."
+ },
+ "networkProfileUpdate": {
+ "type": "object",
+ "properties": {
+ "networkInterfaces": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the network interface"
+ }
+ }
+ },
+ "description": "NetworkInterfaces - list of network interfaces to be attached to the virtual machine"
+ }
+ },
+ "description": "NetworkProfile - describes the network update configuration the virtual machine"
+ },
+ "storageProfileUpdate": {
+ "type": "object",
+ "properties": {
+ "dataDisks": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ }
+ },
+ "description": "adds data disks to the virtual machine for the update call",
+ "x-ms-identifiers": [
+ "name"
+ ]
+ }
+ }
+ },
+ "virtualMachineUpdateProperties": {
+ "description": "Defines the resource properties for the update.",
+ "type": "object",
+ "properties": {
+ "hardwareProfile": {
+ "$ref": "#/definitions/hardwareProfileUpdate"
+ },
+ "storageProfile": {
+ "$ref": "#/definitions/storageProfileUpdate"
+ },
+ "networkProfile": {
+ "$ref": "#/definitions/networkProfileUpdate"
+ }
+ }
+ },
+ "virtualmachinesPatch": {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/virtualMachineUpdateProperties"
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "description": "The virtualmachines resource patch definition."
+ },
+ "virtualmachinesListResult": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/virtualmachines"
+ }
+ },
+ "nextLink": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "virtualmachinesNameParameter": {
+ "name": "virtualmachinesName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "maxLength": 64,
+ "minLength": 3
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json
new file mode 100644
index 000000000000..82abc2fe58ea
--- /dev/null
+++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json
@@ -0,0 +1,579 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "AzureStackHCI",
+ "description": "The Microsoft.AzureStackHCI Rest API spec.",
+ "version": "2021-07-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualnetworks/{virtualnetworksName}": {
+ "get": {
+ "operationId": "virtualnetworks_Retrieve",
+ "x-ms-examples": {
+ "GetVirtualNetwork": {
+ "$ref": "./examples/GetVirtualNetwork.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualnetworksNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Retrieves the virtualnetworks resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualnetworks"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "virtualnetworks_CreateOrUpdate",
+ "x-ms-examples": {
+ "PutVirtualNetwork": {
+ "$ref": "./examples/PutVirtualNetwork.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualnetworksNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "virtualnetworks",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/virtualnetworks"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the virtualnetworks resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualnetworks"
+ }
+ },
+ "201": {
+ "description": "Creates the virtualnetworks resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualnetworks"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "virtualnetworks_Delete",
+ "x-ms-examples": {
+ "DeleteVirtualNetwork": {
+ "$ref": "./examples/DeleteVirtualNetwork.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualnetworksNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Deletes the virtualnetworks resource."
+ },
+ "204": {
+ "description": "No content"
+ }
+ }
+ },
+ "patch": {
+ "operationId": "virtualnetworks_Update",
+ "x-ms-examples": {
+ "UpdateVirtualNetwork": {
+ "$ref": "./examples/UpdateVirtualNetwork.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/virtualnetworksNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "virtualnetworks",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/virtualnetworksPatch"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Updates the virtualnetworks resource.",
+ "schema": {
+ "$ref": "#/definitions/virtualnetworks"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualnetworks": {
+ "get": {
+ "operationId": "virtualnetworks_ListByResourceGroup",
+ "x-ms-examples": {
+ "ListVirtualNetworkByResourceGroup": {
+ "$ref": "./examples/ListVirtualNetworkByResourceGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all virtualnetworks under the resource group.",
+ "schema": {
+ "$ref": "#/definitions/virtualnetworksListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualnetworks": {
+ "get": {
+ "operationId": "virtualnetworks_ListBySubscription",
+ "x-ms-examples": {
+ "ListVirtualNetworkBySubscription": {
+ "$ref": "./examples/ListVirtualNetworkBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "Lists all virtualnetworks under the subscription.",
+ "schema": {
+ "$ref": "#/definitions/virtualnetworksListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "virtualnetworksProperties": {
+ "type": "object",
+ "x-ms-client-flatten": true,
+ "properties": {
+ "networkType": {
+ "type": "string",
+ "description": "Type of the network",
+ "enum": [
+ "NAT",
+ "Transparent",
+ "L2Bridge",
+ "L2Tunnel",
+ "ICS",
+ "Private",
+ "Overlay",
+ "Internal",
+ "Mirrored"
+ ],
+ "x-ms-enum": {
+ "name": "NetworkTypeEnum",
+ "modelAsString": true
+ }
+ },
+ "subnets": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name - The name of the resource that is unique within a resource group. This name can be used to access the resource."
+ },
+ "properties": {
+ "type": "object",
+ "x-ms-client-flatten": true,
+ "properties": {
+ "addressPrefix": {
+ "type": "string",
+ "description": "Cidr for this subnet - IPv4, IPv6"
+ },
+ "addressPrefixes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "AddressPrefixes - List of address prefixes for the subnet."
+ },
+ "ipAllocationMethod": {
+ "type": "string",
+ "description": "IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'",
+ "enum": [
+ "Dynamic",
+ "Static"
+ ],
+ "x-ms-enum": {
+ "name": "IpAllocationMethodEnum",
+ "modelAsString": true
+ }
+ },
+ "ipConfigurationReferences": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "ID": {
+ "type": "string",
+ "description": "Name of the Ip Configuration"
+ }
+ },
+ "description": "IPConfigurationReference - Describes a IPConfiguration under the virtual network"
+ },
+ "x-ms-identifiers": [],
+ "description": "IPConfigurationReferences - list of IPConfigurationReferences"
+ },
+ "routeTable": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "route ID - ID of the IP route"
+ },
+ "name": {
+ "type": "string",
+ "description": "Name - READ-ONLY; Resource name."
+ },
+ "properties": {
+ "type": "object",
+ "x-ms-client-flatten": true,
+ "properties": {
+ "routes": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name - name of the subnet"
+ },
+ "properties": {
+ "type": "object",
+ "x-ms-client-flatten": true,
+ "properties": {
+ "addressPrefix": {
+ "type": "string",
+ "description": "AddressPrefix - The destination CIDR to which the route applies."
+ },
+ "nextHopIpAddress": {
+ "type": "string",
+ "description": "NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance."
+ }
+ },
+ "description": "RoutePropertiesFormat - Properties of the route."
+ }
+ },
+ "description": "Route is associated with a subnet."
+ },
+ "description": "Routes - Collection of routes contained within a route table.",
+ "x-ms-identifiers": []
+ }
+ },
+ "description": "RouteTablePropertiesFormat route Table resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "Type - READ-ONLY; Resource type."
+ }
+ },
+ "description": "RouteTable for the subnet"
+ },
+ "ipPools": {
+ "type": "array",
+ "description": "network associated pool of IP Addresses",
+ "items": {
+ "$ref": "#/definitions/IPPool"
+ },
+ "x-ms-identifiers": []
+ },
+ "vlan": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Vlan to use for the subnet"
+ }
+ },
+ "description": "SubnetProperties - Properties of the subnet."
+ }
+ },
+ "description": "Subnet subnet in a virtual network resource."
+ },
+ "description": "Subnet - list of subnets under the virtual network",
+ "x-ms-identifiers": []
+ },
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "InProgress",
+ "Accepted",
+ "Deleting"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningStateEnum",
+ "modelAsString": true
+ }
+ },
+ "resourceName": {
+ "type": "string",
+ "description": "name of the object to be used in moc"
+ },
+ "status": {
+ "$ref": "#/definitions/VirtualNetworkStatus"
+ }
+ },
+ "description": "VirtualNetworkSpec defines the desired state of VirtualNetwork"
+ },
+ "VirtualNetworkStatus": {
+ "type": "object",
+ "description": "VirtualNetworkStatus defines the observed state of VirtualNetwork",
+ "x-ms-client-flatten": true,
+ "readOnly": true,
+ "properties": {
+ "errorCode": {
+ "type": "string",
+ "description": "VirtualNetwork provisioning error code"
+ },
+ "errorMessage": {
+ "type": "string",
+ "description": "Descriptive error message"
+ }
+ }
+ },
+ "IPPoolInfo": {
+ "type": "object",
+ "properties": {
+ "used": {
+ "type": "string",
+ "readOnly": true,
+ "description": "no. of ip addresses allocated from the ip pool"
+ },
+ "available": {
+ "type": "string",
+ "readOnly": true,
+ "description": "no. of ip addresses available in the ip pool"
+ }
+ }
+ },
+ "IPPool": {
+ "type": "object",
+ "properties": {
+ "ipPoolType": {
+ "type": "string",
+ "enum": [
+ "vm",
+ "vippool"
+ ],
+ "x-ms-enum": {
+ "name": "IPPoolTypeEnum",
+ "modelAsString": false
+ },
+ "description": "ip pool type"
+ },
+ "start": {
+ "type": "string",
+ "description": "First IP in the pool"
+ },
+ "end": {
+ "type": "string",
+ "description": "Last IP in the pool"
+ },
+ "info": {
+ "$ref": "#/definitions/IPPoolInfo"
+ }
+ }
+ },
+ "virtualnetworks": {
+ "type": "object",
+ "description": "The virtualnetworks resource definition.",
+ "x-ms-azure-resource": true,
+ "x-ms-client-flatten": true,
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/virtualnetworksProperties"
+ },
+ "extendedLocation": {
+ "$ref": "./common.json#/definitions/ExtendedLocation",
+ "description": "The extendedLocation of the resource."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ]
+ },
+ "virtualnetworksPatch": {
+ "type": "object",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "description": "The virtualnetworks resource patch definition."
+ },
+ "virtualnetworksListResult": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/virtualnetworks"
+ }
+ },
+ "nextLink": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "virtualnetworksNameParameter": {
+ "name": "virtualnetworksName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "maxLength": 64,
+ "minLength": 3
+ }
+ }
+}
diff --git a/specification/azurestackhci/resource-manager/readme.go.md b/specification/azurestackhci/resource-manager/readme.go.md
index ba68c2a89efe..3fc8191a5098 100644
--- a/specification/azurestackhci/resource-manager/readme.go.md
+++ b/specification/azurestackhci/resource-manager/readme.go.md
@@ -25,6 +25,17 @@ batch:
- tag: package-preview-2021-01
- tag: package-2020-10
- tag: package-2020-03-01-preview
+ - tag: package-preview-2021-07
+```
+
+### Tag: package-preview-2021-07 and go
+
+These settings apply only when `--tag=package-preview-2021-07 --go` is specified on the command line.
+Please also specify `--go-sdks-folder=`.
+
+```yaml $(tag) == 'package-preview-2021-07' && $(go)
+namespace: azurestackhci
+output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2021-07-01-preview/$(namespace)
```
### Tag: package-2022-05 and go
diff --git a/specification/azurestackhci/resource-manager/readme.md b/specification/azurestackhci/resource-manager/readme.md
index 30db78820609..1f5fc4666da8 100644
--- a/specification/azurestackhci/resource-manager/readme.md
+++ b/specification/azurestackhci/resource-manager/readme.md
@@ -48,6 +48,11 @@ directive:
- updateRuns.json
- updateSummaries.json
- updates.json
+ - galleryImages.json
+ - networkInterfaces.json
+ - virtualHardDisks.json
+ - virtualMachines.json
+ - virtualNetworks.json
reason: Microsoft.AzureStackHCI is the correct name for our RP.
```
@@ -105,6 +110,19 @@ input-file:
- Microsoft.AzureStackHCI/stable/2022-03-01/operations.json
```
+### Tag: package-preview-2021-07
+
+These settings apply only when `--tag=package-preview-2021-07` is specified on the command line.
+
+``` yaml $(tag) == 'package-preview-2021-07'
+input-file:
+ - Microsoft.AzureStackHCI/preview/2021-07-01-preview/galleryImages.json
+ - Microsoft.AzureStackHCI/preview/2021-07-01-preview/networkInterfaces.json
+ - Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualHardDisks.json
+ - Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualMachines.json
+ - Microsoft.AzureStackHCI/preview/2021-07-01-preview/virtualNetworks.json
+ - Microsoft.AzureStackHCI/preview/2021-07-01-preview/operations.json
+```
### Tag: package-2022-01
These settings apply only when `--tag=package-2022-01` is specified on the command line.