Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add ability to configure universal tags for Azure Resources #121

Open
bdailey-WWT opened this issue Aug 1, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@bdailey-WWT
Copy link

Describe the bug
Using development container, I cannot create the deployment due to the policy set by company- needs tags

image

Expected behavior
Deployment goes through

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows10 Enterprise
  • Version 22H2

Additional context
Need a way to modify deployment to pass the needed tags.

@bdailey-WWT bdailey-WWT added the bug Something isn't working label Aug 1, 2024
@timothymeyers timothymeyers added enhancement New feature or request and removed bug Something isn't working labels Aug 2, 2024
@timothymeyers timothymeyers changed the title [BUG] Cannot create deployment due to policy [FEATURE] Add ability to configure universal tags for Azure Resources Aug 2, 2024
@timothymeyers
Copy link
Contributor

Hi @bdailey-WWT - this isn't really a bug, so I changed it to a feature request to be able to configure universal tags for all created Azure Resources.

Your organization seems to have put an Azure Policy in place to prevent resources from being created without some sort of tag. This is a very common governance pattern.

You can go and manually add tags to the Azure resource deployments in the bicep files under the infra folder. Here's an example of what it would look like:

resource myResource 'Microsoft.Storage/storageAccounts@2021-04-01' = {
  name: 'myStorageAccount'
  location: resourceGroup().location
  tags: {
    environment: 'production'
    owner: 'teamA'
  }
  properties: {
    ...
  }
}

@bdailey-WWT
Copy link
Author

thanks for the heads up. Wasnt sure if it was already a feature and I was missing anything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants