vscode-ansible
vscode-ansible copied to clipboard
Microsoft collections (microsoft.ad / microsoft.iis) modules recognized by ansible-doc but not by VSCode extension
Summary
Hello,
I'm encountering an issue with the VSCode Ansible extension.
The microsoft.ad and microsoft.iis collections are correctly installed on my system and fully recognized by ansible-doc. For example:
ansible-doc microsoft.ad.user ansible-doc microsoft.iis.website
These commands return the expected documentation, meaning Ansible is able to locate and parse the modules correctly.
However, in VSCode, the Red Hat Ansible extension does not provide: - syntax highlighting, - module validation, - auto-completion, or hover documentation for these modules. It works perfectly fine for all other collections, including community and certified ones.
What I've verified: Collections are installed in the same Python environment used by VSCode FQCNs are used (microsoft.ad.user, microsoft.iis.website) ansible-lint and ansible are configured and work from the terminal inside VSCode ansible-doc works for the modules in question Extension settings are properly configured (ansible.useFullyQualifiedCollectionNames is set to true)
Request: Can support be added (or improved) for Microsoft collections such as microsoft.ad and microsoft.iis in the VSCode Ansible extension?
Thanks in advance for your support!
Extension version
redhat.ansible: 25.4.0
VS Code version
1.100.3
Ansible Version
$ansible --version
ansible [core 2.18.5]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.local/lib/python3.12/site-packages/ansible
ansible collection location = /data/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.12.10 (main, May 9 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/usr/bin/python3)
jinja version = 3.1.6
libyaml = True
OS / Environment
Windows 10
Relevant log output