`az vmss perform-maintenance --ids <VM instance resource ID>` performs maintenance on the entire VMSS
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
Specifying a Resource ID for a virtual machine (sub-resource) of a VMSS performs maintenance on the entire VMSS.
**Command Name**
`az vmss perform-maintenance`
**Errors:**
## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- _Put any pre-requisite steps here..._
- `az vmss perform-maintenance --ids {}` (for example `/subscriptions/{uuid}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myVMSS/virtualMachines/1`
## Expected Behavior
Either an error, or maintenance is only performed on virtual machine `1`
## Environment Summary
```
macOS-13.0.1-arm64-arm-64bit, Darwin 22.1.0
Python 3.10.8
Installer: HOMEBREW
azure-cli 2.42.0
Extensions:
aks-preview 0.5.75
Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1
```
## Additional Context
This was attempted as a workaround to https://github.com/Azure/azure-cli/issues/24791
Contributor guide
Assessment
This issue has not been assessed yet.