ARM Templates Parametrization | Expressions, Parameters and Variables
Вставка
- Опубліковано 24 лип 2024
- Expressions, parameters and variables allow anyone to build flexible and reusable ARM templates. They are indeed a powerful tool in hands of skillful developers and administrators.
In this episode I give you introduction to parametrization of Azure Resource Manager (ARM) templates with use of expressions, functions, parameters and variables. I will show you best practices and showcase few use-cases.
Source code for demos: github.com/MarczakIO/azure4ev...
In this episode live demo of
- Building templates with expressions
- Testing with outputs
- Parameterizing with parameters
- Centralizing with variables
Next steps for you after watching the video
1. What are expressions
- docs.microsoft.com/en-us/azur...
2. What are parameters
- docs.microsoft.com/en-us/azur...
3. What are variables
- docs.microsoft.com/en-us/azur...
4. How to use outputs section?WT.mc_id=AZ-MVP-5003556
- docs.microsoft.com/en-us/azur...
Want to connect?
- Blog marczak.io/
- Twitter / marczakio
- Facebook / marczakio
- LinkedIn / adam-marczak
- Site azure4everyone.com - Наука та технологія
Studying for AZ-104 as ARM templates are heavily part of the course material and this has been excellent, thank you
Adam, this the most detailed explanation I have ever found! Excellent work and thank you very much for sharing it!
You're very welcome! Thank you kindly :)
Best Video Ever on ARM, my concepts got cleared after going through it. Thank you so much for explaining each and every bit of it.
Great to hear! Thank you kindly Priya :)
These are the best video for Az. It helps me passed the az900. I am now preparing az204 with these greatest videos.
Awesome, thanks!
You are great in and out.. you are sharing your priceless experience with everyone... Lots Of Love. Thank you.
Thank you!
Before watching I liked and commented, so much confident on your videos 😍
Your level of confidence is amazing! 👊 thanks for the trust!
Hi adam this is the most detailed explanation on ARM, thanks for providing this class on youtube
Very detailed explanation on ARM. Thank you so much.
Thank you for the great video. I look forward to watching the others.
More to come! Thanks!
Wszystko fajnie wytłumaczone, dzięki!
Dziekuje! :)
Very powerful approach!
Excellent section Adam.
Thanks :)
Thank you Sir for sharing! You're the best!
My pleasure!
Nice lesson! Going to the next.
Rock on!
Thanks lot adam . very help full for me
Thankyou very much. You are a great teacher.
Thank you! 😃
Thanks so much for this content!
My pleasure!
Thank you Bro , you made my day
Really enjoying your content. Thanks alot
Glad to hear it!
amazing mate. very precise and to the point . 👌🎂
Glad you think so! Thanks!
All of your videos are amazing, congratulation for your job. By the way, when you get a chance, please think about recording a video about Azure Policy ;)
Azure Policy is definitely on the list! :) Thanks for watching :)
Adam, honestly the way you are teaching ARM templates is industry level which can be used in DevOps, you are the best.....Any chance of Azure DevOps video ?
Azure DevOps is on my shortlist :) So hopefully I can share something sooner than later. Thank you for the kind words.
Hey Adam, I am also waiting for Azure Devops video.
Great content as always Adam! Quick question, with the "Azure Tools" extension for VSC do I pretty much have everything needed to follow along the examples of the courses? Thanks!
ARM Tools are a must, Azure Account and ARM template viewer extensions are nice to have. But in general I try to always say when the extension should be installed. Thanks for watching!
Excellent Video
Thank you very much!
Thank you!
Awesome Content :-)
Thanks! 🙂
Now we are able to deploy the arm with no resource , only with outputs using the custom deployment and we can see the output results in the deployment output tab.
Well done. Thank you!
Thank you too! My pleasure, hope it helped out!
@@AdamMarczakYT I've managed to create a template to deploy a VM and dynamically retrieve a secret from a KeyVault to provision a local admin password during deployment using a nested template. The template works, but it's not flexible. I had trouble understanding scoping to access input parameters to customize the deployment. I'm working to understand template structure and it looks like this playlist will help.
Again, thank you!!!
@@tallgeese1 Yea I agree that sometimes ARM is not that intuitive. Definitely check out bicep project for ARM which solve a lot of issues. Or try terraform :) In future I plan to make videos on those :)
Could you please show me where it defines or recommended approach to use the 2015-01-01 api version instead of latest schema ?
Sure thing! Here in the template syntax docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax#template-format they say that for RG deployments you should use 2015-01-01. I personally struggle with this myself as VS code ARM extension which is developed by Microsoft prompts you to upgrade to latest version as well as their snippets use latest. I plan to open conversation with ARM product team to ask what is the recommended approach here, but until that I always follow the docs as main source of truth. I'll revert in this comment once I learn more! Thanks for asking, this is important question.
Hey as promised. The docs has just been updated. For VS Code official recommendation is 2019-04-01 and for other tools 2015-01-01. But in general schema doesn't have effect on how template works, it's just for client tools syntax highlights.
docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax#template-format
Please create a video on how to connect azure account in vs code, couldn't perform the demo..
Hello Adam i would like to thank you for this video. could you tell me what visual studio do you use? i am using Microsoft Visual Studio Community 2019, when i am working in my arm template i do not have the suggestions. I am a newbie in scripting.
I used visual studio code. But visual studio should work too. Intellisense is called via ctrl+space.
13:35:
People who like to use Powershell rather than Azure Cli, you can run:
New-AzResourceGroupDeployment -name Deploy1 -ResourceGroupName arm-03 -TemplateFile "arm.json"
Thanks Saman! I love when you guys engage in helping each-other :) If you ever like to contribute even more feel free to make a pull requests to my sample repo github.com/MarczakIO/azure4everyone-samples/tree/master/azure-resourcemanager-templates-parametrization
@@AdamMarczakYTHi Adam, massive respect for the content
for above PS command to execute JSON file, how do we accommodate parameters file, because when i add Templateparameterfile to above command , it doesn't execute due to adminpassword error - Thank you for your reply
Wow ! ! !
Thanks :)
you are the best
Thank you!!
Nice demo. I'm looking to create an ARM template implement IPsec S2S Vpn connection in Azure VWAN hub and auto configure the remote site Fortigate firewall . Could you help me sharing some idea create such a template/ such template if you have ny :-)
Hey, sorry but I don't provide that kind of help. I advise people on general direction/questions. This is too complex for a simple ask. Thanks for watching :)
Dobra robota, ale Twoje "templet" zamiast bardziej "templeɪt" doprowadza mnie do szału!! xD