Introduction
Azure shared disk cannot be attached to multiple VMs when cluster awareness not configured. This guide provides step-by-step diagnosis and resolution.
Symptoms
Typical error output:
Error: Azure operation failed
Check Azure portal for detailed error message
az resource show --resource-group <rg> --name <name>Common Causes
- 1.Resource configuration mismatch
- 2.Azure subscription quota or policy limitations
- 3.Network connectivity or firewall restrictions
- 4.Missing permissions or RBAC assignments
Step-by-Step Fix
Step 1: Check Current State
az resource show --resource-group <resource-group> --name <name> --resource-type <type>
az monitor activity-log list --resource-group <rg> --caller <caller>
az network diagnostic-settings show --resource <resource-id>Step 2: Identify Root Cause
az monitor activity-log list --resource-group MyRG --status FailedStep 3: Apply Primary Fix
```bash # Primary Azure CLI fix az resource update --resource-group MyRG --name MyResource --set properties.<property>=<value>
# Verify the change az resource show --resource-group MyRG --name MyResource ```
Step 4: Apply Alternative Fix
```bash # Alternative fix: Check configuration az resource show --resource-group MyRG --name MyResource -o yaml
# Update specific properties az resource update --resource-group MyRG --name MyResource --set properties.<key>=<value>
# Verify the fix az resource show --resource-group MyRG --name MyResource --query properties.<key> ```
Step 5: Verify the Fix
az resource show --resource-group MyRG --name MyResource
az monitor activity-log list --resource-group MyRG --status SucceededCommon Pitfalls
- Forgetting to check quota limits before resize operations
- Not waiting for async operations to complete before next step
- Missing RBAC permissions for Azure resource operations
- Confusing subscription-level and resource-level quotas
Best Practices
- Always check quota before provisioning new resources
- Use Azure Resource Health for monitoring
- Implement proper error handling in Azure CLI scripts
- Enable diagnostic settings for all critical resources
Related Issues
- Azure Subscription Quota Exceeded
- Azure Resource Deployment Failed
- Azure Network Connectivity Issues
- Azure RBAC Permission Denied