Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Tagging when submitting the deployment #94

@tim-beer

Description

@tim-beer

In our Azure tenant we have a Global policy that resource groups must be tagged otherwise resource groups fails creation

I'm facing the issue of the Submit template from deployment stage of the WVD instructions you have, as it fails this policy.

So far I have tried to add in the command line as an example

New-AzResourceGroupDeployment -ResourceGroupName $imageResourceGroup -TemplateFile $templateFilePath -api-version "2020-02-14" -imageTemplateName $imageTemplateName -svclocation $location -tag @{

security = "yes";
automation = "hours=247"
}

but this still fails

I also tried adding to the tags in the JSON that gets created both adding to the 2 default tags and also removing the default tags and just adding ours, this still fails.

If I deploy a normal resource group with these methods they work ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions