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¶
- azlin storage create - Create new NFS storage account
- azlin storage list - List storage accounts
- azlin storage status - Show storage status and usage
- azlin storage mount - Mount storage on VM or locally
- azlin storage unmount - Unmount storage from VM
- azlin storage delete - Delete storage account
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¶
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
Related Commands¶
- azlin new - Create VMs with storage
- azlin batch - Mount storage on multiple VMs