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

Tagging when submitting the deployment #94

Open
tim-beer opened this issue Feb 1, 2021 · 0 comments
Open

Tagging when submitting the deployment #94

tim-beer opened this issue Feb 1, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@tim-beer
Copy link

tim-beer commented Feb 1, 2021

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.

@danielsollondon danielsollondon added the enhancement New feature or request label Mar 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants