Comments (11)
hi! the logicapp connectors are quite difficult to follow when creating them with IaC.
When I create a new sql connections (with managed Identity ) in a logicapp from the portal and look at the POST request send by the browser it looks like the managed identity is defined by the following:
parameterValueSet: {
name: 'oauthMI'
values: {}
}
so if you replace parameterValueType: 'Alternative' with the code above.
this still gives a bicep warning but deploys the sql connection with managed identiy
hope this helps you.
note that you can use the SubscriptionResourceId to simplify your Id parameter (subscriptionResourceId('Microsoft.Web/locations/managedApis', resourceGroup().location, api_connection_sql_name)
from bicep-types-az.
The Web team is aware of the issue. There are many issues with the API definition for various resource types within the Web RP. Last time we spoke with them we agreed we should take some to address as many of them as possible, so hoping they work on this in the next 3-6 months.
from bicep-types-az.
Hi,
I'm trying to create a Bicep template for a service bus connection using Managed Identity as below:
resource apiConnectionServiceBus 'Microsoft.Web/connections@2016-06-01' = { name: serviceBusApicName location: location properties: { displayName: serviceBusApicName api: { id: serviceBusApiReferenceId } parameterValueSet: { name: 'managedIdentityAuth' values: { } } } }
It creates the API connection, but an information is missing and before the Logic App can use this connection I need to manually edit the connection to add the namespace of the service bus as below:
I need to know which parameter to set in Bicep to do this while deploying the API connection through Azure DevOps and avoid any manual intervention.
Thanks
According to Azure Support Engineer, there's no way Microsoft mentioned in docs for now how to set in Bicep.
However, the following pieces are provided by them.
{
"properties": {
"api": {
"id": "/subscriptions/[SubID]/providers/Microsoft.Web/locations/australiaeast/managedApis/servicebus"
},
"parameterValueSet": {
"name": "managedIdentityAuth",
"values": {
"namespaceEndpoint": {
"value": "[Endpoint]"
}
}
},
"displayName": "Test"
},
"kind": "V1",
"location": "australiaeast"
}
from bicep-types-az.
@sjuratov great to hear that it works for you
I agree fully that the definition of the logic app connectors could be approved. Reverse engineering the api specification is not a great way and the definition is also not consistent between the connectors.
It would be great if @alex-frankel could address this to the right person within Microsoft
from bicep-types-az.
The Bicep warning is saying it does not know about the property, but that may be a false positive. As you note, the error message seems to indicate that the property is allowed, but the value 'Alternative'
is not for this specific case.
The error you are hitting is not explicitly related to Bicep and we will need someone with more context on this resource type to help answer this. Otherwise, the recommendation will be to open a support case so the Web team can take a look.
from bicep-types-az.
This also seems related (possibly a duplicate) of Azure/bicep#5056
from bicep-types-az.
@JeroenvdBurg , many thanks, that solved the problem! As you have indicated and I agree, code can be further improved. I wanted something quick, dirty and working before making adjustments.
@alex-frankel , agreed it's related yet different. I am not sure who in MSFT should be documenting these details. While @JeroenvdBurg approach works, IMO it's not something we should be doing - this should be well documented for each Microsoft.Web/connections resource.
Btw, for storage account, here is correct JSON payload
parameterValueSet: {
name: 'managedIdentityAuth'
values: {}
}
from bicep-types-az.
Hi,
I'm trying to create a Bicep template for a service bus connection using Managed Identity as below:
resource apiConnectionServiceBus 'Microsoft.Web/connections@2016-06-01' = {
name: serviceBusApicName
location: location
properties: {
displayName: serviceBusApicName
api: {
id: serviceBusApiReferenceId
}
parameterValueSet: {
name: 'managedIdentityAuth'
values: { }
}
}
}
It creates the API connection, but an information is missing and before the Logic App can use this connection I need to manually edit the connection to add the namespace of the service bus as below:
I need to know which parameter to set in Bicep to do this while deploying the API connection through Azure DevOps and avoid any manual intervention.
Thanks
from bicep-types-az.
Hello I'm also facing issues, while creating logic app api connection arm for SQL ,
Getting below error.
"the api connection 'sql' is not configured to support managed identity".
Anyone know why it's showing?
from bicep-types-az.
Hello! there is any plan to fix this warning for resource type like for web connection managed identity :
parameterValueSet: {
name: 'oauthMI'
values: {}
}
Shall I need to refeer to another team ?
from bicep-types-az.
@seligj95 can you take a look at this one?
from bicep-types-az.
Related Issues (20)
- Microsoft.Web/sites: Does not recognize property 'autoGeneratedDomainNameLabelScope'
- Unable to rerun code for Microsoft.Network/networkVirtualAppliances and a firewall is connected HOT 1
- Notification Hub Namespace update failed with BadArgument Exception HOT 3
- AKS Spot Nodepool error HOT 5
- Resource type "Microsoft.VirtualMachineImages/imageTemplates@2024-02-01" does not have types available
- Apim Api Revision fails when parent Api has no Description HOT 1
- Microsoft.Portal/dashboards: The property "type" expected a value of type "'Extension/HubsExtension/PartType/MarkdownPart'" but the provided value is of type "'Extension/HubsExtension/PartType/MonitorChartPart'"
- [Microsoft.KeyVault/vaults/accessPolicies]: does not have types available
- [Microsoft.App/containerApps]: ContainerResources example uses unsupported units for Memory property; Mb instead of Gi.
- [Microsoft.Web/sites]: missing functionAppConfig
- Microsoft.DataProtection/backupVaults not able to set SystemAssigned Identity HOT 1
- Error while deploying Azure Container App with bicep: ContainerAppInvalidResourceTotal HOT 1
- add tags to new subscription bicep not allowed
- MySQL Flexible deployment fails when properties.maintenanceWindow is set HOT 2
- Microsoft.Web/connections@2018-07-01-preview and Microsoft.Web/connections/accessPolicies@2018-07-01-preview
- Azure Container Apps - KEDA scale (managed identity) HOT 5
- Microsoft.Web/sites@2021-03-01 ipSecurityRestrictionsDefaultAction
- deployment ignores condition and is validating module
- [Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers]: compositeIndexes type issue
- [Microsoft.PowerPlatform/enterprisePolicies]: Virtual Networks Object structure is incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bicep-types-az.