Skip to content

Add support for resource tagging in Azure deployment templates#1046

Merged
shibayan merged 1 commit into
masterfrom
add-resource-tags
May 10, 2026
Merged

Add support for resource tagging in Azure deployment templates#1046
shibayan merged 1 commit into
masterfrom
add-resource-tags

Conversation

@shibayan

Copy link
Copy Markdown
Member

This pull request adds support for applying custom tags to Azure resources through the deployment UI. It introduces a new tagsByResource parameter, updates the Bicep and ARM templates to propagate tags to all key resources, and enhances the deployment UI to allow users to specify tags per resource type.

Tagging support for Azure resources:

  • Added a new tagsByResource parameter in azuredeploy_ui.bicep and azuredeploy_ui.json to allow users to specify tags for each resource type. This parameter is now passed throughout the deployment pipeline. [1] [2]
  • Updated resource definitions in azuredeploy_ui.bicep and azuredeploy_ui.json to apply the appropriate tags from tagsByResource to Storage Account, Log Analytics Workspace, Application Insights, App Service Plan, Function App, and Key Vault resources. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
  • Ensured Application Insights receives both user-specified tags and required hidden-link tags by merging them into a single tags object. [1] [2]

Deployment UI enhancements:

  • Added a new "Tags" step to the deployment UI (uiFormDefinition.json) with a Microsoft.Common.TagsByResource element, allowing users to input tags for each supported resource type.
  • Wired up the UI to pass the collected tags into the deployment parameters.

These changes provide greater flexibility and consistency in resource tagging, improving resource management and cost tracking across deployments.

Close #839

@shibayan shibayan self-assigned this May 10, 2026
Copilot AI review requested due to automatic review settings May 10, 2026 08:57
@shibayan shibayan added the enhancement New feature or request label May 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds end-user support for tagging Azure resources when deploying Acmebot via the Guided UI, flowing tag selections from uiFormDefinition.json into the azuredeploy_ui ARM/Bicep templates and applying them to key resources.

Changes:

  • Added a tagsByResource parameter (sourced from Microsoft.Common.TagsByResource) and propagated it through the Guided UI output parameters.
  • Applied per-resource-type tags to Storage Account, Log Analytics Workspace, Application Insights, App Service Plan, Function App, and Key Vault.
  • Merged Application Insights user tags with required hidden-link tags.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
deploy/uiFormDefinition.json Adds a new “Tags” step and passes tagsByResource into template parameters.
deploy/azuredeploy_ui.bicep Introduces tagsByResource, derives per-resource tag objects, and applies them to resources (including AI hidden-link merge).
deploy/azuredeploy_ui.json Generated ARM template updates mirroring the Bicep changes, including new parameter/variables and tags fields.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread deploy/azuredeploy_ui.bicep
Comment thread deploy/azuredeploy_ui.json
@shibayan shibayan merged commit bbdfb62 into master May 10, 2026
8 checks passed
@shibayan shibayan deleted the add-resource-tags branch May 10, 2026 09:02
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

Successfully merging this pull request may close these issues.

Bicep - Add optional tags

2 participants