Open hansatpm opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.
Author: | hansatpm |
---|---|
Assignees: | - |
Labels: | `App Services`, `Service Attention`, `question`, `customer-reported`, `needs-triage` |
Milestone: | - |
Maybe I have the same issue and the error message is: New-AzWebAppSSLBinding : Operation returned an invalid status code 'NotFound' . The app service certificate was acquired and placed in the "production" resource group last month, but the app service and its app service plan are hosting on another resource group, named "client".
Same issue here
Also I found the same problem when attempting this deployment though a WebApp ARM Template.
Interestingly it does create the certificate if you check with Get-AzWebAppCertificate -ResourceGroupName $AppServicePlanResourceGroupName
@LukeDearden You are correct the same happens if you deploy from ARM template. This is to be expected because the ARM template and New-AzWebAppCertificate Geet both use the same REST API.
Just wondering when this is likely to be resolved?
@antcp, @AzureAppServiceCLI Do you have any updates.
I am running into this exact same error and scenario. It fails from powershell with a not found, but can be completed via the portal. it appears to create the certificate but fails to set the binding. I have a current workaround by where I drop the -addbinding parameter and use New-AzWebAppSSLBinding to bind separately
Description
I want to report an issue when using New-AzWebAppSSLBinding to create a new Azure managed certificate and bind the certificate to a custom domain. It works if ServerFarm and WebApp are in the same resource group but fails if serverfarm is in another resourcegroup then the WebApp
Steps to reproduce
The involved command is:
Scenario 1
If the command is given for a WebApp where the ServerFarm is in the same resourceGroup then the command returns success and the certicate is created and the SslBinding is also created. There is an attachment scenario1.zip which contains one ARM template and a powershell script that deploys the ARM template in a new resource group Bug-New-AzWebAppSSLBinding-Scenario1.zip
Scenario 2
If the same command is given for a WebApp where the ServerFarm is in a different resourceGroup, then the command returns:
There is an attachment scenario2.zip which contains 2 ARM templates and one powershell script that deploys both ARM templates. Bug-New-AzWebAppSSLBinding-Scenario2.zip
Environment data
Module versions
Debug output
Error output