Skip to content

Storage Commands

Manage Azure Files NFS shared storage for VMs.

Overview

Storage commands create and manage Azure Files NFS storage accounts for sharing home directories and data across multiple VMs.

Available Commands

Quick Start

Create and Mount

# Create 100GB Premium storage
azlin storage create myteam-shared --size 100 --tier Premium

# Mount on VM
azlin storage mount vm myteam-shared --vm my-dev-vm

# Mount locally
azlin storage mount local myteam-shared --mount-point ~/azure-storage

Check Status

# Show storage usage
azlin storage status myteam-shared

# List all storage
azlin storage list

Cleanup

# Unmount from VM
azlin storage unmount myteam-shared --vm my-dev-vm

# Delete storage
azlin storage delete myteam-shared

Use Cases

Shared Team Storage

# Create shared storage
azlin storage create team-data --size 500 --tier Premium

# Mount on all team VMs
azlin batch command 'azlin storage mount vm team-data' --tag 'team=dev'

Persistent Data

# Mount on VM
azlin storage mount vm data-store --vm my-vm

# Data persists even if VM is deleted
azlin kill my-vm

# Remount on new VM
azlin new --name new-vm
azlin storage mount vm data-store --vm new-vm

See Also