Closed ezYakaEagle442 closed 1 year ago
In the App bindings, what is the correct value to set in the 'key' & 'bindingParameters' fields ?
The doc is confusing :
https://learn.microsoft.com/en-us/azure/spring-apps/how-to-enterprise-service-registry#bind-a-service-to-the-service-registry explains that you have to Bind an App for service-to-service communication whereas the CLI shows that it refers to bindings Apps to bindings with Azure Data Services which is another topic.
az spring app binding --help
Group
az spring app binding : Commands to manage bindings with Azure Data Services, you need to
manually restart app to make settings take effect.
I have commented ALL the App bindings and it removed the related error message, and I also see All the Apps automatically bound in the portal / service registry
Hi @ezYakaEagle442 ,
The Microsoft.AppPlatform/Spring/apps/bindings
API is used by the Service Binding feature, which allows the customer to bind their data services (such as MySQL, CosmosDB, etc) to the ASA apps. It's not specifically for Enterprise tier.
If you need this service binding feature, you can check the CLI command az spring app binding --help
to create or update data bindings to CosmosDB, MySQL or Redis. You can pass --debug --verbose
to the command to show the actual ARM template payload that is passed to the server, which can help you to write the bicep payload. For MySQL, if you check az spring app binding mysql add --help
you can see you need to pass the --key
to the API. The resourceId
passed to this API should be the target data service resource ID rather than the ASA ID. That's why it reported the ASA resource namespace Microsoft.AppPlatform
was not supported.
Please note that the Service Binding feature is being replaced by the Service Connector. You can check this quickstart. For all the CLI commands mentioned in the quickstart tutorial, you can add --debug --verbose
to check the actual payload, which can be copied to your bicep template if necessary.
If you need the app binding feature in Application Configuration Service, the CLI command is actually az spring application-configuration-service bind
. You can check the --debug --verbose
output and see that its actually updating the properties.addonConfigs.applicationConfigurationService
property of the given app. You can write your bicep template with this property pointing to the ACS ID.
Describe the bug
see my Bicep code :
Example of App :
In the Azure Portal, the Deployments UI shows for each of my 3 Apps service-binding:
The Bicep IaC deployment workflow shows this error logs:
To Reproduce Steps to reproduce : on my repo
Expected behavior The Iac deployment should be successfull
Screenshots N/A
Additional context