Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticating to Azure using Azure usernamd and password fails #1408

Closed
kmj251 opened this issue Jan 17, 2024 · 2 comments · Fixed by #1409
Closed

Authenticating to Azure using Azure usernamd and password fails #1408

kmj251 opened this issue Jan 17, 2024 · 2 comments · Fixed by #1409
Labels
bug Something isn't working has_pr PR fixes have been made high_priority High priority

Comments

@kmj251
Copy link
Contributor

kmj251 commented Jan 17, 2024

SUMMARY

"UsernamePasswordCredential.get_token failed: Authentication failed: AADSTS900144: The request body must contain the following parameter: 'client_id'

ISSUE TYPE
  • Bug Report
COMPONENT NAME

azure_rm_common.py

ANSIBLE VERSION
ansible [core 2.15.8]
COLLECTION VERSION
azure.azcollection     2.1.1
CONFIGURATION
CONFIG_FILE() = None
PAGER(env: PAGER) = cat%  
OS / ENVIRONMENT
STEPS TO REPRODUCE

Set environment variables AZURE_AD_USER, AZURE_PASSWORD, AZURE_SUBSCRIPTION_ID

---
- name: "Azure Get Subscription Info test"
  hosts: localhost
  connection: local

  tasks:
    - name: "Get Newly Created Azure Subscription Info"
      azure.azcollection.azure_rm_subscription_info:
        id: "<subscription_id>"
      register: sub_info_output
EXPECTED RESULTS

Playbook doesn't error with missing client_id missing in payload error.

ACTUAL RESULTS

Module fails with "UsernamePasswordCredential.get_token failed: Authentication failed: AADSTS900144: The request body must contain the following parameter: 'client_id'..."

"UsernamePasswordCredential.get_token failed: Authentication failed: AADSTS900144: The request body must contain the following parameter: 'client_id'..."
kmj251 added a commit to kmj251/azure that referenced this issue Jan 17, 2024
@Fred-sun Fred-sun added has_pr PR fixes have been made medium_priority Medium priority bug Something isn't working labels Jan 17, 2024
@kmj251
Copy link
Contributor Author

kmj251 commented Jan 17, 2024

@Fred-sun Would you consider making this a priority and releasing a bug release version soon? We use AWX to run playbooks and this bug is causing many of our playbooks to fail. Thanks for your consideration!

@Fred-sun
Copy link
Collaborator

@kmj251 Ok, I'm pushing on this! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has_pr PR fixes have been made high_priority High priority
Projects
None yet
2 participants