This repo contains things that I like or find useful, offered up with absolutely zero guarantee that it will work for anyone else
- Use
az extension addwith the latest release
az ad app list-mine: List only the applications you own- Use
az ad app list --show-mine
- Use
az ad sp create-for-ralph: Create a service principal and store the password in Key Vault (thread)az ad sp credential list --keyvault: List a service principal's credentials. Retreive password values from Key Vaultaz ad sp list-mine: List only the service principals you own. Optionally filter by expiration- Use
az ad sp list --show-mine
- Use
az shell ssh: Launch Azure Cloud Shell from your terminal via azssh
az functionapp keys list: List the host keys for an Azure Function Appaz functionapp function keys list: List the keys for a specific Azure Function
az aks grant-access: Quickly allow your AKS cluster to access Azure Container Registry or other Azure resources
az browse: Interactively browse your Azure Resources via azbrowse
Use az monitor log-analytics workspace *
az loganalytics workspace createaz loganalytics workspace deleteaz loganalytics workspace showaz loganalytics workspace updateaz loganalytics workspace keys list
Set an expiration time when creating a resource or resource group, and it will automatically be deleted when the time's up.
az group create -n myRG -l eastus --self-destruct 1haz * create --self-destruct: Global argument that enables automatic deletion. You can specify self-destruct dates like 1d, 6h, 2h30m, 30m, etcaz self-destruct arm: Enable automatic deletion on a resource that already existsaz self-destruct disarm: Disable automatic deletion for a resourceaz self-destruct list: List items that are scheduled for deletion
The following commands enable Self-Destruct Mode with a predefined Service Principal (pre-0.16 default behavior)
az self-destruct configure
az group create -n myRG -l eastus --self-destruct 1haz * create --self-destruct --self-destruct-sp: Global argument that enables automatic deletion. You can specify self-destruct dates like 1d, 6h, 2h30m, 30m, etcaz self-destruct arm --sp: Enable automatic deletion on a resource that already existsaz self-destruct configure: One-time configuration
az vm auto-shutdown enableaz vm auto-shutdown disableaz vm auto-shutdown show
# one-time configuration
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
azdev setup -r . -e noelbundick