I'm trying to setup a logicapp with a keyvault-action to retrieve a secret. This logicapp is setup with bicep.
Everything is created, however when opening the LA-designer i get the error 'Connector not found'
The LogicApp is created with a 'system managed Identity' enabled :
resource myla 'Microsoft.Logic/workflows@2017-07-01' = {
location: 'westeurope'
identity: {
type: 'SystemAssigned'
}
To create the keyvault api connection I use this bicep code :
resource connection 'Microsoft.Web/connections@2016-06-01' = {
name: 'keyvault-connection'
location: 'westeurope'
properties: {
displayName: 'Azure keyvault'
api: {
id: '/subscriptions/${subscription}/providers/Microsoft.Web/locations/westeurope/managedApis/keyvault'
displayName: 'Azure keyvault'
description: 'Azure keyvault API'
type: 'Microsoft.Web/locations/managedApis'
}
parameterValueSet: {
name: 'oauthMI'
values: {
vaultName: {
value: keyvaultName
}
}
}
}
}
I also have a roleassignemnt to link the la with keyvault :
resource roleAssignment 'Microsoft.Authorization/roleAssignments@2021-04-01-preview' = {
scope: kv
name: guid(resourceGroup().id,secretsUserRoleDefinitionId, myla.id)
properties: {
principalId: myla.identity.principalId
roleDefinitionId: '/subscriptions/${subscription}/providers/Microsoft.Authorization/roleDefinitions/4633458b-17de-408a-b874-0445c86b69e6'
principalType: 'ServicePrincipal'
}
}
any clues what I am missing to resolve the 'connector not found' error ?