Open bikashkarmakar opened 3 years ago
@bikashkarmakar Thank you for submitting this question. What kind of credentials are you using? Currently, the azure_rm_keyvault module supports only az login. Can you confirm it? Thank you very much!
@bikashkarmakar Do you still have this problem? According to the error log, it is your side that has the problem. Is it your current account right? I didn't have any problems testing locally? Would you try again! Thank you very much!
Sorry for the late response , we are using service principal based in Ansible credentials.
@bikashkarmakar Are you still have this issue? This version you may be using is older. Can you update to the latest version to try? Because the new version gets the 'cloud_envronment' parameter to specify the cloud environment to work in. Thank you!
SUMMARY
Ansible AWX playbook with azure_rm_keyvault fails to create KeyVault in Azure China inspite of specifying cloud_environment.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
python version = 3.6.8 [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
STEPS TO REPRODUCE
EXPECTED RESULTS
Azure KeyVault is created in the resource group in Azure China subscription
ACTUAL RESULTS
The AWX job logs show that the"cloud_environment": "AzureCloud" and not AzureChinaCloud which is specified in the var file