Az Powershell Module Micorsoft Azure and O365 CLI tool
Commands:
1) Import Az Powershell Module
Import-Module Az OR
Install-Module -Name Az (Run as Administrator)2) Authentication
Connect-AzAccount
$credential = Get-CredentialAlternate Authentication Method
Connect-AzAccount -Credential $credential
Import-AzContext -Profile 'C:\Temp\Live Tokens\StolenToken.json'
Save-AzContext -Path C:\Temp\AzureAccessToken.json3) Account Information
List the current Azure contexts available
Get context details
List Subscriptions
Choose a subscription
Get the current user's role assignment
List all resources (TIP: This command will return the resources for which the user has at least the Reader role in Role-Based Access Control (RBAC).)
List all resource groups
List storage accounts
List all users in the tenant
List more information for a specific user in the tenant
4) Web Applications and SQL
List Azure App
List Azure Web App
List hostnames that he web app is hosted and used
List SQL Servers
Individual databases can be listed with information retrieved from the previous command
List SQL Firewall rules
List SQL Server AD Admins
5) Runbooks
List Azure Runbooks
Export a runbook
6) Virtual Machines
List VMs and get OS details
Run commands on VMs
7) Networking
List virtual networks
List public IP addresses assigned to virtual NICs
Get Azure ExpressRoute (VPN) Info
Get Azure VPN Info
8) Miscellaneous
Download a specific storage blob to read it
Last updated