You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the "file" provisioner to copy a file to an Azure Windows VM packer fails to connect giving a CertificateImproperlyFormatted error. This happens even when an ssh username and password are provided.
==> azure-arm: 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":"Conflict","message":"{\r\n "status": "Failed",\r\n "error": {\r\n "code": "ResourceDeploymentFailure",\r\n "message": "The resource operation completed with terminal provisioning state 'Failed'.",\r\n "details": [\r\n {\r\n "code": "CertificateImproperlyFormatted",\r\n "message": "The secret retrieved from https://pkrkvyeatfcs2q3.vault.azure.net/secrets/packerKeyVaultSecret/4h294bf7v61e4d4b8b854f0a462fac20 is empty string."\r\n }\r\n ]\r\n }\r\n}"}] ==> azure-arm: Removing the created Deployment object: 'pkrdpyeatfcs2q3' ==> azure-arm: Removing the created Deployment object: 'kvpkrdpyeatfcs2q3' ==> azure-arm:==> azure-arm: Cleanup requested, deleting resource group ... ==> azure-arm: Resource group has been deleted. Build 'azure-arm' errored after 4 minutes 20 seconds: 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":"Conflict","message":"{\r\n "status": "Failed",\r\n "error": {\r\n "code": "ResourceDeploymentFailure",\r\n "message": "The resource operation completed with terminal provisioning state 'Failed'.",\r\n "details": [\r\n {\r\n "code": "CertificateImproperlyFormatted",\r\n "message": "The secret retrieved from https://pkrkvyeatfcs2q3.vault.azure.net/secrets/packerKeyVaultSecret/4h294bf7v61e4d4b8b854f0a462fac20 is empty string."\r\n }\r\n ]\r\n }\r\n}"}]
WinRM alternative
I can't use WinRM as the file I'm copying to Azure is abysmally slow and takes over 16hours to copy a 1.5GB file. The only other option I have is using SSH unless there's another workaround for this issue?
Thanks.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Issue
When using the "file" provisioner to copy a file to an Azure Windows VM packer fails to connect giving a CertificateImproperlyFormatted error. This happens even when an ssh username and password are provided.
Packer JSON file
Error Output
The following build log is output by packer:
==> azure-arm: 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":"Conflict","message":"{\r\n "status": "Failed",\r\n "error": {\r\n "code": "ResourceDeploymentFailure",\r\n "message": "The resource operation completed with terminal provisioning state 'Failed'.",\r\n "details": [\r\n {\r\n "code": "CertificateImproperlyFormatted",\r\n "message": "The secret retrieved from https://pkrkvyeatfcs2q3.vault.azure.net/secrets/packerKeyVaultSecret/4h294bf7v61e4d4b8b854f0a462fac20 is empty string."\r\n }\r\n ]\r\n }\r\n}"}]
==> azure-arm: Removing the created Deployment object: 'pkrdpyeatfcs2q3'
==> azure-arm: Removing the created Deployment object: 'kvpkrdpyeatfcs2q3'
==> azure-arm: ==> azure-arm: Cleanup requested, deleting resource group ...
==> azure-arm: Resource group has been deleted.
Build 'azure-arm' errored after 4 minutes 20 seconds: 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":"Conflict","message":"{\r\n "status": "Failed",\r\n "error": {\r\n "code": "ResourceDeploymentFailure",\r\n "message": "The resource operation completed with terminal provisioning state 'Failed'.",\r\n "details": [\r\n {\r\n "code": "CertificateImproperlyFormatted",\r\n "message": "The secret retrieved from https://pkrkvyeatfcs2q3.vault.azure.net/secrets/packerKeyVaultSecret/4h294bf7v61e4d4b8b854f0a462fac20 is empty string."\r\n }\r\n ]\r\n }\r\n}"}]
WinRM alternative
I can't use WinRM as the file I'm copying to Azure is abysmally slow and takes over 16hours to copy a 1.5GB file. The only other option I have is using SSH unless there's another workaround for this issue?
Thanks.
The text was updated successfully, but these errors were encountered: