azure-notes

My Azure Notes

As a Microsoft Azure Software Engineer (previously Support Engineer), I put my daily working experience here, including common scenarios, sample code, and frequently asked questions.

Common

Invoke Azure REST API with curl

Invoke Azure REST API with PowerShell

Batch Update Azure Resources by calling Azure REST API with PowerShell

Azure CLI

Use Azure CLI behind a proxy

Azure Active Directory

Create Service Principal in Azure Portal and Assign Permissions

Use Azure CLI with Service Principal

Use PowerShell with Service Principal

Get Service Principal token with curl

Get AAD Token in PowerShell with AzureAD Module

Cloud Services

Delete Cloud Service Role Instance with PowerShell

Azure Cloud Serivce HTTPS Redirection and Canonical Host Name Redirection

Storage

Test AAD auth with Azure Storage locally

Use Azure Data Lake Storage Gen2 with AAD auth and REST in Python

Change Access Tier of All Blobs in a Container

Storage Explorer - Capture Fiddler trace

API Management

Azure API Management Common Policies

Virtual Machines

Azure Virtual Machine Common Scenario

App Service

Use Managed Identities in App Service with HTTP REST Protocol

CDN

Azure CDN Common Verizon Premium Rules Engine

Enable CORS on Azure CDN with Azure App Service