How can an application that is running in an Azure virtual machine and using user-assign identity retrieve a bearer token?

Experience Level: Senior
Tags: Azure CloudAzure Virtual Machines

Answer

It needs to call Azure Instance MetaData Service (IMDS) Endpoint which will return an access bearer token in the JSON response.
Related Azure Cloud job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.
Azure Virtual Machines
Azure Virtual Machines

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself
AZ-304 Microsoft Azure Architect Design Preparation
AZ-304 Microsoft Azure Architect Design Preparation

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself