Here is my cert code portion
Getting Certs code :
resource certificateName_resource 'Microsoft.Web/certificates@2021-02-01' = {
name: certificates_name
location: resourceGroup().location
properties: {
keyVaultId: kv_externalid
keyVaultSecretName: certificates_name
serverFarmId: serverFarmID
}
}
sslCertificates: [
{
name: 'ListenerHTTPS'
properties: {
keyVaultSecretId: certificateName_resource.id
}
}
]
Here is code from Microsoft docs:
sslCertificates: [
{
name: 'appGatewayFrontEndSslCert'
properties: {
data: frontendCertData
password: frontendCertPassword
}
}
]
I'm getting deployment error while deploying this code Code error: KeyVaultWebService_SecretNotFound