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.
4,646 questions
{count} votes