Using Azure Managed identities

  Рет қаралды 15,027

dotnet

dotnet

3 жыл бұрын

Azure Managed Identity provide an identity for applications to use when connecting to resources.
In this episode, Varun joins Christos to show us how us how to use managed identity along with the Azure SDK for .NET.
[01:50] - What are managed identities?
[05:10] - Types of managed identities
[07:13] - Creating an identity in the portal (Demo)
[14:10] - Deploying your project
Useful Links
What are managed identities for Azure resources?
docs.microsoft.com/azure/acti...
Authenticate with the Azure SDK for .NET
docs.microsoft.com/dotnet/azu...
Azure for .NET Developers
docs.microsoft.com/en-us/dotn...
Azure SDK for .NET
github.com/Azure/azure-sdk-fo...
Get your questions answered on the Microsoft Q&A for .NET - aka.ms/dotnet-qa​
Learn .NET with free self-guided learning from Microsoft Learn: aka.ms/learndotnet
#DotNet

Пікірлер: 16
@BobWeberJr
@BobWeberJr 3 жыл бұрын
Great episode! Every minute was worth it, thanks!
@krzysztofabram6512
@krzysztofabram6512 2 жыл бұрын
Have an issue with "The request is not authorized to perform the operation." on 15:27. I tried all identity / permission possible variations to make it work and no success
@shamshad3971
@shamshad3971 2 жыл бұрын
Hi need the code which you used in this demo.
@redarismail5777
@redarismail5777 2 жыл бұрын
I am using CosmosDB Mongo API can I use this approach to clean my code from keys and connection string
@KunalMukherjee3701
@KunalMukherjee3701 2 жыл бұрын
Yeah Cosmos db supports managed identity
@redarismail5777
@redarismail5777 2 жыл бұрын
Can you please do a demo with Cosmos DB
@demikslanguages
@demikslanguages 2 жыл бұрын
Followed every step but doesn't work. Exact same code. It would work if I use the connection string instead of Identity's clientID. Do I need to activate something on my azure portal?
@chinmayshetye3
@chinmayshetye3 6 ай бұрын
He did a step Behind the scenes Where he assigned the managed identity to Target resource (Azure storage account)
@jayaraut
@jayaraut 3 ай бұрын
@@chinmayshetye3 Okay, I did the same. I made an app config and assigned app config data reader role to user defined identity then added this user defined identity to my app service. Now since my login in AD has the rights to contribute , shouldn't the connect via DefaultAzureCredential via user assigned client id shouldn't work? but this is giving me forbidden error.
@chinmayshetye3
@chinmayshetye3 3 ай бұрын
@@jayaraut Check if the DefaultAzureCredential is picking the credentials of the user you assigned role to
@jayaraut
@jayaraut 2 ай бұрын
@chinmayshetye3 ok I figured the same yesterday. I have to assign same set of roles to my user too as the managed identity to get it working locally. That worked! Though I haven't deployed the code yet on app service to check managed identity which I hope will work but it was working locally.
@chinmayshetye3
@chinmayshetye3 2 ай бұрын
@@jayaraut you can use your managed identity with DefaultAzureCredential object, you need to pass it as property while initialisation
@yaduwanshi
@yaduwanshi 3 жыл бұрын
User Managed Identity doesnt work
@yaduwanshi
@yaduwanshi 3 жыл бұрын
DefaultAzureCredential failed to retrieve a token from the included credentials. - EnvironmentCredential authentication unavailable. Environment variables are not fully configured. - ManagedIdentityCredential authentication unavailable. No Managed Identity endpoint found. - Process "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\Extensions\3fhsnrhg.f0v\TokenService\Microsoft.Asal.TokenService.exe" has failed with unexpected error: TS003: Error, Could not load file or assembly 'Microsoft.VisualStudio.Validation, Version=16.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040). - Stored credentials not found. Need to authenticate user in VSCode Azure Account. - Azure CLI not installed - PowerShell is not installed.
@adsharad5052
@adsharad5052 3 жыл бұрын
.net
Authentication for Serverless apps
17:01
dotnet
Рет қаралды 7 М.
Microsoft Azure Managed Identity Deep Dive
48:40
John Savill's Technical Training
Рет қаралды 77 М.
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 14 МЛН
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 33 МЛН
Managed Identity for AKS
16:27
Houssem Dellai
Рет қаралды 4,5 М.
Azure Automation and Managed Identities
12:41
Travis Roberts
Рет қаралды 17 М.
Managed Identities with Azure AD (Active Directory) Tutorial
31:54
Adam Marczak - Azure for Everyone
Рет қаралды 141 М.
Azure DevOps Workload Identity Federation with Azure Overview. NO MORE SECRETS!
21:56
John Savill's Technical Training
Рет қаралды 12 М.
Secretless apps with .NET and Azure Key Vault
18:25
dotnet
Рет қаралды 16 М.
Working with Azure AD B2C in ASP.NET
27:11
dotnet
Рет қаралды 17 М.
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 1,2 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 59 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 15 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 26 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,4 МЛН