Hi @Adam Marshall , I've simulated your situation:
- Created a Basic App Service Plan.
- Created two App Services into the same App Service Plan: mywebapp-598764321 and mywebapp-698754321.
- Created a certificate in Azure Key Vault.
- Assign RBAC in Azure Key Vault: Authorize App Service to read from the vault.
- From mywebapp-598764321, added certificate from Azure Key Vault.
- Didn't do anything from mywebapp-698754321, I could see the certificate from Key Vault already listed under Certificate - Bring Your Own Certificate.
What I observed:
- Certificate is listed under each of the web app. Both web apps have exactly the same view of the certificate. The second web app (mywebapp-698754321) also has "Sync" button on the certificate detail.
- I tried creating a new version of the certificate and disable the old version. The web apps (mywebapp-598764321) did not pick up the new version automatically. I could click "Sync" from one web app (mywebapp-598764321 or mywebapp-698754321) and the other web app will pick up the new version of the certificate.
- App Service Plan does not have any setting on Certificate. You need to select the App Service to set the certificate.
Is it possible for you to remove the certificate and add it again from one of the web apps? The other web apps using the same App Service Plan should pick it up automatically.
Mentioning below steps by Adam Marshall followed by Silvia Wibowo response that worked
I have migrated all of my production apps to use the Managed App Certificate, removed the wildcard cert from any staging slots and then deleted the previously imported Key vault cert.
I then imported the key vault certificate again, and made the staging slots reference the newly imported Key Vault certificate.
All the staging slots can see the key vault cert name and have the sync button.
What a strange issue, the original Key vault certificate was imported over 3 years ago, so maybe there was an issue at that point that didn't make the reference properly.