Why Am I Seeing IOError: [Errno 2] No such file or directory: '/var/lib/awx/.azure/azureProfile.json' When Running Jobs With Azure Modules?

Solution Verified - Updated -

Issue

Tutorials surrounding the usage of azure_rm_* modules mention creating an Azure credential file manually (i.e.$HOME/.azure/credentials). However, creating a credentials file for Azure-based playbooks is only required for Ansible runs that are Ad-Hoc and do not run from Ansible Tower.

Environment

  • Ansible Tower

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content