Azure-Samples / graphrag-accelerator

One-click deploy of a Knowledge Graph powered RAG (GraphRAG) in Azure
https://github.com/microsoft/graphrag
MIT License
1.83k stars 299 forks source link

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

Open bdailey-WWT opened 3 months ago

bdailey-WWT commented 3 months ago

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):

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

timothymeyers commented 3 months ago

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 commented 3 months ago

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