Closed barrymac closed 7 years ago
@ansible ping, this issue is waiting for your response. click here for bot help
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible
Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.
Same issue in ansible 2.3.x @barrymac did you find a workaround?
I found a solution. By passing tenant to UserPassCredentials In azure_rm_common.py file, inside ansible/module_utils applied the patch like below,
line no 188,
self.azure_credentials = UserPassCredentials(self.credentials['ad_user'], self.credentials['password'])
change the above line like
self.azure_credentials = UserPassCredentials(self.credentials['ad_user'], self.credentials['password'], tenant=self.credentials['tenant'])
Then it's working fine.
This issue was migrated to https://github.com/ansible/ansible/issues/29446
ISSUE TYPE
COMPONENT NAME
azure_rm_resourcegroup
ANSIBLE VERSION
ansible 2.2.0.0 also tried with github pip install at this time
CONFIGURATION
OS / ENVIRONMENT
Linux
SUMMARY
Resource Group Creation fails due to 403 on existence check url
STEPS TO REPRODUCE
EXPECTED RESULTS
Expected resource group to be created
ACTUAL RESULTS