Run Command Feature
Exploiting Run Command Feature
Requirements: Contributor account/role access
The Run Command feature of Azure VMs is a platform feature used to run scripts on VMs remotely using the VM agent. It can be used to run PowerShell scripts on Windows VMs and shell scripts on Linux VMs. It is generally used by administrators or developers to quickly diagnose and remediate VM access and network issues and get the VM back to a good state.
Here is some information to keep in mind when exploiting this feature:
1) Azure Portal
2) Az Powershell module
3) Azure REST APIs
Last updated