Created
January 3, 2023 04:41
-
-
Save sjwaight/d8637b6d04bb38954b84793c015b3895 to your computer and use it in GitHub Desktop.
Bicep file snippet showing how to define the MSI to use when connecting to a key vault.
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
resource connections_keyvault_resource 'Microsoft.Web/connections@2016-06-01' = { | |
name: connections_keyvault_name | |
location: resource_group_location | |
properties: { | |
displayName: 'KeyVaultMIAccess' | |
parameterValueType: 'Alternative' | |
alternativeParameterValues: { | |
vaultName: key_vault_name | |
} | |
customParameterValues: {} | |
api: { | |
name: 'keyvault' | |
displayName: 'Azure Key Vault' | |
description: 'Azure Key Vault is a service to securely store and access secrets.' | |
iconUri: 'https://connectoricons-prod.azureedge.net/releases/v1.0.1597/1.0.1597.3005/keyvault/icon.png' | |
brandColor: '#0079d6' | |
id: subscriptionResourceId('Microsoft.Web/locations/managedApis', resource_group_location, 'keyvault') | |
type: 'Microsoft.Web/locations/managedApis' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment