From the course: Microsoft Azure Solutions Architect Expert (AZ-305) Cert Prep by Microsoft Press

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Using managed identities

Using managed identities

- [Instructor] In the last lesson, we looked at how we could more securely store secrets when connecting to things like storage accounts or databases by storing that key within a key vault, granting access to the key vault to the principle that's running it, so in this case it was a virtual machine, but it could quite easily be a web app, and then programmatically extracting that code from the key vault rather than embedding the code within our application itself. In this lesson, I want to show you another way where we don't even use any keys whatsoever, and that's instead using something called managed identities. So again, like in the previous lesson, I'm running some code here from a virtual machine that's running in Azure, which means I can use that virtual machine for granting access. Now, virtual machines and web apps don't always have identities set up. So to use this, you need to make sure that in your web…

Contents