-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Description of the new feature
When you run a PowerShell New-AzDeplyoment on Azure and you don’t specify a deployment name, the deployment will be named after the file, like “deploy” if you use a “deploy.json”. What is happening in the background is, that this deployment name for that tenant gets linked to the deployment region. This link is not changeable. So if you deploy the same file to a different region without a custom deployment name, it will fail. As you can change the name in New-AzDeployment with the name parameter, this limitation is easily to overcome. Unfortunately, when you want to test your deployment with Test-AzDeployment, you cannot specify the deployment name, which means it uses internally the file name. The test will fail in that case, that this file was already deployed in another region. The only workaround is to rename the file.
Proposed implementation details (optional)
Add the "name" parameter to the Test-AzDeployment commandlet