[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-AzureRmResourceGroupDeployment: Unable to combine parameterURI file and inline parameters #2414

Open
thbowker opened this issue Jun 7, 2016 · 7 comments
Assignees
Labels
ARM - Templates ARM customer-reported question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@thbowker
Copy link
thbowker commented Jun 7, 2016

Using New-AzureRmResourceGorupDeployment

Seeing different behavior using -TemplateFile/-TemplateParameterFile and -TemplateURI/-TemplateParemeterURI.

Using a local file (-TemplateFile/-TemplateParameterFile) I am able to pass inline parameters when defined in -TemplateParameterFile as null. The value supplied in the inline parameter overwrites the null value and the deployment is successful:

New-AzureRmResourceGroupDeployment -Name RBDeploy -ResourceGroupName rg -TemplateFile ".../templates/template.json" -TemplateParameterFile "....../templates/templateparameters.json -vmName "Testing123"

However, when using URI instead of a local file, I receive the following error:

New-AzureRmResourceGroupDeployment -Name RBDeploy -ResourceGroupName rg -TemplateURI ".Https:../templates/template.json" -TemplateParameterURI "Https:.../templates/templateparameters.json -vmName "Testing123"

New-AzureRmResourceGroupDeployment : 7:10:46 PM - Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template resource '' at line '92' and column '6' is not 
valid. The name property cannot be null or empty. Please see http://aka.ms/arm-template/#resources for usage details.'.
At line:2 char:1
+ New-AzureRmResourceGroupDeployment -Name RBDeploy -ResourceGroupName  ...

Why am I able to pass inline parameters using a local file but not a URI?

@markcowl
Copy link
Member
markcowl commented Jun 9, 2016

@ravbhatnagar Can you take a look?

@ravbhatnagar ravbhatnagar added this to the Backlog milestone Jul 12, 2016
@ravbhatnagar
Copy link
Contributor

This is an issue. Adding to backlog.

@markcowl
Copy link
Member

@ravbhatnagar Please close this issue if fixed, or assign to the appropriate milestone

@charisk
Copy link
charisk commented Nov 6, 2017

Still having this issue - any plans to fix?

@cormacpayne
Copy link
Member

@ravbhatnagar ping

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
@rthorn17 rthorn17 added ARM ARM - Templates question The issue doesn't require a change to the product in order to be resolved. Most issues start as that and removed Resource Manager labels Jun 19, 2019
@fluffydice
Copy link

Still seems to be an issue as I am unable to discover parameters located in JSON file when using -templateURI parameter. Is the only workaround to use the templatefile parameter?

@Voteax
Copy link
Voteax commented May 22, 2020

No ETA for a Fix yet? Still unable to pass Inline parameters when TemplateUri and TemplateParameterUri are used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM - Templates ARM customer-reported question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

10 participants