question

DheepAzure-7097 avatar image
0 Votes"
DheepAzure-7097 asked shivapatpi-MSFT answered

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

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-dtl-arm-enviorments
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered

Hello @DheepAzure-7097 ,
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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.