diff --git a/lib/ansible/module_utils/azure_rm_common.py b/lib/ansible/module_utils/azure_rm_common.py index 2dec4fbd4d..78ba496d5a 100644 --- a/lib/ansible/module_utils/azure_rm_common.py +++ b/lib/ansible/module_utils/azure_rm_common.py @@ -567,7 +567,11 @@ class AzureRMModuleBase(object): resource_client = self.rm_client resource_client.providers.register(key) except Exception as exc: - self.fail("One-time registration of {0} failed - {1}".format(key, str(exc))) + self.log("One-time registration of {0} failed - {1}".format(key, str(exc))) + self.log("You might need to register {0} using an admin account".format(key)) + self.log(("To register a provider using the Python CLI: " + "https://docs.microsoft.com/azure/azure-resource-manager/" + "resource-manager-common-deployment-errors#noregisteredproviderfound")) @property def storage_client(self):