Hello Merin Mary,
I understood that you are trying to deploy the connection to Azure Monitor from Logic Apps by bicep templates, In this specific case the template that you using have some mistakes that I would suggest to verify on the documentation page for this resource Microsoft.Web connections:
Additionally I created this template that is already working , there are some parameters that is not in the documentation, so you can update with your service principal values to use it:
resource sqlApiConnection 'Microsoft.Web/connections@2016-06-01' = {
name: 'AzMonitorConnection'
location: resourceGroup().location
properties: {
displayName: 'auth-spn-01'
//TODO: Hidden Parameter
parameterValueSet: {
name: 'oauthServicePrincipal'
values: {
'token:clientId': {
value: '<Your Cliente ID>'
}
'token:clientSecret': {
value: '<Your client Secret>'
}
'token:TenantId': {
value: '<Your tenant ID>'
}
}
}
api: {
id: subscriptionResourceId('Microsoft.Web/locations/managedApis', resourceGroup().location, 'azuremonitorlogs')
}
}
}
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
Regards,
Luis