-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting parameterValueType on Microsoft.Web/connections resource throws an error #1990
Comments
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 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. |
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:
so if you replace parameterValueType: 'Alternative' with the code above. 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) |
This also seems related (possibly a duplicate) of Azure/bicep#5056 |
@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
|
@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 |
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. |
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' = { 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.
|
Hello I'm also facing issues, while creating logic app api connection arm for SQL , "the api connection 'sql' is not configured to support managed identity". |
Hello! there is any plan to fix this warning for resource type like for web connection managed identity :
Shall I need to refeer to another team ? |
@seligj95 can you take a look at this one? |
@alex-frankel, I stumbled on this, perhaps you can transfer this to #2386 |
Bicep version
Bicep CLI version 0.4.1124 (66c84c8ee5)
Describe the bug
According to https://docs.microsoft.com/en-us/azure/logic-apps/create-managed-service-identity?tabs=consumption#arm-template-for-managed-connections-and-managed-identities-consumption, I should be able to set parameterValueType to Alternative. So IMO following code should work:
However, Intellisense (in VS Code) shows yellow squiggly and if I try to deploy template, I get following:
Warning implies that parameterValueType is not allowed property (contradicting URL from above). Interesting enough error msg implies that parameterValueType should work BUT can't be set to Alternative.
Looking at https://docs.microsoft.com/en-us/azure/templates/microsoft.web/connections?tabs=bicep, parameterValueType is not listed.
Note that if I create this manually (through Logic App), I can use managed identity and all is good. Now I am trying to build this same logic to Bicep template.
So I am a bit confused, where is the problem and how do I fix it?
To Reproduce
See above
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: