Skip to content

PowerShell Test-AzDeplyoment is missing a name parameter #11497

@rahalan

Description

@rahalan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ARMService AttentionThis issue is responsible by Azure service team.feature-requestThis issue requires a new behavior in the product in order be resolved.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions