-
Notifications
You must be signed in to change notification settings - Fork 27
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
API connection needs to support connectionRuntimeUrl as output/property #2192
Comments
This may be an issue with the resource provider. When the runtime evaluates the expression |
How can we get this equivalent in bicep? {
"name": "azuretables_runtimeUrl",
"value": "[reference(resourceId('Microsoft.Web/connections', 'tablestorage', 'full')).connectionRuntimeUrl]"
}, (note the |
|
Thanks for that detail; unfortunately, I'm headed out of the office until the 18th and probably wouldn't know the right verbiage/people as well as you/your team. If you want to include me in the call on the 21st that'd be great - I'll see if I can make it. |
Also, please review usage in ARM here which works fine (I just botched my c/p) |
I think I figured this one out. There are at least two issues:
Both of these problems should be properly fixed in a single swagger update. I'm not sure how quickly that will get done, so Azure/bicep#3000 will have to serve as a stop-gap in the meantime. Unfortunately, you are blocked on doing this in Bicep until that is done. cc @miqm as FYI since I know he was looking into implementing this. |
Yup i just filed Azure/bicep#3512 as part of trying to figure this out. My workaround is to |
This is maybe helpful to someone else. If you already have a connection created named "myConnection" you will get the following error if you try to change the kind to V2. Delete the resource first then try the creation again. {"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"ConnectionV2KindMismatch","message":"The 'kind' property in api connection '' cannot be changed from 'V1' to 'V2'."}]} |
This is still an issue. |
Still an issue. |
Bicep version
Describe the bug
I'm creating an API Connection resource in Azure so that I can then use its Runtime URL in a Logic App connection. However, I'm unable to get the runtime URL despite it being available on the API Connection resource's output from
az cli
To Reproduce
Steps to reproduce the behavior:
now try to get the
connectionRuntimeUrl
property off the created Azure resource as shown byaz resource show --ids <connection resource ID>
:I tried by using
tableStorageConnection.properties.connectionRuntimeUrl
andtableStorageConnection.properties['connectionRuntimeUrl']
and am met with the following warning in the CLI during deployment
but the deployment then fails in Azure with the same message:
(Secondary complaint: if it's going to fail the deployment, then bicep should error, not warn)
Bicep's compiled JSON looks like this:
The text was updated successfully, but these errors were encountered: