diff --git a/lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py b/lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py index 04711a473f1..45454a9cb79 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py @@ -1090,7 +1090,7 @@ class AzureRMVirtualMachine(AzureRMModuleBase): self.image['offer'], self.image['sku']) except Exception as exc: - self.fail("Error fetching image {0} {1} {2} - {4}".format(self.image['publisher'], + self.fail("Error fetching image {0} {1} {2} - {3}".format(self.image['publisher'], self.image['offer'], self.image['sku'], str(exc)))