Connect .Net Core to Azure Key Vault in Ten Minutes

  Рет қаралды 59,940

Rahul Nath

Rahul Nath

Күн бұрын

Пікірлер: 78
@VinayKumar-qu1eg
@VinayKumar-qu1eg 4 жыл бұрын
You have covered at least 16 hrs of billable effort in under 11 minutes. Great pace and more importantly quality content & thanks. I'm here after Scott Hanselman's tweet.
@RahulNath
@RahulNath 4 жыл бұрын
Glad you liked it!
@nitinmistry6280
@nitinmistry6280 2 жыл бұрын
I love the pace. It's short and to the point. Exactly what I needed to share with my team. Thank you Rahul!!
@RahulNath
@RahulNath 2 жыл бұрын
Great to know that Nitin. You and team will like the full series here bit.ly/asp-net-core-series
@adaamit
@adaamit 2 жыл бұрын
Thank you Rahul, You are just producing what is needed for a developer, crisp, precise and to the point, saving many hours of R&D and efforts, God bless you.
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Amit! Glad the videos are helpful.
@velomaayo9424
@velomaayo9424 2 жыл бұрын
Simply Awesome bro....Love from India.......
@RahulNath
@RahulNath 2 жыл бұрын
Thanks a ton Velo. Hope you are enjoying the ASP Series bit.ly/asp-net-core-series
@HimanshuMishra1189
@HimanshuMishra1189 2 жыл бұрын
Nice Rahul, Thanks for posting on AKV. keep the good work and posting of these tricky videos.
@RahulNath
@RahulNath 2 жыл бұрын
Thank you, I will. You can check my popular series here bio.link/rahulpnath
@rishukumar7586
@rishukumar7586 2 жыл бұрын
i don't know how i should thank you for uploading such a quality content ..lots of love from my side ..
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Rishu for this lovely comment. You've made my day. Glad you liked the video, do check out the full ASP Series bit.ly/asp-net-core-series And don't forget to leave such encouraging comments if you like them 🤩
@holivieri
@holivieri 2 жыл бұрын
Great video, what's the best option to work with different environment? Let's say we have a connection string for Testing, another one for UAT and another one for Production.
@RahulNath
@RahulNath 2 жыл бұрын
Thank you! here are different ways you could manage the configuration www.rahulpnath.com/blog/handling-application-configuration/ Let me know if that answers your question or if you need more info.
@anowereng
@anowereng 2 жыл бұрын
you are always top of my search query . thanks rahul .
@RahulNath
@RahulNath 2 жыл бұрын
Glad to hear that Anower!!
@venky76v
@venky76v 3 жыл бұрын
Brilliant Rahul, you have explained it all so nicely. thanks really appreciate it
@RahulNath
@RahulNath 3 жыл бұрын
Thank you Venky! Do check out the full series here bit.ly/asp-net-core-series I am sure you will like it. Do let me know in case you get to watch it. 😀
@venky76v
@venky76v 3 жыл бұрын
@@RahulNath Sure, it is on my list. Like the way you explain concepts so nicely and the videos are paced correctly. Really appreciate all the effort and time you spend to produce such wonderful content
@RahulNath
@RahulNath 3 жыл бұрын
@@venky76v Happy to hear that 😀
@dotnet8925
@dotnet8925 11 ай бұрын
can you write a unit test case for keyvault?
@dandoescode
@dandoescode 3 жыл бұрын
I've you were using managed identities to access the storage account, couldn't you get remove the dependency on Key Vault altogether?
@RahulNath
@RahulNath 3 жыл бұрын
Ah yes if you were using Managed Identities yes for storage account you can remove. This was more an example to show Key Vault and it's integration, but well pointed out!
@banam3540
@banam3540 2 жыл бұрын
Excellent, Very straight forward and easy to understand
@RahulNath
@RahulNath 2 жыл бұрын
Glad you like it! Do check out the full ASP NET Series here bit.ly/asp-net-core-series
@androidsavior
@androidsavior 8 ай бұрын
please share the code. I did not understand how Azure authorized your app for the key-vault itself and gave you access to the keys ?!!
@androidsavior
@androidsavior 8 ай бұрын
is that done by just using the valut domain ?! -- should i give the vault a GUID name for better security ?
@mystiqkc
@mystiqkc 3 жыл бұрын
Excellent video! Thanks
@RahulNath
@RahulNath 3 жыл бұрын
Glad you liked it!
@iambhanu7
@iambhanu7 3 жыл бұрын
Won't using Polly this way cause the key-vault configuration to be reloaded from keyvault EVERY time there is a failure in sending message to queue ? I understand this may be set up like this just for illustration purpose, but I wonder what are the best practices for dealing with such issues.
@RahulNath
@RahulNath 3 жыл бұрын
Thank you for the comment Bhanu. It will retry to Key Vault only when there is an error with the key already fetched. Isn't that what we want in our applications? What problem do you see? It will refresh from key vault only when it finds an unauthorized exception.
@deepakbasruru1215
@deepakbasruru1215 4 жыл бұрын
Can you please make more videos on .Net core web API like Authentication and Authorization (Token based authentication and provide access to web API method basis on token) Middleware Dependency injection etc.. It helps lot.
@RahulNath
@RahulNath 4 жыл бұрын
Thanks for the ideas and suggestions Deepak. There are a few videos around Roles and Auth. Here are the links in case you missed it kzbin.info/www/bejne/fofVpnWNqrChj9k kzbin.info/www/bejne/fIXTcpqJfcuobtE I have planned out a few videos around Authentication and Authorization. Was there anything in particular that you wanted to be covered? Will also look into the other areas that you have mentioned. Thanks again for thesuggestions and keep them coming!
@deepakbasruru1215
@deepakbasruru1215 4 жыл бұрын
@@RahulNath Thanks Rahul.. Above mentioned videos are much useful. And regarding authentication and authorization, I have a scenario, say I have a web app(lets assume it is angular app) in which user will login with his credential, Once he enters the credential we need to check authentication and get token from Azure AD side ( In angular we adal service). Once we get Token we are using this token to get data from web API, where authorization need to implement on api methods based on token roles or policy. Please can you please explain this with very starting basic things like registering user, assigning roles.. etc? Thank you..
@RahulNath
@RahulNath 4 жыл бұрын
@@deepakbasruru1215 Thank you for the detailed comment. Sure will make a video on these scenarios sometime soon!
@rukminiverlekar761
@rukminiverlekar761 3 жыл бұрын
Polly is Open Source. Any alternative for handling this?
@RahulNath
@RahulNath 3 жыл бұрын
Sorry, what is the problem with Polly and it being Open Source? There is an official extension package as well from Microsoft - docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/implement-http-call-retries-exponential-backoff-polly And.NET is also open-source - dotnet.microsoft.com/platform/open-source
@skannan74
@skannan74 3 жыл бұрын
Hi Rahul, I have my aspnet core application that pulls the connection string from KeyVault using Manage Identity. Currently the application is running in Azure App Service. Now i want to move this application to AKS. Will the application still works? Or i have to explore pod identity ?
@RahulNath
@RahulNath 3 жыл бұрын
Unfortunately I haven't used this from AKS so can't help you there much. Hope you found a solution !
@vikasviswan2892
@vikasviswan2892 4 жыл бұрын
Happy to see your videos, The series on Azure Vault looks really impressive. I am exploring more of your videos. Could you please give an overall picture in the beginning like some diagram or explain in words the approach that we are going to have.
@RahulNath
@RahulNath 4 жыл бұрын
Happy that you like the videos and finding it useful. Awesome feedback! - I will try and incorporate it in my future videos, to give a more structured introduction!
@YadavTechs
@YadavTechs 3 жыл бұрын
I followed the same steps that you mentioned but I am getting the error to get the token : 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.
@RahulNath
@RahulNath 3 жыл бұрын
Is this on your local machine or on deployed app? Here are a few follow up posts to understand this better www.rahulpnath.com/blog/defaultazurecredential-from-azure-sdk/ www.rahulpnath.com/blog/azure-managed-service-identity-and-local-development/ Suggest going through the video again and make sure you have got all the settings correct
@YadavTechs
@YadavTechs 3 жыл бұрын
@@RahulNath actually that error was on my local system but luckily I got the solution of the problem but it's not a proper solution so I have to explore it more closely. Temp solution - I had login into my IDE VS with my azure account so now it has authenticated to access keyvault and run Successfully but when I deploy it on app services it gets failed. I hope you understand the problem.
@RahulNath
@RahulNath 3 жыл бұрын
​@@YadavTechs For local environments it is expected to log into Visual Studio to authenticate (or use other local mechanisms) as I specify in the post www.rahulpnath.com/blog/azure-managed-service-identity-and-local-development/ Once deployed to Azure, you need to enable managed identity and assign the connection. Hope you are doing these steps as I show in the video? You might have to restart the app
@rukminiverlekar761
@rukminiverlekar761 3 жыл бұрын
I am getting AKV10032 invalid issuer. Keyvaault exception here ☹️
@RahulNath
@RahulNath 3 жыл бұрын
Is it a cross tenant issue? Is the key vault and the ad on the same tenant? github.com/Azure/azure-cli/issues/11871
@rukminiverlekar761
@rukminiverlekar761 3 жыл бұрын
@@RahulNath they are not on same tenant
@RahulNath
@RahulNath 3 жыл бұрын
@@rukminiverlekar761 So likely you are running into the issue in the link above
@annupriya0304
@annupriya0304 3 жыл бұрын
trying the same solution getting build errors
@RahulNath
@RahulNath 3 жыл бұрын
What errors are you getting ? I’ll try and check the source if some packages have updated . Also check out the associated blog post in case it helps www.rahulpnath.com/blog/connect-net-core-to-azure-key-vault-in-ten-minutes/
@annupriya0304
@annupriya0304 3 жыл бұрын
@@RahulNath Could u share the git repo for the same
@annupriya0304
@annupriya0304 3 жыл бұрын
@@RahulNath By d way code worked after refering the blog. thanks :)
@RahulNath
@RahulNath 3 жыл бұрын
@@annupriya0304 Cool great to hear that . What was the problem ?
@TomaHawk00HouseMusic
@TomaHawk00HouseMusic 3 жыл бұрын
Cheers my man! One big love 4u
@RahulNath
@RahulNath 3 жыл бұрын
Thank you 😍 Do check out the full series here. I am sure you will like them kzbin.info/aero/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
@mesh475
@mesh475 3 жыл бұрын
Great vid bruv
@RahulNath
@RahulNath 3 жыл бұрын
Thank you 😀
@jayakumar2927
@jayakumar2927 11 ай бұрын
Which is link ?
@RahulNath
@RahulNath 11 ай бұрын
Sorry didn't understand the question?
@11504104067
@11504104067 4 жыл бұрын
It helped me to understand my environment :)
@RahulNath
@RahulNath 4 жыл бұрын
Thanks Rakesh for letting know!
@manishksohni
@manishksohni 3 жыл бұрын
Excellent Video.
@RahulNath
@RahulNath 3 жыл бұрын
Thank you very much, Manish!
@allmhuran
@allmhuran 2 жыл бұрын
This is a great video. Unfortunately microsoft has some kind of mental illness which causes them to keep changing even the most basic elements of application development, like the correct way to set up configuration and logging. And of course this means in newer .net the whole "CreateHostBuilder" dependency injection monster has been modified YET AGAIN, making this excellent video practically obsolete. Thanks again, microsoft.
@RahulNath
@RahulNath 2 жыл бұрын
I am not sure if much has changed with the new way. I guess the registrations have moved places a bit, but over all it still holds. I will check and see if I can do an updated video! Thank you for pointing it out here.
@DenzilNBrown
@DenzilNBrown 4 жыл бұрын
I think this is a good video but if you're new to this it's hard to follow as the video flips by so fast with no time to digest what's being said and what's being shown. If you already have some background I think you might find it ok so I guess the audience for this video is more advanced or knowledgeable users with some prior knowledge looking for more clarity.
@RahulNath
@RahulNath 4 жыл бұрын
Thank you Denzil for your feedback. Yes looking back I guess this video is a bit fast paced. Were there any areas that you found it hard to follow or needs more clarification. I have an associated blog post for this here if that helps www.rahulpnath.com/blog/azure-sql-server-managed-identity/
@alekseiprokopov1716
@alekseiprokopov1716 2 жыл бұрын
So you need a SECRET KEY to get SECRET KEY :)
@RahulNath
@RahulNath 2 жыл бұрын
That’s why it’s best to use this along with Managed Identity - www.rahulpnath.com/blog/defaultazurecredential-from-azure-sdk/
@clashclan4739
@clashclan4739 2 жыл бұрын
too fast bro, is it because to complete in 10 mins. pls don't do that take as much time needed. usually your videos give in-depth that is more valuable
@RahulNath
@RahulNath 2 жыл бұрын
I just pointed you here in the other comment 🙂Any specific areas you want me to clarify? What specific use case are you trying to solve for? I can do a more detailed video on this. Also check out these related videos/blog www.rahulpnath.com/blog/handling-application-configuration/ kzbin.info/www/bejne/rYW2pmWXeNSFbbs kzbin.info/www/bejne/jHbNiopnabx-iK8 kzbin.info/www/bejne/p6XTamN_jrKFnpo Let me know in case you have additional questions and thank you for your valuable feedback!
@bluesque9687
@bluesque9687 2 жыл бұрын
The way you talk is annoyingly putting me to sleep!!
@RahulNath
@RahulNath 2 жыл бұрын
Haha so if not to learn, this definitely helps with sleeping 😁
@Nachibros
@Nachibros Жыл бұрын
I have sent a query on your private mail. Could you please check and response.
@RahulNath
@RahulNath Жыл бұрын
Glad you sorted it out after our chat
@Nachibros
@Nachibros Жыл бұрын
@@RahulNath Yes buddy :-)
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 56 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 3 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 195 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 69 МЛН
Use Azure Key Vault to Keep Your Data Safe | Azure tutorial | Hindi
11:32
Serilog 🚀 Logging in .NET 7 Made Simple & Fun
16:23
Patrick God
Рет қаралды 48 М.
Azure Key Vault Tutorial | Secure secrets, keys and certificates easily
18:43
Adam Marczak - Azure for Everyone
Рет қаралды 182 М.
Secretless apps with .NET and Azure Key Vault
18:25
dotnet
Рет қаралды 17 М.
What is Azure Key Vault Used For?
6:51
CBT Nuggets
Рет қаралды 21 М.
Спасибо, что слушаете задание😁🫶 #swimming #бассейн #моястихия
0:14
МОЯ СТИХИЯ | ПЛАВАНИЕ | МОСКВА
Рет қаралды 1,9 МЛН
Жену Криштиану напугал качек 🤯
0:35
КИК Шорт!
Рет қаралды 1,4 МЛН
Горки в аэропорту для тех кто опаздывает🔥
0:14
Бамбука и Соебоба
Рет қаралды 677 М.
Косплеерша выливает пот из костюма после фестиваля
0:10