Recently Updated Pages
Get all content from all KeyVault
Show-AzureKeyVaultContent -All Resource: https://hausec.com/2020/01/31/attacking-azure-azure-ad...
Create a new user
New-AzureUser -Username 'test@test.com' -Password reallyAwesomePassword123!
MicroBurst
git clone git@github.com:NetSPI/MicroBurst.git cd MicroBurst pwsh-preview # Authenticate ...
SkyArk
git clone https://github.com/cyberark/SkyArk cd SkyArk pwsh-preview Import-Module .\SkyArk.ps1...
List all applications
az ad app list --output=table --query='[].{Name:displayName,URL:homepage}'
List all service principles
az ad sp list --output=table --query='[].{Name:displayName,Enabled:accountEnabled,URL:homepage,Pu...
List all groups
az ad group list --output=json --query='[].{Group:displayName,Description:description}' Resource...
View all VMSS in a subscription
Simply navigate to this page and use the magical Try it button to use the REST API to grab this i...
Get VMSS by name and associated resource group
az vmss list | jq '.[].name, .[].resourceGroup'
List vms in a VMSS
az vmss list-instances -n $VMSS_NAME -g $RESOURCE_GROUP Resource: https://docs.microsoft.com/en-...
Get computer name of vms in a VMSS
az vmss list-instances -n $VMSS_NAME -g $RESOURCE_GROUP | jq '.[].osProfile.computerName'
Run command in VM in a VMSS
This will run commands in the instance with an id of 0. See the above commands for how to get the...
Get all instance metadata
curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2020...
Get access token
curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/identity/oauth2/token?api...
Request storage account token
# Get OAuth Token TOKEN=$(curl -s "http://169.254.169.254/metadata/identity/oauth2/token?api-ver...
Get AKS node IP
curl -s -H Metadata:true "http://169.254.169.254/metadata/instance?api-version=2017-08-01" | jq -...
Create new role assignment
This will try to assign the assignee the owner role: az role assignment create --assignee <user ...
Show registered features in a table format
az feature list -o table
Find features associated w/ ContainerService
az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService')].{Name:name,Stat...
Active Directory Details
Active Directory components in Windows Server 2008 The range of Active Directory (AD) has expa...