Using MSI with PowerShell in an Azure Function for AzureRM Commands
Here’s a quick tutorial for using MSI with PowerShell in an Azure function to call Login-AzureRMAccount. Note that Functions using PowerShell are in experimental so its not recommended for production use as the same SLA for Generally Available resources doesn’t reflect to preview/experimental resources. This allows you to not have to worry about creating a…
Automate the Creation of an Azure Function with an Event Grid Subscription in PowerShell
My colleague, Sangita Bhor, was recently working on a case where we needed to automate the deployment of an Azure Function and Event Grid Subscription. The difficulty here is that there isn’t an API from functions to get the web hook needed on the Event Grid Subscription side. The script below shows you how to…
Checking the Status of an Azure Web App Swap using PowerShell
This past week I was working with a customer who wanted to check the status of a swap with an Azure Web App using TFS. One option would be to use the Swap deployment task and the other would be to query the status using PowerShell. In order to do so we query the Activity…