ERROR! couldn't resolve module/action 'azure_rm_resourcegroup'. This often indicates a misspelling, missing collection, or incorrect module path.

Tauqheer Ahmed 0 Reputation points
2024-03-24T08:19:34.5766667+00:00

Hi,

I run into the following error
ERROR! couldn't resolve module/action 'azure_rm_resourcegroup'. This often indicates a misspelling, missing collection, or incorrect module path.
When a run a basic ansible command to deploy a resourcegroup in BASH.


  • name: To automate the provisioning of cloud resources hosts: localhost connection: local tasks:
    • name: create resource group azure_rm_resourcegroup: name: test location: South India

When i check for the module:

ansible-galaxy collection install azure.azcollection

Starting galaxy collection install process

[WARNING]: Collection at '/usr/share/ansible/collections/ansible_collections/azure/azcollection' does not have a MANIFEST.json file, nor has it galaxy.yml: cannot detect version.

Nothing to do. All requested collections are already installed. If you want to reinstall them, consider using --force.

It does show that the package is available.
The CLI is default one and i have not installed anything extra.

Can this be looked into.
Thanks.

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

2 answers

Sort by: Most helpful
  1. Azar 18,290 Reputation points
    2024-03-24T08:33:47.3133333+00:00

    Hey there Tauqheer Ahmed

    Thats a good question and thanks for using QandA platform

    I have found a similar thread have a look at this

    https://github.com/MicrosoftDocs/azure-dev-docs/issues/1316

    https://stackoverflow.com/questions/66335800/error-couldnt-resolve-module-action-this-often-indicates-a-misspelling-miss

    If this helps kindly accept the answer thanks much.

    0 comments No comments

  2. Tauqheer Ahmed 0 Reputation points
    2024-03-24T08:42:58.77+00:00

    Have tried both of them already, None of them work.

    0 comments No comments