@Riccardo Barbieri Apologies for the late reply. Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
.
To identify the cause of the issue, you should try running the same command with the --debug switch and check which REST API was failing and its underlying error traceback:
.
Action Plan:
You can isolate the issue by following the below steps in order and check if that helps:
.
Step 1:
The below CLI command should create a managed certificate and it will return the resource-id of the certificate.
az containerapp env certificate create
.
Step 2:
Then , try using the resource-id of the certificate to bind to hostname by running below command:
az containerapp hostname bind
.
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
**
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.