Grep sas token/ Access key for event grid and service bus #8080
-
Hi Team I have been trying to get the details of eventgrid and service bus name space keys as I need them to store or integrate them in the keyvault My idea is to create the output variable for the keys for both the services and then integrate them as secrets in keyvault module However I couldnt find the best way or appropriate way to pull the required data.can someone please guide me on how can I be able to pull this off? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The supported implementation for the list* function are here: e.g. Below is an example of setting a keyvault secret with one of these values, example is Redis, however it's similar for other resources. resource KVLocal 'Microsoft.KeyVault/vaults@2021-11-01-preview' existing = {
name: '${Deployment}-kvAPP01'
}
resource redisConnectionSecret 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
name: 'redisConnection-${rc.name}'
parent: KVLocal
properties: {
value: '${RC.properties.hostName}:6380,password=${RC.listKeys().primaryKey},ssl=True,abortConnect=False'
}
} |
Beta Was this translation helpful? Give feedback.
@rebuildtech
The supported implementation for the list* function are here:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-resource#implementations
e.g.
Below is an example of setting a keyvault secret with one of these values, example is Redis, however it's similar for other resources.