

You export a template and when you try to run it, it gives you "something is bad". "Request_Source": ""Įverywhere it says Name-Test has been changed from Name Then I adapted the JSON templet but left the "name" in the resouces: First I changed it in the JSON Parameter file: So, please let name be used, perhaps with a -pleaseUseTheNameInTheParameterFileEvenThoughThisCmdletHasItsOwnNameParameterBecauseImNotConfused thought my message made it pretty clear that I understand that "name" needs to be renamed, the questions is where? I don't know what a ARM template is. I don't want to have to tell clients that the easy tool has a bunch of manual editing steps to fix the problems it creates. There is no -force to accept it, unfortunately.Įditing files produced by MS to be consumed by the MS script provided in the same archive is not desirable. If you try to use PS to suck in the parameter file with convertfrom-json so that you remove the param, the command fails because the schema does not mark 'name' as valid. If you try to export a resource by filling in the values in the gui and clicking on Automation Options, it just uses the 'name' fieldname for the parameter, thereby rendering the automation broken. If you export a template/parameter set from a created resource, the 'name' fieldname is extended to match the resource in the template and the corresponding parameters file.

I'm suffering from this when I export templates from Azure. Hopefully the resolution to this issue involves allowing passing a parameter named name through the -TemplateParameterObject

+ CategoryInfo : CloseError: (:), InvalidOperationException New-AzureRmResourceGroupDeployment : The deployment validation failed. + FullyQualifiedErrorId : .NewAzureResourceGroupDeploymentCommand + CategoryInfo : NotSpecified: (:), Exception + New-AzureRmResourceGroupDeployment -ResourceGroupName test-group -Tem. The only supported parameters for this template are 'name'. Not valid they are not present in the original template and can therefore not be provided atĭeployment time. Template validation failed: 'The template parameters 'nameFromTemplate' in the parameters file are New-AzureRmResourceGroupDeployment : 4:23:48 PM - Error: Code=InvalidTemplate Message=Deployment WARNING: The output object type of this cmdlet will be modified in a future release.
