ENVIRONMENT SPECIFIC APP CONFIGURATION - 5 Ways To Manage For ASP NET on AZURE | ASP.NET Core Series

  Рет қаралды 28,408

Rahul Nath

Rahul Nath

Күн бұрын

Hey 👋, Managing application configuration specific to the environment it is running in is an important part of development. In fact, one of the most common questions I get on this channel is also related to how do we use configurations for an environment, how to manage them, etc.
In this video let's dive into 5 different ways we can manage application secrets, configuration, connection strings, etc when building an ASP NET Application on Azure.
1. DevOps Variables
2. Azure App Settings
3. Azure Key Vault
4. Azure App Configuration
5. Azure Managed Identity
00:00 - Introduction
02:03 - Manage Configuration in Local Environment
08:55 - DevOps Setup
16:46 - 1. DevOps Variables
22:34 - 2. Azure App Settings
24:50 - 3. Azure Key Vault
31:00 - 4. Azure App Configuration
35:24 - 5. Azure Managed Identity
🔗 5 Ways to Handle Application Configuration & Secrets With Azure 🔐 - www.rahulpnath.com/blog/handl...
🔗Source - rahulpnath.visualstudio.com/Y...
ADDITIONAL WATCHING
📹ENVIRONMENT - • ENVIRONMENTS in ASP NE...
📹 ATTRIBUTE ROUTING - • ATTRIBUTE ROUTING in A...
📹 OPTIONS PATTERN - • OPTIONS PATTERN in ASP...
📹LOGGING - • LOGGING in ASP.NET Cor...
📹 KEY VAULT & .NET CORE - • Connect .Net Core to A...
📹AZURE APP CONFIGURATION - • AZURE APP CONFIGURATIO...
📹 STARTUP CLASS - • THE STARTUP CLASS In A...
📹 Azure DevOps Series - • Azure DevOps
📹ASP NET Core Series - • ASP.NET Core
Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
🎥 Recording Setup and Workflow - www.rahulpnath.com/blog/youtu...
Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!

Пікірлер: 126
@deepjyotyroy6676
@deepjyotyroy6676 Ай бұрын
One of finest content video about key managing mechanism... awesome
@DelMadman
@DelMadman 2 жыл бұрын
Love this channel! High quality content as usual!
@RahulNath
@RahulNath 2 жыл бұрын
Glad you enjoy it Vitalii !
@ashleyrodrigues1468
@ashleyrodrigues1468 Жыл бұрын
Explained like a G.O.A.T
@cristianvelasquez1949
@cristianvelasquez1949 Ай бұрын
i love this kind of videos, thanks Rahul
@mksoftwaresolutions9303
@mksoftwaresolutions9303 2 жыл бұрын
Another great video, thank you.
@RahulNath
@RahulNath 2 жыл бұрын
Glad you enjoyed it. Thank you!
@liva236muzika
@liva236muzika Жыл бұрын
High quality content. Especially appreciate how you not only show what can be done and how to do it but also advise on which of these is the best/most appropriate way to go about things. Sharing your experience is key here. Thank you!
@RahulNath
@RahulNath 11 ай бұрын
Glad you find it useful. The full series is here on ASP bit.ly/asp-net-core-series
@luckeyzlion
@luckeyzlion 2 жыл бұрын
World class tutorial. Thank you Rahul.
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Kabinad! Hope you like the full series too bit.ly/asp-net-core-series
@orafasistemas
@orafasistemas Жыл бұрын
Thank you so much.... you have shared so much ..... thank you.
@subrataranjanpal6518
@subrataranjanpal6518 2 жыл бұрын
Wonderful !!! Thanks you so much!!
@RahulNath
@RahulNath 2 жыл бұрын
Glad you like it! Do check out the fully series here kzfaq.info/sun/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
@hg98865
@hg98865 2 жыл бұрын
Great content, thanks very much!
@RahulNath
@RahulNath 2 жыл бұрын
Glad you liked it! Do check out the full series here kzfaq.info/sun/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
@psych4054
@psych4054 9 ай бұрын
Nice video. I recently started watching more of your videos. The way you categorize the options available and explaining are clear. Thanks
@RahulNath
@RahulNath 9 ай бұрын
Very happy to hear that. Here are my popular series twitter.com/rahulpnath/status/1499626419357630466?s=20
@sanjayidpuganti
@sanjayidpuganti 2 жыл бұрын
Wow. Great video
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Sanjay !!
@mohanrajraja2896
@mohanrajraja2896 2 жыл бұрын
Bro I have seen all your videos and keeps pn watching.. never seen such a quality in content.. thanks man...
@RahulNath
@RahulNath 2 жыл бұрын
Thank you so much Mohan 😀 makes me happy to know these are helpful. Do let me know if you have specific topic suggestions
@keithjairam8452
@keithjairam8452 Жыл бұрын
Great content! Keep it up!!
@RahulNath
@RahulNath Жыл бұрын
Thank you! Will do Keith! Do check out the full series here bit.ly/asp-net-core-series
@saravanakumarradhakrishnan756
@saravanakumarradhakrishnan756 2 жыл бұрын
Awesome. It gave me answers to Much needed questions
@RahulNath
@RahulNath 2 жыл бұрын
Glad I could help Saravanakumar!
@dotnetwalebhaiya
@dotnetwalebhaiya 2 жыл бұрын
Great Thanks Rahul
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Mohit!
@samh6536
@samh6536 2 жыл бұрын
Very good contents , thanks for taking time to prepare it
@RahulNath
@RahulNath 2 жыл бұрын
So nice of you, thank you. Hope you are enjoying the full playlist bit.ly/asp-net-core-series
@biplabit4u
@biplabit4u 2 жыл бұрын
Really, I like your tutorial
@RahulNath
@RahulNath 2 жыл бұрын
Glad to hear that Biplab! I'm sure you will love the full series here bit.ly/asp-net-core-series
@user-xl6mu4vb5m
@user-xl6mu4vb5m 10 ай бұрын
you are great Rahul........
@RahulNath
@RahulNath 10 ай бұрын
Thank you Arun and glad you are liking the content
@amitnegi7745
@amitnegi7745 2 жыл бұрын
Thanks you Rahul. You are amazing
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Amit, glad these videos are helping!
@pramod.kulkarni9607
@pramod.kulkarni9607 Жыл бұрын
Very useful video tq v much highly recomended
@RahulNath
@RahulNath Жыл бұрын
Glad you liked it Pramod. Hope you are liking the series bit.ly/asp-net-core-series
@Smoothoperator05
@Smoothoperator05 2 жыл бұрын
Great vid!
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Mourya!
@kipergil
@kipergil 4 ай бұрын
Brilliant summary of various options… welldone for all the effort you put in to those high quality contents 🙏👏
@RahulNath
@RahulNath 4 ай бұрын
Many thanks Mustafa! Glad you liked it! Do let me know if you have any topics you would like to see me cover here.
@ranielgarcia8685
@ranielgarcia8685 2 жыл бұрын
Hi Rahul, Thank you so much for making this video, this is very useful and helpful for us beginners. I completely understand the 5 ways. I'm going to watch your Azure DevOps series next! For others who are new to his channel, I highly recommend subscribing. You are going to be an expert if you watch all of his videos. Thank you!
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Raniel and glad you like the video. Hope you’ve checked out the full series bit.ly/asp-net-core-series
@hannesbergsten1134
@hannesbergsten1134 2 жыл бұрын
Thanks!
@RahulNath
@RahulNath 2 жыл бұрын
Glad it helped. Do check out the other videos in this series bit.ly/asp-net-core-series
@lakmalkankanamge3720
@lakmalkankanamge3720 Жыл бұрын
Superb Content Rahul. I'm a great fan of your videos. Thank you for all the effort
@RahulNath
@RahulNath Жыл бұрын
So nice of you Lakmal. Hope you are enjoying the full series bit.ly/asp-net-core-series
@fredrichards5797
@fredrichards5797 2 жыл бұрын
WOW Rahul, I have watched this video several times and i have watched the series of videos you have in your link. I would tell you, you have become my favorite youtuber.
@RahulNath
@RahulNath 2 жыл бұрын
Happy to hear that Fred. This video also has an associated blog post if you need www.rahulpnath.com/blog/handling-application-configuration/ And you can find the full ASP NET Series here bit.ly/asp-net-core-series Do drop in your comments, feedback and suggestions.
@RAM-ff8dy
@RAM-ff8dy 2 жыл бұрын
This video is life saver for me.
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Ram. curious if it was a bit long? Did you get to watch it full? Thank you again 😀
@RAM-ff8dy
@RAM-ff8dy 2 жыл бұрын
@@RahulNath No, I always like long videos, It will cover the most of the information. Please continue to make the long videos like this.
@RahulNath
@RahulNath 2 жыл бұрын
@@RAM-ff8dy That’s good to know.
@MrTouqeerhameed
@MrTouqeerhameed Жыл бұрын
I Love this channel
@RahulNath
@RahulNath Жыл бұрын
Thank you Touqeer!! Do drop in suggestions if you have.
@bloopers2967
@bloopers2967 2 жыл бұрын
Thank you for this video ❤️
@RahulNath
@RahulNath 2 жыл бұрын
You are so welcome! Was it too long? Wasn’t sure if showing the full setup of pipeline was required or not? What do you think
@bloopers2967
@bloopers2967 2 жыл бұрын
@@RahulNath No it's good, detailed explanations are always welcome 😬
@RAM-ff8dy
@RAM-ff8dy 2 жыл бұрын
Please make the long videos like this, it will give more detailed information..
@ajayraval8738
@ajayraval8738 2 жыл бұрын
This video is super helpful. The video should be the "official document" on how to set up the environment configuration on azure.
@RahulNath
@RahulNath 2 жыл бұрын
Glad it was helpful Ajay! Do check out the other videos in this series if you haven't already bit.ly/asp-net-core-series
@chairmakerPete
@chairmakerPete 7 ай бұрын
Fantastic video. This is way beyond my capability, so my secrets remained burned into my source, but I should take some days off to learn the whole dreaded DevOps thing! 👍
@RahulNath
@RahulNath 7 ай бұрын
Glad you liked it and found it useful. I have a series on DevOps where I explain some of these concepts in itself. bit.ly/azure-devops-series Feel free to reach out if you have questions.
@chairmakerPete
@chairmakerPete 7 ай бұрын
@@RahulNath thank you very much, Rahul! I really like your videos which are clear, concise and move at pace, so I'll learn more about the whole DevOps thing then watch this one again with more background knowledge. In my day, we copied the .exe file to a disc or memory stick, dumped it on a server or PC, and that was the installation done and dusted! 🙂 Bit more complicated these days, though a million times better once you've climbed the learning curve. Thanks again! 👍
@riyazbasha1245
@riyazbasha1245 2 жыл бұрын
Hey Rahul Really great videos....We need one video related to end to end deployment of real time Dotnet core app along with Sql server to azure
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Riyaz and glad you like them. The ARM Templates video walks you through this kzfaq.info/get/bejne/aa-CqteTrNLXmJ8.html .Let me know if that helps you
@FamiljenWidell
@FamiljenWidell 8 ай бұрын
But if you just want to change the datasource-part of the connectionstring and running on premise, how do you transform that in deploy-pipeline?
@AmrishVadali.
@AmrishVadali. Жыл бұрын
Hi Rahul, your video presentation is too good. One issue I am facing is when I applied your azure app config changes and try to access from docker container or AKS I am getting an exception like "The SSL connection could not be established". can you please let me know what is going wrong.
@hemantpanchal8087
@hemantpanchal8087 2 жыл бұрын
Thank you for this amazing video, Can you please tell me which is most recommended one and easy to manage?
@RahulNath
@RahulNath 2 жыл бұрын
A lot depends on your use case Hemant. But I would start from the last and go back. Managed Identity works best since it's one time set up and you don't have to worry about passwords/connection strings. You can read more about Managed Identity in these posts www.rahulpnath.com/blog/defaultazurecredential-from-azure-sdk/ Hope that answers your question?
@musicfun9762
@musicfun9762 Жыл бұрын
hi Rahul. when I am trying to update variables from azure portal, it is not affecting changes, the only difference I found is that in configuration-> application setting when I add new variable it shows "App service" as source, in your video it shows "App service config". could you help me please?
@CRAZZYZ1
@CRAZZYZ1 2 жыл бұрын
Hi Rahul! Thanks for this fine demo. I have been looking for a video that shows how to replace my environment variables and your video is good. Will this work for a containerized application?
@RahulNath
@RahulNath 2 жыл бұрын
Glad it was helpful! You will to pick and choose what method works in an containerized application - but mostly yes.
@CRAZZYZ1
@CRAZZYZ1 2 жыл бұрын
@@RahulNath Awesome! Thanks
@shashikantpawar7069
@shashikantpawar7069 2 жыл бұрын
@Rahul - Is any big company architecture use net core for its microservice architecture and any resources for that i need to check the complex problem
@RahulNath
@RahulNath 2 жыл бұрын
This is a great resource Shashikant github.com/dotnet-architecture/eShopOnContainers#related-documentation-and-guidance And yes lots of companies use .NET for their microservice architecture. Do let know if you have any additional questions.
@manaspal5
@manaspal5 Жыл бұрын
Hi Rahul, thanks for the wonderful tutorial video. I have given input appsettings.json in the field JSON variable substitution. But during release I am getting the error "NO JSON file matched with specific pattern: appsettings.json."
@RahulNath
@RahulNath Жыл бұрын
Hey Manas, looks like mostly the file is not packaged as part of the build? Is it set to be copied into the bin folder and packaged in the pipeline? Or make sure the path to the file is correct. The logs should have more details on where it's looking. Let me know if that helps.
@sumangeorge7
@sumangeorge7 2 жыл бұрын
Thanks for the video... We have old .net framework with web.config, how can we achieve this with web.config?
@RahulNath
@RahulNath 2 жыл бұрын
Should work the same way as with json files - You would set the transform on the web.config file instead of appsettings - docs.microsoft.com/en-us/azure/devops/pipelines/tasks/transforms-variable-substitution?view=azure-devops&tabs=Classic&WT.mc_id=AZ-MVP-5003875. Hope that helps? Let me know if you have additional questions.
@afshinz.k4518
@afshinz.k4518 Жыл бұрын
What if we create a release variable token in json file eg : __UserName__ and let pipeline replace it?
@RahulNath
@RahulNath Жыл бұрын
Yes you can - appsettings is also a json file. What problem are you facing Afshin?
@hanimv
@hanimv 2 жыл бұрын
Hi Rahul, Is there a way to do transformation across the app service deployment slots. For eg, we have different slots like, staging, qa and we publish to these slots using Visual studio publish feature. Having different appsettings.{slotname>.json didnt help.
@RahulNath
@RahulNath 2 жыл бұрын
In DevOps you can use environment specific variables . I show this in this video kzfaq.info/get/bejne/hayiabmc3JbRoWw.html Let know if that helps
@hanimv
@hanimv 2 жыл бұрын
​@@RahulNath Thanks Rahul, You always reply on prompt. For now we are not using the devops, but directly using publish feature in Visual studio
@StevenGomezCandanoza
@StevenGomezCandanoza Жыл бұрын
Thanks a lot!! please can you help me to know how add ASPNETCORE_ENVIRONMENT variable from Azure pipeline release to app serveces?? or do you have some video where explain it
@RahulNath
@RahulNath Жыл бұрын
How are you creating the App Services? If you are creating it using the Azure Pipeline, best is to set it up on the create step as an environment variable. I talk about it here kzfaq.info/get/bejne/aa-CqteTrNLXmJ8.html&ab_channel=RahulNath. Let me know if that helps.
@StevenGomezCandanoza
@StevenGomezCandanoza Жыл бұрын
@@RahulNath Thank you very much, although in the video I couldn't find how to send or set variables from the pipeline to the app services.
@RahulNath
@RahulNath Жыл бұрын
@@StevenGomezCandanoza This blog post explains how you can modify the ARM template to add in that jeremylindsayni.wordpress.com/2019/09/12/adding-environment-variables-to-an-arm-template-for-azure-app-services/ Let me know if that helps or if you have additional questions.
@aikidoshi007
@aikidoshi007 2 жыл бұрын
FYI: I just followed your instructions to create a new webapi (which I've done a lot previously) to find that the solution does not contain a startup.cs. Using .NET Core 6 Preview
@RahulNath
@RahulNath 2 жыл бұрын
Yes you are right Steve. These are changes as part of the new .NET Minimal API's. I will do a video some time soon on this. Thank you for pointing out here 😀
@cryptoeric24
@cryptoeric24 Жыл бұрын
There is no operations subheading on azure portal. Can you update video??
@RahulNath
@RahulNath Жыл бұрын
Can you clarify what is operations subheading ? Can’t update this video, but could do another video
@roslanbainal5914
@roslanbainal5914 2 жыл бұрын
Hello Rahul, could you make a video about asp.net core identity with n-layer architecture...?
@RahulNath
@RahulNath 2 жыл бұрын
Few videos on architecture here - kzfaq.info/sun/PL59L9XrzUa-nuI1jIibFnJpVPZ0vYXyeq And check this for authentication starter - kzfaq.info/get/bejne/j62FmtCIyZ_ckas.html Do let know if that helps
@roslanbainal5914
@roslanbainal5914 2 жыл бұрын
@@RahulNath Okay, I will watched it... Thanks rahul
@RahulNath
@RahulNath 2 жыл бұрын
@@roslanbainal5914 Do let me know if you would like anything else covered . And thank you for supporting by being a member 😀👍
@roslanbainal5914
@roslanbainal5914 2 жыл бұрын
@@RahulNath Okay rahul, I like watching your videos since I still new on .net core...right now I just code without know deeply about particular method, so from your videos it clearly make my understanding better.
@RahulNath
@RahulNath 2 жыл бұрын
@@roslanbainal5914 That's good to know. Do let know if you have any specific topics to be covered.
@RahulHemadri
@RahulHemadri 2 жыл бұрын
I am trying to add migration for .netcore 3.1 app. I am getting deps.json not found error. Can you help me in this regards. Thanks in advance
@RahulNath
@RahulNath 2 жыл бұрын
Hey Rahul, I've seen a similar error in the past, but can't remember the exact reason. Google should be your best help. If you are unable to resolve, if you can share a sample repo, I can take a look.
@RahulHemadri
@RahulHemadri 2 жыл бұрын
@@RahulNath Thanks Rahul for the support. I tried all the best possible ways provided by Google to solve the issue but wasn't succeeding. I can share repo with you. Can you please share the details for the same
@RahulNath
@RahulNath 2 жыл бұрын
@@RahulHemadri Contact details in the about page 😀
@RahulHemadri
@RahulHemadri 2 жыл бұрын
@@RahulNath Hi Rahul I have shared repo details. Please help with the solution. Thanks in advance
@bloopers2967
@bloopers2967 2 жыл бұрын
Can we get a video on unit testing the web Apis?
@RahulNath
@RahulNath 2 жыл бұрын
Missed this? kzfaq.info/get/bejne/esh7ZLGHt7e-pqc.html Or looking for something else?
@bloopers2967
@bloopers2967 2 жыл бұрын
@@RahulNath oh sorry, yea totally missed this one
@RahulNath
@RahulNath 2 жыл бұрын
@@bloopers2967 Let me know if you get to watch it. Happy to expand on the scenarios if you have some suggestions!
@bloopers2967
@bloopers2967 2 жыл бұрын
@@RahulNath okay cool
@brightstar313
@brightstar313 2 жыл бұрын
Azure is not allowing me to add Demo:Key3, please help.
@RahulNath
@RahulNath 2 жыл бұрын
What error are you getting ? Is it a Windows based web app or Linux based? if Linux try if __ works. docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/
@brightstar313
@brightstar313 2 жыл бұрын
@@RahulNath I'm tring it on the Azure Portal, system is not excepting : in the key name.
@RahulNath
@RahulNath 2 жыл бұрын
@@brightstar313 Is the web app linux based or windows based? Might change based on that (if you look at my previous comment). Did that help?
@brightstar313
@brightstar313 2 жыл бұрын
@@RahulNath thanks for the feedback, I'll check and update you accordingly.
@RahulNath
@RahulNath 2 жыл бұрын
@@brightstar313 Great let me know how that goes.
@NK-xw4uu
@NK-xw4uu 2 жыл бұрын
Is section 4 a prerequisite for section 2 to work?
@RahulNath
@RahulNath 2 жыл бұрын
Which two sections are you looking at?
@NK-xw4uu
@NK-xw4uu 2 жыл бұрын
@@RahulNath Azure app settings and Azure app configurations
@RahulNath
@RahulNath 2 жыл бұрын
@@NK-xw4uu No they are not dependent. I mostly stay away from using Azure app settings esp manual configuration.
@NK-xw4uu
@NK-xw4uu 2 жыл бұрын
@@RahulNath thanks I get you now. The first one is app service and 2nd one is config store. Sorry I got confused before. Keep up the great work your videos are gold.
@RahulNath
@RahulNath 2 жыл бұрын
@@NK-xw4uu Thank you!
@aikidoshi007
@aikidoshi007 2 жыл бұрын
This is what it looks like now:
@aikidoshi007
@aikidoshi007 2 жыл бұрын
And it will not build, throwing a lot of errors at runtime. Sometimes Preview Versions suck.
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 15 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 9 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 11 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,3 МЛН
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 70 М.
OMG 😂😂😂#funny #rimiufun
0:16
Ri Miu Family
Рет қаралды 4,3 МЛН
小丑刚回来,上面到底是谁? #小丑#shorts  #天使
0:24
好人小丑
Рет қаралды 2,9 МЛН
Magnetic 🧲 #настольныеигры #boardgames #games #игры #настолки #настольные_игры
0:34
😳 КУПИЛА ЗАПРЕЩЕННЫЕ ТОВАРЫ В БАРСЕЛОНЕ
0:18
Настя, это где?
Рет қаралды 2,1 МЛН
Хинкали 🥟
0:35
Сан Тан
Рет қаралды 585 М.