Muokkaa

Jaa


How to use managed identities for Azure resources on an Azure VM with Azure SDKs

Managed identities for Azure resources is a feature of Microsoft Entra ID. Each of the Azure services that support managed identities for Azure resources are subject to their own timeline. Make sure you review the availability status of managed identities for your resource and known issues before you begin.

This article provides a list of SDK samples, which demonstrate use of their respective Azure SDK's support for managed identities for Azure resources.

Prerequisites

  • If you're not familiar with the managed identities for Azure resources feature, see this overview. If you don't have an Azure account, sign up for a free account before you continue.

Important

  • All sample code/script in this article assumes the client is running on a VM with managed identities for Azure resources enabled. Use the VM "Connect" feature in the Azure portal, to remotely connect to your VM. For details on enabling managed identities for Azure resources on a VM, see Configure managed identities for Azure resources on a VM using the Azure portal, or one of the variant articles (using PowerShell, CLI, a template, or an Azure SDK).

SDK code samples

SDK Code sample
.NET Deploy an Azure Resource Manager template from a Windows VM using managed identities for Azure resources
.NET Core Call Azure services from a Linux VM using managed identities for Azure resources
Go Azure identity client module for Go
Node.js Manage resources using managed identities for Azure resources
Python Use managed identities for Azure resources to authenticate simply from inside a VM
Ruby Manage resources from a VM with managed identities for Azure resources enabled

Next steps