How to use Azure Key Vault + .NET Core easily | Secrets, Keys and Certificates - English

Ғылым және технология

Hello my friend, in this video I show how we can save our ConnectionString from a .NET 5 web application in Azure Key Vault.
I hope you enjoy it 🙂.
Subscribe! 📺
Source🧾:
docs.microsoft.com/en-us/azur...
docs.microsoft.com/en-us/aspn...
You can also find me here:
📸: / josepontocruz
🐧 / josepontocruz
Thanks for Watching!!!!
Azure.Extensions.AspNetCore.Configuration.Secrets
#azure #keyvault #cloud #path #tutorial #english #dotnet #webapp

Пікірлер: 69

  • @Rajeshsingh-ws5th
    @Rajeshsingh-ws5th3 жыл бұрын

    why hard coded client secrets in json file or in code?? it will defeat the purpose of security .

  • @hpdev93
    @hpdev93 Жыл бұрын

    What's the benefit here, previously connection string was my secret thing in appsettings, but now the key vault 'Secret' is a that secret thing.

  • @adedayod-one7470
    @adedayod-one74702 жыл бұрын

    This was an excellent tutorial, just straight to the point with everything needed without meandering...Thank you Jose.

  • @MeinGoogleAccount

    @MeinGoogleAccount

    Жыл бұрын

    totally agree 🙂

  • @sgsvve
    @sgsvve4 ай бұрын

    Thank you. This is what I was looking for. Simple, step by step.... and working!

  • @OmarNg7X
    @OmarNg7X2 жыл бұрын

    Thanks Jose! I just had to do this for a Microservices project I'm working on. Great tutorial and very easy to follow!

  • @michaeldacar2288
    @michaeldacar22882 жыл бұрын

    Thank you! I've been trying to get that working for a week and this is the first one I could follow.

  • @harrietlawrie6533
    @harrietlawrie65334 ай бұрын

    Thank-you so much, I have been reading documentation all day trying to get this working on my app, your video helped so much!

  • @JR-zv7ws
    @JR-zv7ws2 жыл бұрын

    Thanks a lot mate, I was struggling with KeyVault because the docs are a bit outdated. Your video saved me.

  • @backslash17m
    @backslash17m2 жыл бұрын

    Very good video. I was doing this process accessing directly at the KeyVault API but as you show is simpler and faster to do it. Thank you Jose.

  • @joshvaughan3403
    @joshvaughan34033 жыл бұрын

    Great video, I found it much easier to understand thank other guides I watched!

  • @alexeyleuhin8019
    @alexeyleuhin80193 жыл бұрын

    You're really a cool teacher and i like your charisma too. Thx for video, helped me a lot.

  • @shekharkumar3049
    @shekharkumar30492 жыл бұрын

    Great explanation and concept coverage brother, keep up the good work. Thanks, Jose

  • @dileepc2700
    @dileepc2700 Жыл бұрын

    Thanks bro, this video really saved me, I spent more than 2 weeks just to set up the keyvault without visual studio credentials. Finally your video gave me the solution. Really thank you so much.

  • @countingcode4431
    @countingcode4431 Жыл бұрын

    Thanks Jose, loved the simplicity of explanation ❤❤❤❤

  • @rstbow
    @rstbow8 ай бұрын

    Spent a lot of time looking for the right answer, here it is. thanks!

  • @kanishkadas5907
    @kanishkadas59072 жыл бұрын

    This is the best video on Azure Key Vault usage. I subscribed to your channel. Please make more videos with examples. I appreciate you for your time and effort

  • @er.manojsingh7359
    @er.manojsingh73597 ай бұрын

    Great video Jose, easily you explained with example...Great thanks

  • @moondesyl6581
    @moondesyl65813 жыл бұрын

    Great & many thanks from France for the tutorial !

  • @DChristop
    @DChristop Жыл бұрын

    Σε ευχαριστώ πολύ για το εξαιρετικό σου βίντεο!!!

  • @user-jb9dd5pj6x
    @user-jb9dd5pj6x2 жыл бұрын

    Thanks. Your explanations are clear!

  • @Duelweb
    @Duelweb Жыл бұрын

    Very well explained, thank you!

  • @DavidWilkesNHSE
    @DavidWilkesNHSE Жыл бұрын

    This helped me SO much! Thank you!

  • @Ramblewithmme
    @Ramblewithmme Жыл бұрын

    Well explained, great tutorial

  • @Rasmusorum
    @Rasmusorum8 ай бұрын

    Thats a very genuine smile you have

  • @adarshsynergy6413
    @adarshsynergy64132 жыл бұрын

    very nice way to demonstrate azure key vault service really helpful thinking if I could follow the same method in azure function project

  • @octavioruizhernandez1433
    @octavioruizhernandez1433 Жыл бұрын

    Good tutorial, just the answer I need.

  • @AdhanMaldonado
    @AdhanMaldonado Жыл бұрын

    You helped me a lot...thank you so much. I have just subscribed to your channel.

  • @gagwithgaffer8385
    @gagwithgaffer8385 Жыл бұрын

    Great video. What has become apparent to me is that this approach (using client secrets) shoud only be used for a backend server, such as a microservice or any app that does not have any means to hit the public network or being accesible from the outside world, given we should not be storing any secrets in code/app setings for client facing apps. This solution fits my needs on this basis. Tested and working nicely. Thank you...

  • @charlesw.61

    @charlesw.61

    Жыл бұрын

    Exactly... if you have an application that's client-facing and the tenantId, clientId, etc., is being stored in an Azure Library then this solution/approach is somewhat incomplete.

  • @shrijeetshanil8120
    @shrijeetshanil81203 жыл бұрын

    Thanks Joes... This video helped a lot...

  • @reallogic0
    @reallogic0 Жыл бұрын

    very good and easy explanation

  • @MrNoeLeiva
    @MrNoeLeiva8 ай бұрын

    Great video!! Not sure I see how you specifically link your connection string to the DB context or whatever method you are using to connect to the azure database

  • @MrNoeLeiva

    @MrNoeLeiva

    8 ай бұрын

    do you have a git repo?

  • @ghanshyam014
    @ghanshyam01424 күн бұрын

    Well explained.

  • @rjpajaron
    @rjpajaron Жыл бұрын

    Subscribed!!!!

  • @pinoyrunningpenguin
    @pinoyrunningpenguin Жыл бұрын

    So if a developer tries to debug a C# code that reads the secret value then this will expose the secret right?

  • @GirishRajuS
    @GirishRajuS2 жыл бұрын

    Hi, Its a good demonstration on how to consume secretes from azure key vault into a dotnet application. But here I have question. What this that we achieved here. For an hacker, even if he or she able to access the application client ID and client secrete, will then be able to read the key vault. My question is, how is this approach will make sure, that hackers will not be able to access our secretes.?

  • @VincentYang024

    @VincentYang024

    2 жыл бұрын

    Absolutely agree, this would be considered as learning azk tutorial, not practical usage

  • @debasisdakhinaray3437

    @debasisdakhinaray3437

    Жыл бұрын

    In this case we can go for DefaultAzureCredential approach

  • @90chiellini
    @90chiellini6 ай бұрын

    Thanks bro!

  • @S_Karthik
    @S_Karthik Жыл бұрын

    Thanks was the on;ly video helpful . i got stuck at the last permission part this video helped me

  • @jemschaudhary5922
    @jemschaudhary59228 ай бұрын

    Great video, thanks! One question - For dotnet 6.0 (have program.cs only, not startup.cs), what changes are required here where it calls for config.json keys? (example "defaultConenction" for conenctionString) How can I get azure key vault connectionString here: builder.Services.AddDbContext(options => options.UseMySQL(builder.Configuration.GetConnectionString("DefaultConnection"))); Any suggestions? Thanks :-)

  • @nachidude123
    @nachidude1232 жыл бұрын

    Nice tutorial, could you please upload a video, to authenticate the application thru certificate under key vault?

  • @vibhasinghyadav8837
    @vibhasinghyadav88372 жыл бұрын

    Helpfull 😄

  • @jamesbest2221
    @jamesbest22213 жыл бұрын

    Thank you!

  • @amirsaleem4935
    @amirsaleem4935 Жыл бұрын

    how the visual studio getting the connection string. I understand it is ocming form Azure key secret but in the prgome which code is saying this is the connection string that need to be used?

  • @er.manojsingh7359
    @er.manojsingh73597 ай бұрын

    Please upload one video for Active Directory Authentication as well with an example.

  • @ncvman
    @ncvman2 жыл бұрын

    Hello sir. What is easier key vault key, secrets, cert or using managed identity to authenticate to an app to sql?

  • @pradeepjuyal2475
    @pradeepjuyal24752 жыл бұрын

    can you explain how to manage different environment(dev,test,qa,production) connection string using keyvault and webapp

  • @alxevg
    @alxevg Жыл бұрын

    It is unclear how the mapping is happening between KV keyGroup--key_1 and ConfigGroup:Key_1, is there a default naming convention/behaviour?

  • @deeparaj83
    @deeparaj832 жыл бұрын

    How to get the secret with managed identity ? any samples

  • @rodrigo6459
    @rodrigo6459 Жыл бұрын

    Any chance for an update on Core 6?... since Program.cs + Startup.cs combo are no longer a thing! :(

  • @trendyanime5307
    @trendyanime5307 Жыл бұрын

    Hi Jose can you please help me, it is not accessing the connectionstring it is throwing error the error is: Microsoft.Data.SqlClient.SqlException: 'A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)'

  • @jcrival
    @jcrival3 жыл бұрын

    Hi do you have the source code and DB to test? thanks

  • @lieslies9521
    @lieslies95214 ай бұрын

    Hi , how to integrate hashicorp vault in .net core and moving keyvaultname to appsetings thanks in advance

  • @harishkommuri5350
    @harishkommuri53503 жыл бұрын

    Hi, Thanks for the video, I clearly Understood, could you make a video how to make configurable TenentId, SecretId, Valut URL rather than storing in App.config file...

  • @mileshannahlane72

    @mileshannahlane72

    3 жыл бұрын

    Thanks for great video Jose. I would also love a video of configurable TenentId, SecretId, Valut URL

  • @dotnet8925
    @dotnet8925 Жыл бұрын

    Providing code would have been much better idea. Is this visual studio 2022?

  • @mfayeeg
    @mfayeeg Жыл бұрын

    I do not see mentioning "Secret key/name" anywhere in the config. Is it because you had only one secret you were able to retrieve it without referring the secret name?

  • @RAM-ff8dy

    @RAM-ff8dy

    Жыл бұрын

    I had the same doubt..

  • @osmanhawlader9584
    @osmanhawlader95848 ай бұрын

    Hi Jose great video! Could you please share the source code?

  • @conaxlearn8566
    @conaxlearn85662 жыл бұрын

    Strangely as of now, Microsoft is still updating Microsoft.Extensions.Configuration.AzureKeyVault. Last publish was on Dec 15, 2021. And last publish for Azure.Extensions.AspNetCore.Configuration.Secrets was on May 19, 2021.

  • @kavacham222
    @kavacham222Ай бұрын

    Need kubernetes interview questions..

  • @erickgordillo4786
    @erickgordillo4786 Жыл бұрын

    tutorial for net framework ?

  • @primaryhealthcarecorporati4333
    @primaryhealthcarecorporati4333 Жыл бұрын

    Good Tutorial, but please avoid annoying music

  • @aravindsekar6284
    @aravindsekar6284 Жыл бұрын

    Everything is good except the background music.

  • @sunilanthony17
    @sunilanthony173 ай бұрын

    This defeats the purpose of storing your secret on Azure. Anyone can run your application.

  • @podeig
    @podeig7 ай бұрын

    Very useful, thank you :)

Келесі