Skip to content

Grep sas token/ Access key for event grid and service bus #8080

Answered by brwilkinson
rebuildtech asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

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,abortConn…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rebuildtech
Comment options

@Dhinesh-E011
Comment options

Answer selected by rebuildtech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants