Azure-docs: Deploy custom certificate (Key Vault) via ARM

Created on 15 Aug 2019  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

Hello, I saw a stub customHttpsConfiguration property in an ARM template I downloaded from a Portal-based deployment the other day. It doesn't seem to be supported (at least I can't find any references to it in docs or the schema repo) but it led me to wonder: is it possible today to use ARM automate the SSL certificate assignment from a previously-uploaded Key Vault certificate/secret? If so, how would I do that? Thanks!


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author frontdoosvc product-question triaged

Most helpful comment

How can this still not be supported using ARM. It has been GA for over a year now.

All 7 comments

@LarsKemmann Thank you for the valuable feedback,we are investigating the issue.

@LarsKemmann Thanks for the feedback. I have assigned this issue to content author to comment on the feasibility of doing this for Azure Front Door service.

@LarsKemmann Currently, there is no support to enable HTTPS through ARM templates.
Please use REST API enablehttps on frontend endpoint for the same
https://docs.microsoft.com/en-us/rest/api/frontdoorservice/frontdoor/frontendendpoints/enablehttps

I've discovered that this seems to be possible with the 2020-01-01 version of the ARM API and I've documented here:
https://stackoverflow.com/a/61099521/2765855
namely there's a new property in frontendEndpoint properties:

"customHttpsConfiguration": {
  "certificateSource": "AzureKeyVault" // or "FrontDoor",        
  "minimumTlsVersion":"1.2",
  "protocolType": "ServerNameIndication",

  // Depending on "certificateSource" you supply either:
  "keyVaultCertificateSourceParameters": {
    "secretName": "<secret name>",
    "secretVersion": "<secret version>",
    "vault": {
      "id": "<keyVault ResourceID>"
    }
  }

  // Or:
  "frontDoorCertificateSourceParameters": {
    "certificateType": "Dedicated"
  }
}

After more testing, it seems this may be premature as I've found it to be unstable and only works intermittently, so I guess this is not quite production ready yet.

How can this still not be supported using ARM. It has been GA for over a year now.

just add below property:

  "customHttpsProvisioningState": "Enabled",
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jharbieh picture jharbieh  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments