{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3225","repository_url":"https://api.github.com/repos/Azure/azure-xplat-cli","labels_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3225/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3225/comments","events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3225/events","html_url":"https://github.com/Azure/azure-xplat-cli/issues/3225","id":180967361,"number":3225,"title":"Default value being ignored when deploying with parameter file.","user":{"login":"Nepomuceno","id":106517,"avatar_url":"https://avatars.githubusercontent.com/u/106517?v=3","gravatar_id":"","url":"https://api.github.com/users/Nepomuceno","html_url":"https://github.com/Nepomuceno","followers_url":"https://api.github.com/users/Nepomuceno/followers","following_url":"https://api.github.com/users/Nepomuceno/following{/other_user}","gists_url":"https://api.github.com/users/Nepomuceno/gists{/gist_id}","starred_url":"https://api.github.com/users/Nepomuceno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nepomuceno/subscriptions","organizations_url":"https://api.github.com/users/Nepomuceno/orgs","repos_url":"https://api.github.com/users/Nepomuceno/repos","events_url":"https://api.github.com/users/Nepomuceno/events{/privacy}","received_events_url":"https://api.github.com/users/Nepomuceno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/labels/ARM","name":"ARM","color":"006b75"},{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/labels/ResourceManager","name":"ResourceManager","color":"DDDDDD"}],"state":"open","locked":false,"assignee":{"login":"andrew-mestas","id":13518255,"avatar_url":"https://avatars.githubusercontent.com/u/13518255?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew-mestas","html_url":"https://github.com/andrew-mestas","followers_url":"https://api.github.com/users/andrew-mestas/followers","following_url":"https://api.github.com/users/andrew-mestas/following{/other_user}","gists_url":"https://api.github.com/users/andrew-mestas/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-mestas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-mestas/subscriptions","organizations_url":"https://api.github.com/users/andrew-mestas/orgs","repos_url":"https://api.github.com/users/andrew-mestas/repos","events_url":"https://api.github.com/users/andrew-mestas/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-mestas/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrew-mestas","id":13518255,"avatar_url":"https://avatars.githubusercontent.com/u/13518255?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew-mestas","html_url":"https://github.com/andrew-mestas","followers_url":"https://api.github.com/users/andrew-mestas/followers","following_url":"https://api.github.com/users/andrew-mestas/following{/other_user}","gists_url":"https://api.github.com/users/andrew-mestas/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-mestas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-mestas/subscriptions","organizations_url":"https://api.github.com/users/andrew-mestas/orgs","repos_url":"https://api.github.com/users/andrew-mestas/repos","events_url":"https://api.github.com/users/andrew-mestas/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-mestas/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-10-04T18:21:03Z","updated_at":"2016-10-25T19:22:44Z","closed_at":null,"body":"CLI Version: **0.10.5**\r\nOS Type: Mac\r\nInstallation via:  npm \r\n\r\nMode: **ARM**\r\n\r\nEnvironment: **AzureCloud/Azure China Cloud/US Government/Blackforest/Azure Stack**\r\n\r\nDescription:\r\n`azure group deployment create -f <file-name> -e <deployment-name>` . Will fail when you have default values on the parameter files but does not have this values on the parameter file. Meaning that with this version having default parameters become pointless. I would flag this with high priority since it breaks all the deployments that have defaultParameters and are using this version. \r\n\r\nSteps to reproduce:\r\n1) Remove the `workerSize` parameter from the `arm-deployment-parametersv2.json`\r\n2) Then run the tests they will fail saying that workerSize it is not defined when it actually have a default value.\r\n\r\nError stack trace:\r\ninfo:    Executing command group template validate\r\nerror:    Template and Deployment \"parameters\" objects lengths do not match \r\n\tDeployment Parameter file does not have { workerSize } defined.\r\n\r\nTo check this a change would be needed on the line  https://github.com/Azure/azure-xplat-cli/blob/dev/lib/commands/arm/group/groupUtils._js#L458 to check not the langht but iterate trough the parameters and check if any parameter that has no default don't have the value being supplied trough the user trough a parameter file or tough a parameter passed on the command line."},"comment":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/comments/256148845","html_url":"https://github.com/Azure/azure-xplat-cli/issues/3225#issuecomment-256148845","issue_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3225","id":256148845,"user":{"login":"PatrickLang","id":11345431,"avatar_url":"https://avatars.githubusercontent.com/u/11345431?v=3","gravatar_id":"","url":"https://api.github.com/users/PatrickLang","html_url":"https://github.com/PatrickLang","followers_url":"https://api.github.com/users/PatrickLang/followers","following_url":"https://api.github.com/users/PatrickLang/following{/other_user}","gists_url":"https://api.github.com/users/PatrickLang/gists{/gist_id}","starred_url":"https://api.github.com/users/PatrickLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatrickLang/subscriptions","organizations_url":"https://api.github.com/users/PatrickLang/orgs","repos_url":"https://api.github.com/users/PatrickLang/repos","events_url":"https://api.github.com/users/PatrickLang/events{/privacy}","received_events_url":"https://api.github.com/users/PatrickLang/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T19:22:44Z","updated_at":"2016-10-25T19:22:44Z","body":"Affects Windows too"}}
{"actor":{"display_login":"PatrickLang"}}