Tian Ouyang
Tian Ouyang
Checked on PowerShell and we don't have this problem.
@vivsriaus what I did is get any well-formed template, and make some changes to make it broken (like removing single quotes on a variable name). Try deployment with the template...
@blumu you can get the fix with version>=1.1.5-preview. With the fix, you don't need to parse the Template and Parameters to JObject now. You can just pass in them as...
@blumu Yes, Microsoft.Azure.Management.ResourceManager is the right one. As for the error, it looks like your template/parameters file doesn't have the right format. Check this repo for examples: https://github.com/Azure/azure-quickstart-templates.
@jaredmoo All resources in ARM template are considered as a PUT on the resource.
This issue no longer repros. I tried: new-azurermresourcegroupdeployment -ResourceGroupName "tiano309" -TemplateFile "t1.json" -TemplateParameterObject @{storageAccountName="verylongname111111111111111111"}, and we could get the error message.
Had a conversation with Laveesh, this requires server side change. I'll look into that.
@hovsepm I checked the other cmdlets on how to handle similar cases, and the practice seems to be throwing exception. Get-Process -Id 1234, throws ObjectNotFound exception. Get-AzureRmSubscription -Id "non-existing-Id", throws...
This issue is actually about relative path. When we input a relative path (which contains spaces or not), it fails when resolving the path. Fix is checked in.
You need to escape the "$" in the query parameter. Like this: -ODataQuery "`$filter=tagName eq 'DBCheckService'". I'll add a Tag parameter for Find-AzureRmResource.