Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

azure_rm_netapp_snapshot

Chris Archibald edited this page Mar 18, 2021 · 1 revision
orphan:

netapp.azure.azure_rm_netapp_snapshot -- Manage NetApp Azure Files Snapshot

Note

This plugin is part of the netapp.azure collection (version 21.3.0).

To install it use: ansible-galaxy collection install netapp.azure.

To use it in a playbook, specify: netapp.azure.azure_rm_netapp_snapshot.

.. versionadded:: 19.10.0 of netapp.azure

  • Create and delete NetApp Azure Snapshot.

The below requirements are needed on the host that executes this module.

  • python >= 2.7
  • azure >= 2.0.0
  • Python azure-mgmt. Install using 'pip install azure-mgmt'
  • Python azure-mgmt-netapp. Install using 'pip install azure-mgmt-netapp'
  • For authentication with Azure NetApp log in before you run your tasks or playbook with az login.
Parameter Choices/Defaults Comments
account_name
string / required
The name of the NetApp account.
location
string
Resource location.
Required for create.
name
string / required
The name of the snapshot.
pool_name
string / required
The name of the capacity pool.
resource_group
string / required
Name of the resource group.
state
string
    Choices:
  • absent
  • present ←
State present will check that the snapshot exists with the requested configuration.
State absent will delete the snapshot.
volume_name
string / required
The name of the volume.

Note

  • The modules prefixed with azure_rm_netapp are built to support the Cloud Volume Services for Azure NetApp Files.
.. seealso::

   `Sign in with Azure CLI <https://docs.microsoft.com/en-us/cli/azure/authenticate-azure-cli?view=azure-cli-latest>`_
       How to authenticate using the ``az login`` command.

- name: Create Azure NetApp Snapshot
  azure_rm_netapp_snapshot:
    resource_group: myResourceGroup
    account_name: tests-netapp
    pool_name: tests-pool
    volume_name: tests-volume2
    name: tests-snapshot
    location: eastus

- name: Delete Azure NetApp Snapshot
  azure_rm_netapp_snapshot:
    state: absent
    resource_group: myResourceGroup
    account_name: tests-netapp
    pool_name: tests-pool
    volume_name: tests-volume2
    name: tests-snapshot

Authors