#Ansible with ANF

1 messages · Page 1 of 1 (latest)

tawdry summit
#

IHAC who is working on Ansible automation for ANF using the collection page (https://galaxy.ansible.com/ui/repo/published/netapp/azure/) that NetApp developed.
How do we proceed with this customer? Any resource for ansible I could reach out to or even ng groups?
The customer also opened a case with NetApp support only to be said this is on a community-based support model and could not help them any further. (https://smartsolvecm.netapp.com/ui/#/case/2010226711)

  1. We successfully created the volume from the same server instance using the Azure CLI.
  2. We could also create the volume using the Terraform NetApp modules and via the Azure console.
  3. We were using the same credentials in all of these tests.

Below is a summary of the issue:
Environment: RHEL 9.4 running on a Docker Desktop container. ansible core -> 2.15.13. python version -> 3.9.18. azure-cli -> 2.64.0. azure-cli-core -> 2.64.0. azure-cli-telemetry -> 1.1.0

We are trying to use the Ansible collection netapp.azure to manage Azure Netapp resources. I am trying to run the following Ansible module: - name: Create Azure NetApp volume for Windows
We have installed the following azure-mgmt requirements using pip3 install -r azure-requirements.txt:

The latest error we are getting is:
TASK [Create Azure NetApp volume for Windows]
An exception occurred during task execution. To see the full traceback, use -vvv. 'The error was: AttributeError: 'AzureRMAuth' object has no attribute 'azure_credentials'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1731007445.9463162-1902-67783145648901/AnsiballZ_azure_rm_netapp_volume.py", line 107, in get_mgmt_svc_client\nAttributeError: 'AzureRMAuth' object has no attribute 'azure_credentials'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Azure credentials are done using ‘az login’.