How to Leverage Managed Identity for Azure VM Run Commands

Gijs Reijn
6 min readMar 10, 2024
Microsoft Learn

In my previous article, when playing around with Set-AzVMRunCommand in Azure, I was using the SAS token URI to download and return content to an Azure Storage Account.

While SAS token URIs deserves its place, Managed Identities eliminates the need to rotate tokens, and enhances the security aspect since it does not expose credentials or tokens.

--

--

Gijs Reijn

Azure DevOps | Azure | Automation | PowerShell Just doing my thing and writing about it