diff --git a/azure/extender-servicebus.bicep b/azure/extender-servicebus.bicep index e0128a2..2b4b1d5 100644 --- a/azure/extender-servicebus.bicep +++ b/azure/extender-servicebus.bicep @@ -48,9 +48,20 @@ param skuTier string = 'Standard' @description('ISO 8601 Default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.') param defaultMessageTimeToLive string = 'P14D' +@description('The user-defined tags that will be applied to the resource. Default is null') +param tags object = {} + +@description('The Radius specific tags that will be applied to the resource') +var radiusTags = { + 'radapp.io-environment': context.environment.id + 'radapp.io-application': context.application == null ? '' : context.application.id + 'radapp.io-resource': context.resource.id +} + resource servicebus 'Microsoft.ServiceBus/namespaces@2021-06-01-preview' = { name: 'servicebus-namespace-${uniqueString(context.resource.id, resourceGroup().id)}' location: location + tags: union(radiusTags, tags) sku: { name: skuName tier: skuTier diff --git a/azure/rediscaches.bicep b/azure/rediscaches.bicep index 05d5b52..0880112 100644 --- a/azure/rediscaches.bicep +++ b/azure/rediscaches.bicep @@ -40,9 +40,20 @@ param skuFamily string = 'C' ]) param skuName string = 'Basic' +@description('The user-defined tags that will be applied to the resource. Default is null') +param tags object = {} + +@description('The Radius specific tags that will be applied to the resource') +var radiusTags = { + 'radapp.io-environment': context.environment.id + 'radapp.io-application': context.application == null ? '' : context.application.id + 'radapp.io-resource': context.resource.id +} + resource azureCache 'Microsoft.Cache/redis@2022-06-01' = { name: 'cache-${uniqueString(context.resource.id, resourceGroup().id)}' location: location + tags: union(tags, radiusTags) properties: { sku: { capacity: skuCapacity diff --git a/azure/sqldatabases.bicep b/azure/sqldatabases.bicep index 67b4280..4146ab7 100644 --- a/azure/sqldatabases.bicep +++ b/azure/sqldatabases.bicep @@ -46,11 +46,22 @@ param skuName string = 'Standard' ]) param skuTier string = 'Standard' +@description('The user-defined tags that will be applied to the resource. Default is null') +param tags object = {} + +@description('The Radius specific tags that will be applied to the resource') +var radiusTags = { + 'radapp.io-environment': context.environment.id + 'radapp.io-application': context.application == null ? '' : context.application.id + 'radapp.io-resource': context.resource.id +} + var mssqlPort = 1433 resource mssql 'Microsoft.Sql/servers@2021-02-01-preview' = { name: '${context.resource.name}-${uniqueString(context.resource.id, resourceGroup().id)}' location: location + tags: union(tags, radiusTags) properties: { administratorLogin: adminLogin administratorLoginPassword: adminPassword @@ -67,6 +78,7 @@ resource mssql 'Microsoft.Sql/servers@2021-02-01-preview' = { resource db 'databases' = { name: database location: location + tags: union(tags, radiusTags) sku: { name: skuName tier: skuTier diff --git a/azure/statestores.bicep b/azure/statestores.bicep index ea733eb..5fba53e 100644 --- a/azure/statestores.bicep +++ b/azure/statestores.bicep @@ -26,9 +26,20 @@ param actorStateStore bool = false @description('The name of the container to create within the Azure storage account and to reference within the Dapr component.') var containerName = context.resource.name +@description('The user-defined tags that will be applied to the resource. Default is null') +param tags object = {} + +@description('The Radius specific tags that will be applied to the resource') +var radiusTags = { + 'radapp.io-environment': context.environment.id + 'radapp.io-application': context.application == null ? '' : context.application.id + 'radapp.io-resource': context.resource.id +} + resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = { name: 'recipe${uniqueString(context.resource.id, resourceGroup().id)}' location: location + tags: union(tags, radiusTags) sku: { name: 'Standard_ZRS' }