Ansible AWX credential type is not setting environment variables.

I am using ansible AWX with git source as project.
The credential type I created to set up the environment variables for dynamic inventory that uses the plug in is not setting up the environment variables.

More details here in the stackoverflow post

Appreciate any help. Don’t know if I am missing anything here.

Reposting my answer on StackOverflow here:

Why are you not using the built-in Microsoft Azure Resource Manager Credential?

But specifically, your error seems to be due to the fact that the azure_rm inventory plugin is not validating your inventories/development/hosts.yml. As stated in the azure_rm_inventory synopsis:

Thank you for the answer Philip, I totally missed the synopsis, your answer was super helpful. It solved my problem.

I am not using the Azure Resource Manager because a lot of inventory definition is maintained as code and those developers don’t have access to AWX instance.
The number of Azure subscriptions managed is over 300 and increasing.

Using this approach my goal is to be able to access many subscriptions using the same service principal stored in AWX that gets inject into the dynamic inventory.

Thank you for your answer.

As far as I understand it, there’s no incompatibility here. Even though the built-in credential type requires a subscription id, that doesn’t stop you from accessing many subscriptions. That just depends on how you set up the Service Principle in Azure, right? Your custom credential type supplies a subscription id too, so I don’t see any difference between using your custom one and the built-in one. Your issue has more to do with the inventory plugin config side of things. But as long as you are happy with how it’s working now, no worries, and glad I could help.