Finally Ansible with azure.azcollection on VM

Get Started – Configure Ansible on an Azure VM | Microsoft Learn

ansible localhost -m azure.azcollection.azure_rm_resourcegroup -a "name=Rg-test-iac457 location=uksouth"
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | CHANGED => {
    "changed": true,
    "contains_resources": false,
    "state": {
        "id": "/subscriptions/A-LONG-STRING-YES-IT-IS/resourceGroups/Rg-test-iac457",
        "location": "uksouth",
        "name": "Rg-test-iac457",
        "provisioning_state": "Succeeded",
        "tags": {
            "Hello": "World"
        }
    }
}
Scroll to Top