How do I set audience for Ansible module azure.azcollection.azure_rm_networkinterface_info?

2022-06-03T13:35:02.233+00:00

I'm running against cloud_environment=AzureUSGovernment, and getting the following error:

Message: The access token has been obtained for wrong audience or resource 'https://management.azure.com'. It should exactly match with one of the allowed audiences 'https://management.core.usgovcloudapi.net/', 'https://management.core.usgovcloudapi.net', 'https://management.usgovcloudapi.net/', 'https://management.usgovcloudapi.net'.",

I have no idea how to set that audience or resource. I have the following entries in my credentials file (which works fine with azure_rm_keyvault_info):

              [default]
              subscription_id=$(ARM_SUBSCRIPTION_ID)
              client_id=$(ARM_CLIENT_ID)
              secret=$(ARM_CLIENT_SECRET)
              tenant=$(ARM_TENANT_ID)
              cloud_environment=AzureUSGovernment

Thanks,

-Jack

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,995 questions
0 comments No comments
{count} votes