Title here
Summary here
az rest -m <method> -u <URI> --body <body>
where:
delete
, get
, head
, options
, patch
, post
, put
.# Windows Server
az vm image list --location westeurope --offer WindowsServer --output table
# RHEL
az vm image list --location westeurope --offer RHEL --all --output table |grep RedHat:RHEL # to filter out useless images
Invoke-AzVMRunCommand -Name 'my-vm' -ResourceGroupName 'my-rg' -CommandId 'RunPowerShellScript' -ScriptString { Add-LocalGroupMember -Group Administrators -Member "MY-AD\kasper" }