diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2016-03-30/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2016-03-30/compute.json index 458748090195..a78097f8bce6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2016-03-30/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2016-03-30/compute.json @@ -173,6 +173,13 @@ }, { "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply to the operation." } ], "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/compute.json index e6aa026cd672..8396348d4785 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/compute.json @@ -177,6 +177,13 @@ }, { "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply to the operation." } ], "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage.json index 2eb8a7fa2932..367a48b1a691 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage.json @@ -57,6 +57,75 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "d6e9ab29-f8c9-4792-978c-ae2c07b98f17", + "virtualMachineProfile": { + "storageProfile": { + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "image": { + "uri": "https://{existing-storage-account-name}.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/{existing-generalized-os-image-blob-name}.vhd" + }, + "createOption": "FromImage", + "name": "osDisk" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json index 053c6d05f092..8174719fc864 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json @@ -39,8 +39,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAPlatformImageScaleSetWithUnmanagedOsDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAPlatformImageScaleSetWithUnmanagedOsDisks.json index 61b31b36a345..19228ae2bd7b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAPlatformImageScaleSetWithUnmanagedOsDisks.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAPlatformImageScaleSetWithUnmanagedOsDisks.json @@ -67,6 +67,80 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "77b7df9a-32fe-45e3-8911-60ac9c9b9c64", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "vhdContainers": [ + "http://{existing-storage-account-name}.blob.core.windows.net/vhds" + ], + "name": "osDisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json index 5c0dbdd7291b..91ec6e0193d9 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json @@ -59,8 +59,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetFromACustomImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetFromACustomImage.json index 8f321d125fba..e4151f47968d 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetFromACustomImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetFromACustomImage.json @@ -59,6 +59,75 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "afa2afa8-9e49-48fb-9d18-c86323b5d064", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/nsgcustom" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "linuxConfiguration": { + "disablePasswordAuthentication": false + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAMarketplaceImagePlan.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAMarketplaceImagePlan.json index 824527c74cef..bf7bcddb3843 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAMarketplaceImagePlan.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAMarketplaceImagePlan.json @@ -67,6 +67,84 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachineScaleSets", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "b9e23088-6ffc-46e0-9e02-b0a6eeef47db", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAnAzureApplicationGateway.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAnAzureApplicationGateway.json index 9d2089201e4d..621990a6e488 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAnAzureApplicationGateway.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAnAzureApplicationGateway.json @@ -67,6 +67,84 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "a0134477-b9d9-484b-b0e3-205c1c089ffa", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "applicationGatewayBackendAddressPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/nsgExistingAppGw/backendAddressPools/appGatewayBackendPool" + } + ], + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAnAzureLoadBalancer.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAnAzureLoadBalancer.json index c3b831146c0f..2266799f00cd 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAnAzureLoadBalancer.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithAnAzureLoadBalancer.json @@ -72,6 +72,89 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "ec0b21ca-51ec-414b-9323-f236ffc21479", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "loadBalancerInboundNatPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/myLb/inboundNatPools/lbNatPool" + } + ], + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/myLb/backendAddressPools/lbBackendPool" + } + ], + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithBootDiagnostics.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithBootDiagnostics.json index 8981af240044..5d0e3f27fa68 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithBootDiagnostics.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithBootDiagnostics.json @@ -68,6 +68,85 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "storageUri": "http://nsgdiagnostic.blob.core.windows.net", + "enabled": true + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithEmptyDataDisksOnEachVm.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithEmptyDataDisksOnEachVm.json index 7195a3f27106..9792e9102ba0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithEmptyDataDisksOnEachVm.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithEmptyDataDisksOnEachVm.json @@ -74,6 +74,99 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D2_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "8042c376-4690-4c47-9fa2-fbdad70e32fa", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + }, + "dataDisks": [ + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 0, + "diskSizeGB": 1023 + }, + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 1, + "diskSizeGB": 1023 + } + ] + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithPasswordAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithPasswordAuthentication.json index 07d08d005f26..3751150b5277 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithPasswordAuthentication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithPasswordAuthentication.json @@ -62,6 +62,79 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "ffb27c5c-39a5-4d4e-b307-b32598689813", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithPremiumStorage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithPremiumStorage.json index 31154933a966..df4f9520a114 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithPremiumStorage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithPremiumStorage.json @@ -62,6 +62,79 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_DS1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "19fd38a2-f50a-42c6-9dc7-3f9cf3791225", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Premium_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithSshAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithSshAuthentication.json index 9e14df45aead..95c2c83b6820 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithSshAuthentication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAScaleSetWithSshAuthentication.json @@ -72,6 +72,86 @@ } }, "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "fb73af19-0090-467c-9ced-b00bceab1c45", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "16.04-LTS", + "publisher": "Canonical", + "version": "latest", + "offer": "UbuntuServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, "201": { "body": { "sku": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmFromACustomImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmFromACustomImage.json index 3b702b136ec3..c4aa78e5164f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmFromACustomImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmFromACustomImage.json @@ -38,8 +38,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmInAnAvailabilitySet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmInAnAvailabilitySet.json index aec64b17b53d..f102d1a55644 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmInAnAvailabilitySet.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmInAnAvailabilitySet.json @@ -44,8 +44,7 @@ "availabilitySet": { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}" } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithAMarketplaceImagePlan.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithAMarketplaceImagePlan.json index 5aa553945a7d..a5413229216a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithAMarketplaceImagePlan.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithAMarketplaceImagePlan.json @@ -11,7 +11,6 @@ "product": "windows-data-science-vm", "name": "windows2016" }, - "name": "myVM", "properties": { "hardwareProfile": { "vmSize": "Standard_D1_v2" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithBootDiagnostics.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithBootDiagnostics.json index 17a71c772c67..e39aea890b07 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithBootDiagnostics.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithBootDiagnostics.json @@ -47,8 +47,7 @@ "enabled": true } } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithEmptyDataDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithEmptyDataDisks.json index f2ab3afe5612..564668d9d4a8 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithEmptyDataDisks.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithEmptyDataDisks.json @@ -53,8 +53,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithPasswordAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithPasswordAuthentication.json index 9e65a5f9d355..776ea58dd59e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithPasswordAuthentication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithPasswordAuthentication.json @@ -41,8 +41,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithPremiumStorage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithPremiumStorage.json index f68bbe09816c..ee13fc8eb1fd 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithPremiumStorage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithPremiumStorage.json @@ -41,8 +41,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithSshAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithSshAuthentication.json index e5182120f538..f7bf39407cf7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithSshAuthentication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAVmWithSshAuthentication.json @@ -51,8 +51,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromABlob.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromABlob.json index ad84382fe7e9..6efac9d4ecca 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromABlob.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromABlob.json @@ -18,6 +18,26 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "osState": "Generalized", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, "201": { "body": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromAManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromAManagedDisk.json index 5b13273b57f3..b1d46b4d5d05 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromAManagedDisk.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromAManagedDisk.json @@ -20,6 +20,28 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "managedDisk": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, "201": { "body": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromASnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromASnapshot.json index 8b54f231479b..abc20742b869 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromASnapshot.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromASnapshot.json @@ -20,6 +20,28 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "snapshot": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, "201": { "body": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromAVM.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromAVM.json index ac54e1bd98fd..9f301cafdd3e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromAVM.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageFromAVM.json @@ -14,6 +14,31 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "sourceVirtualMachine": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + }, + "storageProfile": { + "osDisk": { + "osType": "Linux", + "osState": "Generalized", + "managedDisk": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myVM_OsDisk_1_6dc293b7d811433196903acf92665022" + }, + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, "201": { "body": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromABlob.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromABlob.json index f4f14a84581f..7a0c79b74a5b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromABlob.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromABlob.json @@ -24,6 +24,31 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "osState": "Generalized", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "lun": 1, + "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd" + } + ] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, "201": { "body": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromAManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromAManagedDisk.json index a6e5ca71e8c6..b205c5ddc7ae 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromAManagedDisk.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromAManagedDisk.json @@ -28,6 +28,35 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "managedDisk": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "lun": 1, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" + } + } + ] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, "201": { "body": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromASnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromASnapshot.json index 12023acf3634..bcbf48e85eb9 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromASnapshot.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/CreateAnImageThatIncludesADataDiskFromASnapshot.json @@ -28,6 +28,35 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "snapshot": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "lun": 1, + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" + } + } + ] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, "201": { "body": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/compute.json index 359a36fa1d17..be0f95849a48 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/compute.json @@ -248,6 +248,13 @@ }, { "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply to the operation." } ], "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json index 7fc99c5727ae..e3e994321c68 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json @@ -39,8 +39,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json index becc019a8fef..8cb6a7fa3e4f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json @@ -59,8 +59,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmFromACustomImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmFromACustomImage.json index 0aec04501d1e..c6fdb7cdd87a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmFromACustomImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmFromACustomImage.json @@ -38,8 +38,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmInAnAvailabilitySet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmInAnAvailabilitySet.json index fd66711a71c1..44a8f007f6a6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmInAnAvailabilitySet.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmInAnAvailabilitySet.json @@ -44,8 +44,7 @@ "availabilitySet": { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}" } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithAMarketplaceImagePlan.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithAMarketplaceImagePlan.json index 41bf7f06d16e..e033867da391 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithAMarketplaceImagePlan.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithAMarketplaceImagePlan.json @@ -11,7 +11,6 @@ "product": "windows-data-science-vm", "name": "windows2016" }, - "name": "myVM", "properties": { "hardwareProfile": { "vmSize": "Standard_D1_v2" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithBootDiagnostics.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithBootDiagnostics.json index c7dec4a7325e..4f954f8d4ee7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithBootDiagnostics.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithBootDiagnostics.json @@ -47,8 +47,7 @@ "enabled": true } } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithEmptyDataDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithEmptyDataDisks.json index 3e82199880af..07af453e864a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithEmptyDataDisks.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithEmptyDataDisks.json @@ -53,8 +53,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithPasswordAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithPasswordAuthentication.json index a1bae28f04ed..7323c79e5ff5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithPasswordAuthentication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithPasswordAuthentication.json @@ -41,8 +41,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithPremiumStorage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithPremiumStorage.json index 38bca9ecbe98..10cf54c72a63 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithPremiumStorage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithPremiumStorage.json @@ -41,8 +41,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithSshAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithSshAuthentication.json index 6a9b0daee851..0a97ac31b881 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithSshAuthentication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/CreateAVmWithSshAuthentication.json @@ -51,8 +51,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/compute.json index b0ad1015e966..5a910b5a41b1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/compute.json @@ -245,6 +245,13 @@ }, { "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply to the operation." } ], "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json index 4f9f1876d67d..d5d11961736b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json @@ -39,8 +39,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json index 654744f21548..260617dc716b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json @@ -59,8 +59,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmFromACustomImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmFromACustomImage.json index ccf9a7684aaf..fc52c775ee56 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmFromACustomImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmFromACustomImage.json @@ -38,8 +38,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmInAnAvailabilitySet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmInAnAvailabilitySet.json index d2d761f236cb..9386c0cc0c27 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmInAnAvailabilitySet.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmInAnAvailabilitySet.json @@ -44,8 +44,7 @@ "availabilitySet": { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}" } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithAMarketplaceImagePlan.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithAMarketplaceImagePlan.json index 01910919eb91..728a62b1428b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithAMarketplaceImagePlan.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithAMarketplaceImagePlan.json @@ -11,7 +11,6 @@ "product": "windows-data-science-vm", "name": "windows2016" }, - "name": "myVM", "properties": { "hardwareProfile": { "vmSize": "Standard_D1_v2" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithBootDiagnostics.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithBootDiagnostics.json index 425252a2588a..8e8718e785c5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithBootDiagnostics.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithBootDiagnostics.json @@ -47,8 +47,7 @@ "enabled": true } } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithEmptyDataDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithEmptyDataDisks.json index 1caa47caf5e3..1a0b06757c56 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithEmptyDataDisks.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithEmptyDataDisks.json @@ -53,8 +53,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithPasswordAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithPasswordAuthentication.json index 96e5b052e5ee..ac1aaebee3e4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithPasswordAuthentication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithPasswordAuthentication.json @@ -41,8 +41,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithPremiumStorage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithPremiumStorage.json index c8ecc10c67c1..5263dbb48f26 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithPremiumStorage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithPremiumStorage.json @@ -41,8 +41,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithSshAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithSshAuthentication.json index a3505e3ce8af..d0a0238225b4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithSshAuthentication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/CreateAVmWithSshAuthentication.json @@ -51,8 +51,7 @@ } ] } - }, - "name": "myVM" + } } }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsRequestRateByInterval.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsRequestRateByInterval.json index 7c1ede1e077b..f2fba97887ee 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsRequestRateByInterval.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsRequestRateByInterval.json @@ -14,13 +14,9 @@ "responses": { "200": { "body": { - "startTime": "2018-01-30T17:54:14.8806951-08:00", - "endTime": "2018-01-30T17:54:17.5832413-08:00", - "status": "Succeeded", "properties": { "output": "https://crptestar4227.blob.core.windows.net:443/sascontainer/RequestRateByInterval_20180121-0154_20180123-0154.csv" - }, - "name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df" + } } }, "202": {} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsThrottledRequests.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsThrottledRequests.json index 5dfa9a403195..af6be605ebc8 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsThrottledRequests.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsThrottledRequests.json @@ -14,13 +14,9 @@ "responses": { "200": { "body": { - "startTime": "2018-01-30T17:54:14.8806951-08:00", - "endTime": "2018-01-30T17:54:17.5832413-08:00", - "status": "Succeeded", "properties": { "output": "https://crptestar4227.blob.core.windows.net:443/sascontainer/ThrottledRequests_20180121-0154_20180123-0154.csv" - }, - "name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df" + } } }, "202": {} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json index 9d872a0199b0..5ebf7ac468e7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json @@ -245,6 +245,13 @@ }, { "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply to the operation." } ], "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json index 82faabebd76c..47de71527c0c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json @@ -245,6 +245,13 @@ }, { "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply to the operation." } ], "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json index 7863ebcd7c8c..e1fa0878ba79 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json @@ -245,6 +245,13 @@ }, { "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply to the operation." } ], "responses": {