GithubHelp home page GithubHelp logo

isabella232 / netappfiles-cli-crr-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/netappfiles-cli-crr-sample

0.0 0.0 0.0 30 KB

This project demonstrates how to use Azure CLI commands for Azure NetApp Files to deploy a Cross-Region Replication (CRR) for NFS 4.1 Volume.

License: MIT License

Shell 100.00%

netappfiles-cli-crr-sample's Introduction

page_type languages products description
sample
bash
azurecli
azure
azure-netapp-files
This project demonstrates how to use Azure CLI commands for Azure NetAppFiles to a Cross-Region Replication NFSv4.1 Volume.

Azure CLI NetAppFiles CRR Sample Script

This project demonstrates how to deploy a cross-region replication with enabled NFS 4.1 protocol volume using Azure CLI module and Azure NetApp Files SDK.

In this sample application we perform the following operations:

  • Creation

    • Primary NetApp account
      • Primary capacity pool
        • Primary NFS v3 volume
    • Secondary NetApp account
      • Secondary capacity pool
        • Secondary NFS v3 Data Replication volume with reference to the primary volume Resource ID
  • Authorize primary volume with secondary volume Resource ID

  • Clean up created resources (not enabled by default)

  • Deletion, the clean up process takes place (not enabled by default, please set the parameter SHOULD_CLEANUP to true if you want the clean up code to take a place),deleting all resources in the reverse order following the hierarchy otherwise we can't remove resources that have nested resources still live.

If you don't already have a Microsoft Azure subscription, you can get a FREE trial account here.

Prerequisites

  1. Azure Subscription.
  2. Subscription needs to have Azure NetApp Files resource provider registered. For more information, see Register for NetApp Resource Provider.
  3. Resource Group created
  4. Virtual Network with a delegated subnet to Microsoft.Netapp/volumes resource. For more information, please refer to Guidelines for Azure NetApp Files network planning
  5. Make sure Azure CLI is installed.
  6. Windows with WSL enabled (Windows Subsystem for Linux) or Linux to run the script. This was developed/tested on Ubuntu 18.04 LTS (bash version 4.4.20).
  7. Make sure jq package is installed before executing this script.

How the project is structured

The following table describes all files within this solution:

Folder FileName Description
src CreateANFCRR.sh Authenticates and executes all operations

How to run the script

  1. Clone it locally

    git clone https://github.com/Azure-Samples/netappfiles-cli-crr-sample.git
  2. Open a bash session and execute the following Run the script

    • Change folder to *netappfiles-cli-crr-sample\src*
    • Open CreateANFCRR.sh and edit all the parameters
    • Save and close
    • Run the following command
    ./CreateANFCRR.sh
    

    Sample output e2e execution

References

netappfiles-cli-crr-sample's People

Contributors

adelghabb avatar adelghabboun avatar microsoft-github-operations[bot] avatar microsoftopensource avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.