Created
June 6, 2023 02:58
-
-
Save papeMK2/2815669c170533063f8902a06af1cb43 to your computer and use it in GitHub Desktop.
Get App Configuration Connection string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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