How do I set audience for Ansible module azure.azcollection.azure_rm_networkinterface_info?
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