Skip to content

Instantly share code, notes, and snippets.

@papeMK2
Created June 6, 2023 02:58
Show Gist options
  • Save papeMK2/2815669c170533063f8902a06af1cb43 to your computer and use it in GitHub Desktop.
Save papeMK2/2815669c170533063f8902a06af1cb43 to your computer and use it in GitHub Desktop.
Get App Configuration Connection string
targetScope = 'resourceGroup'
@allowed([
'Primary'
'Secondary'
'Primary Read Only'
'Secondary Read Only'
])
param connectionStringType string = 'Primary Read Only'
resource appConfiguration 'Microsoft.AppConfiguration/configurationStores@2023-03-01' existing = {
name: '{Your app configuration name}'
}
var connectionString = filter(appConfiguration.listKeys().value, k => k.name == connectionStringType)[0].connectionString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment