Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Microsoft.Web/certificates #511

Open
tehmufifnman opened this issue Dec 21, 2020 · 0 comments
Open

Add Support for Microsoft.Web/certificates #511

tehmufifnman opened this issue Dec 21, 2020 · 0 comments

Comments

@tehmufifnman
Copy link

Use Case:
We have a private key certificate sitting inside a KeyVault. Its referenced by keyVaultId and keyVaultSecretName properties. When you reference a certificate in this way inside of an ARM template, the sites resource in your ARM template is given a reference to it, which can then be loaded if you have a siteConfig env var called "WEBSITE_LOAD_CERTIFICATES" set to "*" (or a specific name).
See https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-certificate-in-code for details

Sample ARM JSON:

      "apiVersion": "2018-11-01",
      "name": "[parameters('encryptionCertificateName')]",
      "type": "Microsoft.Web/certificates",
      "location": "[resourceGroup().location]",
      "tags": "[parameters('resourceTags')]",
      "dependsOn": [
        "[concat('Microsoft.Web/sites/', parameters('appName'))]"
      ],
      "properties": {
        "keyVaultId": "[parameters('keyVaultId')]",
        "keyVaultSecretName": "[parameters('encryptionKeyVaultSecretName')]"
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants