appgatewayをARMテンプレートから作成する際に、PFX証明書を使用しています。
パラメーター↓
"appGatewaySSLCertificateData": {"type": "string",
"metadata": {
"description": "Base-64 encoded form of the .pfx file" }
},
"appGatewaySSLCertificatePassword": {
"type": "securestring",
"metadata": {
"description": "Password for .pfx certificate"
}
処理内容↓
"sslCertificates": [{
"name": "[parameters('applicationGateways_hogehoge_name')]",
"properties": {
"data": "[parameters('appGatewaySSLCertificateData')]",
"password": "[parameters('appGatewaySSLCertificatePassword')]"
}
}
],
実行すると下記のエラーが発生してしまうのですが、考えられる原因は何がありますでしょうか?
また、実際に実行した方がいらっしゃれば、どのようなJSONの内容になったかあればご教授いただきたいです。
New-AzResourceGroupDeployment : 17:02:47 - Error: Code=ApplicationGatewaySslCertificateInvalidData; Message=Data or Password for certificate /subscriptions/×××/resourceGroups/hogehoge/providers/Microsoft.Network/applicationGateways/hogehoge/sslCertificates/hogehoge is invalid.
発生場所 行:1 文字:1
+ New-AzResourceGroupDeployment `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
New-AzResourceGroupDeployment : The deployment validation failed
発生場所 行:1 文字:1
+ New-AzResourceGroupDeployment `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzResourceGroupDeployment]、InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet