{"action":"opened","issue":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/5697","repository_url":"https://api.github.com/repos/Azure/azure-cli","labels_url":"https://api.github.com/repos/Azure/azure-cli/issues/5697/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/5697/comments","events_url":"https://api.github.com/repos/Azure/azure-cli/issues/5697/events","html_url":"https://github.com/Azure/azure-cli/issues/5697","id":301157507,"number":5697,"title":"[Compute] VMSS Create Fails","user":{"login":"tjprescott","id":5723682,"avatar_url":"https://avatars2.githubusercontent.com/u/5723682?v=4","gravatar_id":"","url":"https://api.github.com/users/tjprescott","html_url":"https://github.com/tjprescott","followers_url":"https://api.github.com/users/tjprescott/followers","following_url":"https://api.github.com/users/tjprescott/following{/other_user}","gists_url":"https://api.github.com/users/tjprescott/gists{/gist_id}","starred_url":"https://api.github.com/users/tjprescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjprescott/subscriptions","organizations_url":"https://api.github.com/users/tjprescott/orgs","repos_url":"https://api.github.com/users/tjprescott/repos","events_url":"https://api.github.com/users/tjprescott/events{/privacy}","received_events_url":"https://api.github.com/users/tjprescott/received_events","type":"User","site_admin":false},"labels":[{"id":418936879,"url":"https://api.github.com/repos/Azure/azure-cli/labels/Compute","name":"Compute","color":"d4c5f9","default":false},{"id":418935058,"url":"https://api.github.com/repos/Azure/azure-cli/labels/P1","name":"P1","color":"b60205","default":false},{"id":321247994,"url":"https://api.github.com/repos/Azure/azure-cli/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-28T19:45:40Z","updated_at":"2018-02-28T19:45:40Z","closed_at":null,"author_association":"MEMBER","body":"Running a basic `vmss create` results in the following failure:\r\n```\r\nDeployment failed. Correlation ID: cd687065-7e50-4720-b109-2f934fc8405e. {\r\n  \"error\": {\r\n    \"code\": \"InvalidParameter\",\r\n    \"target\": \"priority\",\r\n    \"message\": \"The value of parameter priority is invalid.\"\r\n  }\r\n}\r\n```\r\n\r\nThis abruptly started failing this morning but the same command worked yesterday.\r\n\r\nLooking at the `--validate --verbose` output, there is a \"priority\" parameter in the ARM template.\r\n\r\n```\r\n{\r\n  \"$schema\": \"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#\",\r\n  \"contentVersion\": \"1.0.0.0\",\r\n  \"parameters\": {},\r\n  \"variables\": {},\r\n  \"resources\": [\r\n    {\r\n      \"apiVersion\": \"2017-11-01\",\r\n      \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n      \"name\": \"vmss1LBPublicIP\",\r\n      \"location\": \"westus\",\r\n      \"tags\": {},\r\n      \"dependsOn\": [],\r\n      \"properties\": {\r\n        \"publicIPAllocationMethod\": \"Dynamic\"\r\n      },\r\n      \"sku\": {\r\n        \"name\": \"Basic\"\r\n      }\r\n    },\r\n    {\r\n      \"type\": \"Microsoft.Network/loadBalancers\",\r\n      \"name\": \"vmss1LB\",\r\n      \"location\": \"westus\",\r\n      \"tags\": {},\r\n      \"apiVersion\": \"2017-11-01\",\r\n      \"dependsOn\": [\r\n        \"Microsoft.Network/publicIpAddresses/vmss1LBPublicIP\"\r\n      ],\r\n      \"properties\": {\r\n        \"backendAddressPools\": [\r\n          {\r\n            \"name\": \"vmss1LBBEPool\"\r\n          }\r\n        ],\r\n        \"inboundNatPools\": [\r\n          {\r\n            \"name\": \"vmss1LBNatPool\",\r\n            \"properties\": {\r\n              \"frontendIPConfiguration\": {\r\n                \"id\": \"[concat(resourceId('Microsoft.Network/loadBalancers', 'vmss1LB'), '/frontendIPConfigurations/', 'loadBalancerFrontEnd')]\"\r\n              },\r\n              \"protocol\": \"tcp\",\r\n              \"frontendPortRangeStart\": \"50000\",\r\n              \"frontendPortRangeEnd\": \"50119\",\r\n              \"backendPort\": 22\r\n            }\r\n          }\r\n        ],\r\n        \"frontendIPConfigurations\": [\r\n          {\r\n            \"name\": \"loadBalancerFrontEnd\",\r\n            \"properties\": {\r\n              \"publicIPAddress\": {\r\n                \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/resourceGroups/tjp-as/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP\"\r\n              }\r\n            }\r\n          }\r\n        ]\r\n      },\r\n      \"sku\": {\r\n        \"name\": \"Basic\"\r\n      }\r\n    },\r\n    {\r\n      \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n      \"name\": \"vmss1\",\r\n      \"location\": \"westus\",\r\n      \"tags\": {},\r\n      \"apiVersion\": \"2017-12-01\",\r\n      \"dependsOn\": [\r\n        \"Microsoft.Network/loadBalancers/vmss1LB\"\r\n      ],\r\n      \"sku\": {\r\n        \"name\": \"Standard_D1_v2\",\r\n        \"capacity\": 2\r\n      },\r\n      \"properties\": {\r\n        \"overprovision\": true,\r\n        \"upgradePolicy\": {\r\n          \"mode\": \"manual\"\r\n        },\r\n        \"virtualMachineProfile\": {\r\n          \"storageProfile\": {\r\n            \"osDisk\": {\r\n              \"createOption\": \"FromImage\",\r\n              \"caching\": \"ReadWrite\",\r\n              \"managedDisk\": {\r\n                \"storageAccountType\": null\r\n              }\r\n            },\r\n            \"imageReference\": {\r\n              \"publisher\": \"Canonical\",\r\n              \"offer\": \"UbuntuServer\",\r\n              \"sku\": \"16.04-LTS\",\r\n              \"version\": \"latest\"\r\n            }\r\n          },\r\n          \"osProfile\": {\r\n            \"computerNamePrefix\": \"vmss13f18\",\r\n            \"adminUsername\": \"trpresco\",\r\n            \"linuxConfiguration\": {\r\n              \"disablePasswordAuthentication\": true,\r\n              \"ssh\": {\r\n                \"publicKeys\": [\r\n                  {\r\n                    \"path\": \"/home/trpresco/.ssh/authorized_keys\",\r\n                    \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLkUy/BFb7o47gQqFcMiioYD4w3Tu/7bpy7t/3pQVhjmsEEaWk09dA1Ju1UbukKaLpOprch/r9bgUWu1oTEP7E5evwaJl0TvLX0gsxGGItfPc58bbQ77uxuXhMfYEZ6oiS+Ybt5nUjjDUUNhSIrKSLhCHCmQ9JnOd/AObf9G4iR38bsABIAVxmbYT6OQKm4oRwNs1c99B5TsfnREFs7yawCV3hjKVHsD3bRo83bBbBG3d/CHYfcnEbpK4weagw899YodAXDiUh0qYfOy0mGz4zWaQ4rcCitk9od/WSDhLAOy74cqwzKJwoR9DcALxkWVMuJW7xBF9tWEroVvFrh6/N\"\r\n                  }\r\n                ]\r\n              }\r\n            }\r\n          },\r\n          \"networkProfile\": {\r\n            \"networkInterfaceConfigurations\": [\r\n              {\r\n                \"name\": \"vmss13f18Nic\",\r\n                \"properties\": {\r\n                  \"primary\": \"true\",\r\n                  \"ipConfigurations\": [\r\n                    {\r\n                      \"name\": \"vmss13f18IPConfig\",\r\n                      \"properties\": {\r\n                        \"subnet\": {\r\n                          \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/resourceGroups/tjp-as/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet\"\r\n                        },\r\n                        \"loadBalancerBackendAddressPools\": [\r\n                          {\r\n                            \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/resourceGroups/tjp-as/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool\"\r\n                          }\r\n                        ],\r\n                        \"loadBalancerInboundNatPools\": [\r\n                          {\r\n                            \"id\": \"/subscriptions/6b085460-5f21-477e-ba44-1035046e9101/resourceGroups/tjp-as/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool\"\r\n                          }\r\n                        ]\r\n                      }\r\n                    }\r\n                  ]\r\n                }\r\n              }\r\n            ]\r\n          },\r\n          \"priority\": \"Regular\"\r\n        },\r\n        \"singlePlacementGroup\": true\r\n      }\r\n    }\r\n  ],\r\n  \"outputs\": {\r\n    \"VMSS\": {\r\n      \"type\": \"object\",\r\n      \"value\": \"[reference(resourceId('Microsoft.Compute/virtualMachineScaleSets', 'vmss1'),providers('Microsoft.Compute', 'virtualMachineScaleSets').apiVersions[0])]\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThe value is \"Regular\". \r\n\r\n\r\n---\r\n\r\n### Environment summary\r\n\r\nInstall Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (`az --version`) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)  \r\n\r\n```\r\nazure-cli (2.0.27)\r\n\r\nacr (2.0.21)\r\nacs (2.0.26)\r\nadvisor (0.1.2)\r\nappservice (0.1.26)\r\nbackup (1.0.6)\r\nbatch (3.1.10)\r\nbatchai (0.1.5)\r\nbilling (0.1.7)\r\ncdn (0.0.13)\r\ncloud (2.0.12)\r\ncognitiveservices (0.1.10)\r\nconfigure (2.0.14)\r\nconsumption (0.2.1)\r\ncontainer (0.1.18)\r\ncore (2.0.27)\r\ncosmosdb (0.1.19)\r\ndev-tools (0.1.1)\r\ndla (0.0.18)\r\ndls (0.0.19)\r\neventgrid (0.1.10)\r\nextension (0.0.9)\r\nfeedback (2.1.0)\r\nfind (0.2.8)\r\ninteractive (0.3.16)\r\niot (0.1.17)\r\nkeyvault (2.0.18)\r\nlab (0.0.17)\r\nmonitor (0.1.2)\r\nnetwork (2.0.23)\r\nnspkg (3.0.1)\r\nprofile (2.0.19)\r\nrdbms (0.0.12)\r\nredis (0.2.11)\r\nreservations (0.1.1)\r\nresource (2.0.23)\r\nrole (2.0.19)\r\nservicefabric (0.0.10)\r\nsql (2.0.21)\r\nstorage (2.0.25)\r\ntestsdk (0.1.0)\r\nvm (2.0.26)\r\n\r\nExtensions:\r\nsubscription (0.1.0)\r\n\r\nPython location 'C:\\Users\\trpresco\\Documents\\github\\azure-cli\\env\\Scripts\\python.exe'\r\nExtensions directory 'C:\\Users\\trpresco\\.azure\\cliextensions'\r\n\r\nPython (Windows) 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)]\r\n```\r\n"}}
{"actor":{"display_login":"tjprescott"}}