Not able to deploy microsoft.web/certificates using ARM template

Dheep Azure 1 Reputation point
2021-10-22T11:16:56.113+00:00

I tried to deploy microsoft.web/certificates resource via ARM template. But it is getting failed while uploading with the error {"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"InternalServerError","message":"There was an unexpected InternalServerError. Please try again later. x-ms-correlation-request-id: 68419f37-8dc0-45aa-9fa0-88c561840e09"}]}

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"certificatePrefixName": {
"type": "string"
},
"certificatePfxBase64": {
"type": "securestring"
},
"certificatePfxPassword": {
"type": "securestring"
}
},
"variables": {
"certificateName": "[concat(parameters('certificatePrefixName'), uniqueString(resourceGroup().id))]"
},
"resources": [
{
"apiVersion": "2018-11-01",
"name": "[variables('certificateName')]",
"type": "Microsoft.Web/certificates",
"location": "[resourceGroup().location]",
"properties": {
"pfxBlob": "[parameters('certificatePfxBase64')]",
"password": "[parameters('certificatePfxPassword')]"
},
"tags": {
"displayName": "Certificate"
}
}
]
}

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
255 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,141 Reputation points Microsoft Employee
    2021-10-28T14:29:13.897+00:00

    Hello @Dheep Azure ,
    Sorry for late reply . Are you still getting the error ? As per the error message retrying after sometime should help out in resolving the issue.
    I just tried the same template for uploading the certificate on a App Service website resource group and it went through successfully.

    Kindly let us know if you have additional questions.

    Regards,
    Shiva.

    0 comments No comments