Comments (15)
Same issue with latest ansible version
ansible [core 2.16.6]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.11/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] (/usr/bin/python3)
jinja version = 3.1.3
libyaml = True
from azure.
If I patch site-packages/azure/identity/_internal/utils.py
with self._additionally_allowed_tenants = additionally_allowed_tenants or ['*']
it works
It looks like that the tenant is not passed to the identity library, I don't find why
from azure.
@Poil I switched the version test and did not encounter the problem you mentioned, but according to the error log, I encountered an error when obtaining authorization. Could you please provide the version of 'azure-identity'?
from azure.
Hi,
I installed all the requirements from your requirements-azure.txt
of collection v2.3.0
$ pip freeze |grep identi
azure-identity==1.14.0
from azure.
You use 'az login' or credential files?
from azure.
Return value for local execution:
TASK [debug] ****************************************************************************************************
ok: [localhost] => {
"facts": {
"changed": false,
"failed": false,
"secrets": [
{
"attributes": {
"created": "2024-04-24T07:36:11+00:00",
"enabled": true,
"expires": "2030-03-04T04:05:06+00:00",
"not_before": "2000-01-02T01:02:03+00:00",
"recovery_level": "Recoverable+Purgeable",
"updated": "2024-04-24T07:36:11+00:00"
},
"content_type": "Content Type Secret",
"secret": "mysecret",
"sid": "xxxxxxxxxxxxxxxxxxx",
"tags": {
"delete": "on-exit",
"testing": "test"
},
"version": "543a295656dd42d1b394fb174d32c2f4"
}
]
}
}
from azure.
We passed the parameter
azure.azcollection.azure_rm_keyvaultsecret_info:
client_id: "{{ AZURE_CLIENT_ID }}"
secret: "{{ AZURE_SECRET }}"
subscription_id: "{{ AZURE_SUBSCRIPTION_ID }}"
tenant: "{{ AZURE_TENANT }}"
vault_uri: "{{ AZURE_KEYVAULT_URI }}"
name: "{{ item }}"
perhaps I'm wrong but it looks like keyvault module don't use the tenant_id passed if I grep in the python module, it looks like to be extracted from the kv url ? self.tenant_id = uri_path.split("/")[0] or None
from azure.
When using azure cli to auth it works
from azure.
I can git the secret through the parameters! It works!
from azure.
@Poil Are you use multi-tenant to authentication? is the tenant you configured in the parameters consistent with the tenant in you 'az account show'? According to the error, it is the case of tenant. Thank you !
from azure.
kindly ping!
from azure.
Hi,
Sorry I'm in holidays :)
We use a service principal, so not multi tenant
Regards
from azure.
@Poil I am testing locally, and only if you use the wrong tenant id will you encounter such an error, When you come back from your vacation, could you please check and confirm? Thank you!
from azure.
@Poil In addition, Do you manage resources under different subscription ids?
from azure.
@Poil What version of Azure. azcollection do you have installed? Thank you!
from azure.
Related Issues (20)
- Querying for image-versions fails on empty set. HOT 1
- restorable_dropped_database_id isn't a valid parameter for the azure_rm_sqldatabase module, but it is in the Examples. HOT 3
- Bind the DataProtection API for Azure Backups
- [azure_rm_storageblob] Doc should mention that public_access parameter should not be set for private access. HOT 3
- [azure_rm_common/azure_rm_virtualnetwork] CIDR_PATTERN fails on IPv6 Addresses
- azure_rm_postgresqlflexibleserver - Add Supported PostgreSQL Major Versions 14, 15 & 16
- `azure_rm_virtualmachinescaleset` Module not Updating VMSS tags HOT 3
- [azure_rm_publicipaddress] Add support for setting reverse_fqdn on public IPv4 addresses HOT 1
- Support for Data Collecion Rules / Data Collection Rule Associations HOT 1
- snapshot_info module HOT 1
- azure_rm_virtualmachineextension/azure_rm_virtualmachineextension_info support auto upgrade
- azure_rm_galleryimageversion_info throwing error when image definition does not exist or when image definition does not have image versions HOT 9
- azure_rm_manageddisk trying to modify creation_data when it should not HOT 1
- azure_rm_virtualmachine using "latest" as image version does not select actual latest version HOT 3
- azure_rm_virtualmachine_info - need Object ID - Type SystemAssigned HOT 2
- Virtual Network -- show usage HOT 3
- Azure ARC Connected Machines Information
- Inventory plugin collects `instanceview` but does not add to `hostvars` HOT 1
- Agent Pool should allow setting a Taint HOT 1
- vm_size instances not available for ARO HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure.