Skip to content

Commit

Permalink
model validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodore Chang committed Dec 19, 2022
1 parent ba34d1b commit d3810a7
Show file tree
Hide file tree
Showing 29 changed files with 92 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
"error": null
}
},
"202": {}
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/operations/{operationId}&monitor=true&api-version=2022-11-01"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@
},
"storageProfile": {
"imageReference": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk",
"communityGalleryImageId": "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName"
},
"osDisk": {
"name": "myVMosdisk",
"diskSizeGB": 30,
"managedDisk": {
"storageAccountType": "Standard_LRS"
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"caching": "ReadWrite",
"createOption": "FromImage",
Expand Down Expand Up @@ -116,13 +118,15 @@
},
"storageProfile": {
"imageReference": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk",
"communityGalleryImageId": "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName"
},
"osDisk": {
"name": "myVMosdisk",
"diskSizeGB": 30,
"managedDisk": {
"storageAccountType": "Standard_LRS"
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"caching": "ReadWrite",
"createOption": "FromImage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"name": "myVMosdisk",
"diskSizeGB": 30,
"managedDisk": {
"storageAccountType": "Standard_LRS"
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"caching": "ReadWrite",
"createOption": "FromImage",
Expand Down Expand Up @@ -122,7 +123,8 @@
"name": "myVMosdisk",
"diskSizeGB": 30,
"managedDisk": {
"storageAccountType": "Standard_LRS"
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"caching": "ReadWrite",
"createOption": "FromImage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@
},
"storageProfile": {
"imageReference": {
"sharedGalleryImageId": "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName"
"sharedGalleryImageId": "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"osDisk": {
"name": "myVMosdisk",
"diskSizeGB": 30,
"managedDisk": {
"storageAccountType": "Standard_LRS"
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"caching": "ReadWrite",
"createOption": "FromImage",
Expand Down Expand Up @@ -116,13 +118,15 @@
},
"storageProfile": {
"imageReference": {
"sharedGalleryImageId": "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName"
"sharedGalleryImageId": "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"osDisk": {
"name": "myVMosdisk",
"diskSizeGB": 30,
"managedDisk": {
"storageAccountType": "Standard_LRS"
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"caching": "ReadWrite",
"createOption": "FromImage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"name": "myVMosdisk",
"diskSizeGB": 30,
"managedDisk": {
"storageAccountType": "Standard_LRS"
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"caching": "ReadWrite",
"createOption": "FromImage",
Expand Down Expand Up @@ -101,7 +102,8 @@
"name": "myVMosdisk",
"diskSizeGB": 30,
"managedDisk": {
"storageAccountType": "Standard_LRS"
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk"
},
"caching": "ReadWrite",
"createOption": "FromImage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@
"caching": "ReadOnly",
"managedDisk": {
"storageAccountType": "StandardSSD_LRS",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk",
"securityProfile": {
"securityEncryptionType": "DiskWithVMGuestState",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myVMosDisk",
"diskEncryptionSet": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"vmName": "myVM",
"api-version": "2021-03-01",
"api-version": "2022-11-01",
"parameters": {
"location": "westus",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
},
"responses": {
"200": {},
"202": {},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/operations/{operationId}&monitor=true&api-version=2022-11-01"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
"error": null
}
},
"202": {}
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/operations/{operationId}&monitor=true&api-version=2022-11-01"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
},
"responses": {
"200": {},
"202": {}
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/operations/{operationId}&monitor=true&api-version=2022-11-01"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
},
"responses": {
"200": {},
"202": {}
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/operations/{operationId}&monitor=true&api-version=2022-11-01"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
},
"responses": {
"200": {},
"202": {}
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/operations/{operationId}&monitor=true&api-version=2022-11-01"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@
"message": "aaaaaaaaaaaaaaaaaaa",
"time": "2022-01-14T16:43:41.657Z"
}
],
"platformFaultDomain": 0
]
},
"suppressFailures": true,
"protectedSettingsFromKeyVault": {
Expand Down Expand Up @@ -885,8 +884,7 @@
"message": "aaaaaaaaaaaaaaaaaaa",
"time": "2022-01-14T16:43:41.657Z"
}
],
"platformFaultDomain": 5
]
},
"suppressFailures": true,
"protectedSettingsFromKeyVault": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
"body": {
"value": [
{
"location": "eastus"
"location": "eastus",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}"
},
{
"location": "eastus"
"location": "eastus",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
"body": {
"value": [
{
"location": "eastus"
"location": "eastus",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}"
},
{
"location": "eastus"
"location": "eastus",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"200": {
"body": {
"name": "aaaaaaaaaaaaaaa",
"location": "aaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"body": [
{
"name": "aaaaaaaaaaaaaaa",
"location": "aaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"body": [
{
"name": "aaaaaaaaaaaaaaa",
"location": "aaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"200": {
"body": {
"name": "aaaaaaaaa",
"location": "aaaaa"
"location": "aaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"body": [
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"body": [
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"body": [
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"body": [
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"200": {
"body": {
"name": "aaaaaaaaa",
"location": "aaaaa"
"location": "aaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"body": [
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"body": [
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"body": [
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"body": [
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa"
"location": "aaaaaaaaaaaaaaaaaa",
"id": "aaaaaaaaaaaaaaaaa"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"diskSizeGB": 30
},
"imageReference": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myVMosdisk",
"publisher": "azuredatabricks",
"offer": "databricks",
"sku": "databricksworker",
Expand Down Expand Up @@ -117,6 +118,7 @@
"diskSizeGB": 30
},
"imageReference": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myVMosdisk",
"publisher": "azuredatabricks",
"offer": "databricks",
"sku": "databricksworker",
Expand Down

0 comments on commit d3810a7

Please sign in to comment.