Azure / Azure/azure-powershell

How to pass a value for the 'name' parameter of an ARM template using New-AzResourceGroupDeployment

Open
#11,564 2 comments 0 reactions 0 assignees View on GitHub
act-identity-squad ARM - Templates Azure PS Team customer-reported feature-request
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

## Description of the new feature
Hi All,
My ARM template generated from the portal has a parameter `name`

![image](https://user-images.githubusercontent.com/20245330/79137905-7e4bd500-7dab-11ea-94b9-3edba260d6d1.png)

While deploying using `New-AzResourceGroupDeployment`, I am unable to pass a value using the `-name` switch. The switch `-name` is being used for the name of the deployment and not the name of the Azure resource that I am trying to created.

I am able to work around the issue by renaming the `name` to `name1` in the template.json file. But, this is laborious.

What have I missed?

Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.