Import Public certificate to Azure Function APP via ARM template

Thangavel Tamilarasan (YICCB) 0 Reputation points
2024-07-10T07:11:57.44+00:00

Hi,

I tried the below arm template to add public certificate , but it fails with ##[error]undefined: Parameter publicCertificateEnv is null or empty.

What's wrong with this code ? Is there another way to add the public certificate via arm or cli to azure function ?

        {
        "apiVersion": "2022-09-01",
        "name": "[concat(variables('ServiceName'), '/', variables('publicCertificateName'))]",
        "type": "Microsoft.Web/sites/publicCertificates",
        "dependsOn": [
          "[resourceId('Microsoft.Web/sites', variables('serviceName'))]"
        ],
        "properties": {
          "blob": "[parameters('root_cert_base64')]",         
          "publicCertificateLocation": "LocalMachineMy"
        }
        }

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,095 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.