Comments (9)
This is still an issue.
from bicep-types-az.
This may be an issue with the resource provider. When the runtime evaluates the expression "[reference(resourceId('Microsoft.Web/connections', 'tablestorage')).connectionRuntimeUrl]"
, it will perform a GET on the specific resource. If the RP doesn't make the connectionRuntimeUrl
property available immediately after the initial PUT succeeds and returns a response on the GET without the property, it would explain the failure.
from bicep-types-az.
How can we get this equivalent in bicep?
{
"name": "azuretables_runtimeUrl",
"value": "[reference(resourceId('Microsoft.Web/connections', 'tablestorage', 'full')).connectionRuntimeUrl]"
},
(note the 'full'
param added to the resourceId
function)
from bicep-types-az.
'full'
is not an argument that is supported on the resourceId()
function, it is an argument of the reference()
function, but that is not the issue. The resource does not appear to return the connectionRuntimeUrl
property on a GET request. My guess is the CLI is doing multiple calls, not just a simple GET request to grab this value. The right next step is to reach out to the Web RP team as to how/why they are doing this, and if they can start returning it in a GET. Any chance you can open a support request for this? Otherwise, we can discuss this during our monthly sync with that team on 7/21.
from bicep-types-az.
'full'
is not an argument that is supported on theresourceId()
function, it is an argument of thereference()
function, but that is not the issue. The resource does not appear to return theconnectionRuntimeUrl
property on a GET request. My guess is the CLI is doing multiple calls, not just a simple GET request to grab this value. The right next step is to reach out to the Web RP team as to how/why they are doing this, and if they can start returning it in a GET. Any chance you can open a support request for this? Otherwise, we can discuss this during our monthly sync with that team on 7/21.
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.
from bicep-types-az.
Also, please review usage in ARM here which works fine (I just botched my c/p)
from bicep-types-az.
I think I figured this one out. There are at least two issues:
- There is an undeclared top level property
kind
which needs a value ofv2
in order for this property to be emitted. We are more strict with top-level properties in bicep, so the fact that this property is missing from the type is treated as an error, which will prevent you from deploying this bicep code. This is another case for prioritizing Azure/bicep#3000. - The property
connectionRuntimeUrl
is also missing. I suspect this is because the property didn't get introduced until thekind: 'v2'
value existed.
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.
from bicep-types-az.
Yup i just filed Azure/bicep#3512 as part of trying to figure this out. My workaround is to bicep build
the file then sed
the output JSON to add the "kind"
property
from bicep-types-az.
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'."}]}
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.