Reputation: 41
I have an Azure Application Gateway in subscription A and a wildcard ssl cert in a Keyvault in subscription B, both under the same tenant. Is it possible to link this certificate to this application gateway?
Upvotes: 3
Views: 14596
Reputation: 2154
We ran into the same issue. As of Nov 2021, based on the documentation, the Key Vault instance must be in the same subscription as Application Gateway.
Azure Application Gateway currently supports only Key Vault accounts in the same subscription as the Application Gateway resource. Choosing a key vault under a different subscription than your Application Gateway will result in a failure.
Upvotes: 3
Reputation: 399
Continuing on from @andriy-bilous, creating a Managed Identity for an Azure Application Gateway so you can draw down certificates from your Azure Key Vault is pretty simple.
Create the Managed Identity:
Assign the rights to the Managed Identity in your Key Vault:
Head on over to your Application Gateway, and there will be a Managed Idenity for the Key Vault and setup your HTTPS certificates.
Also, as you've aleady got a VNET setup, adding your Key Vault to the VNET via a Private Endpoint is a great idea.
Upvotes: 6
Reputation: 2522
Yes it is possible.
Application Gateway integration with Key Vault requires a three-step configuration process:
https://learn.microsoft.com/en-us/azure/application-gateway/key-vault-certs#how-integration-works
Upvotes: 2