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
  • Наука та технологія

КОМЕНТАРІ • 66

  • @wrek
    @wrek 10 місяців тому +2

    Studying for AZ-104 as ARM templates are heavily part of the course material and this has been excellent, thank you

  • @zewdubelachew8768
    @zewdubelachew8768 4 роки тому +7

    Adam, this the most detailed explanation I have ever found! Excellent work and thank you very much for sharing it!

    • @AdamMarczakYT
      @AdamMarczakYT  4 роки тому

      You're very welcome! Thank you kindly :)

  • @PriyaYadav-nj2zm
    @PriyaYadav-nj2zm 3 роки тому +3

    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.

    • @AdamMarczakYT
      @AdamMarczakYT  3 роки тому

      Great to hear! Thank you kindly Priya :)

  • @wozaiytb123
    @wozaiytb123 3 роки тому +1

    These are the best video for Az. It helps me passed the az900. I am now preparing az204 with these greatest videos.

  • @ezhilarasikrishnan5408
    @ezhilarasikrishnan5408 4 місяці тому

    You are great in and out.. you are sharing your priceless experience with everyone... Lots Of Love. Thank you.

  • @krish4u2k
    @krish4u2k 4 роки тому +6

    Thank you!
    Before watching I liked and commented, so much confident on your videos 😍

    • @AdamMarczakYT
      @AdamMarczakYT  4 роки тому +1

      Your level of confidence is amazing! 👊 thanks for the trust!

  • @ramakrishnareddy5612
    @ramakrishnareddy5612 2 роки тому

    Hi adam this is the most detailed explanation on ARM, thanks for providing this class on youtube

  • @athirsonap4383
    @athirsonap4383 7 місяців тому

    Very detailed explanation on ARM. Thank you so much.

  • @albertoramirez4205
    @albertoramirez4205 4 роки тому

    Thank you for the great video. I look forward to watching the others.

  • @wxdTSU2brt
    @wxdTSU2brt 4 роки тому

    Wszystko fajnie wytłumaczone, dzięki!

  • @tarasbuha7726
    @tarasbuha7726 2 роки тому

    Very powerful approach!

  • @mahiremata6124
    @mahiremata6124 3 роки тому +2

    Excellent section Adam.

  • @hazlotumismo1419
    @hazlotumismo1419 3 роки тому +1

    Thank you Sir for sharing! You're the best!

  • @vadym9682
    @vadym9682 4 роки тому

    Nice lesson! Going to the next.

  • @MuthuKumar-xv2fi
    @MuthuKumar-xv2fi 2 роки тому

    Thanks lot adam . very help full for me

  • @iemranee
    @iemranee 3 роки тому +1

    Thankyou very much. You are a great teacher.

  • @danielsavage6854
    @danielsavage6854 3 роки тому +1

    Thanks so much for this content!

  • @kraju2551
    @kraju2551 Рік тому

    Thank you Bro , you made my day

  • @josunin75
    @josunin75 4 роки тому

    Really enjoying your content. Thanks alot

  • @Dtripathiuk
    @Dtripathiuk 4 роки тому

    amazing mate. very precise and to the point . 👌🎂

  • @taguada3024
    @taguada3024 4 роки тому

    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 ;)

    • @AdamMarczakYT
      @AdamMarczakYT  4 роки тому +1

      Azure Policy is definitely on the list! :) Thanks for watching :)

  • @kashifaliuk
    @kashifaliuk 4 роки тому

    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 ?

    • @AdamMarczakYT
      @AdamMarczakYT  4 роки тому +1

      Azure DevOps is on my shortlist :) So hopefully I can share something sooner than later. Thank you for the kind words.

    • @PriyaYadav-nj2zm
      @PriyaYadav-nj2zm 3 роки тому

      Hey Adam, I am also waiting for Azure Devops video.

  • @gambo310
    @gambo310 4 роки тому +1

    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!

    • @AdamMarczakYT
      @AdamMarczakYT  4 роки тому +2

      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!

  • @rosspanama9633
    @rosspanama9633 3 роки тому

    Excellent Video

  • @gui250493
    @gui250493 Рік тому

    Thank you!

  • @cdm297
    @cdm297 3 роки тому +1

    Awesome Content :-)

  • @gsunita123
    @gsunita123 2 роки тому

    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.

  • @tallgeese1
    @tallgeese1 3 роки тому

    Well done. Thank you!

    • @AdamMarczakYT
      @AdamMarczakYT  3 роки тому +1

      Thank you too! My pleasure, hope it helped out!

    • @tallgeese1
      @tallgeese1 3 роки тому +1

      @@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!!!

    • @AdamMarczakYT
      @AdamMarczakYT  3 роки тому +1

      @@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 :)

  • @TellaTrix
    @TellaTrix 4 роки тому +1

    Could you please show me where it defines or recommended approach to use the 2015-01-01 api version instead of latest schema ?

    • @AdamMarczakYT
      @AdamMarczakYT  4 роки тому +1

      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.

    • @AdamMarczakYT
      @AdamMarczakYT  4 роки тому +2

      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

  • @ToshuMalhotraiitk
    @ToshuMalhotraiitk 3 роки тому

    Please create a video on how to connect azure account in vs code, couldn't perform the demo..

  • @senafr
    @senafr 4 роки тому

    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.

    • @AdamMarczakYT
      @AdamMarczakYT  4 роки тому +2

      I used visual studio code. But visual studio should work too. Intellisense is called via ctrl+space.

  • @seftekhari
    @seftekhari 3 роки тому +1

    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"

    • @AdamMarczakYT
      @AdamMarczakYT  3 роки тому

      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

    • @chandrashekhar2461
      @chandrashekhar2461 3 роки тому

      ​@@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

  • @humanbot5247
    @humanbot5247 3 роки тому +1

    Wow ! ! !

  • @gajulanavateja678
    @gajulanavateja678 4 роки тому

    you are the best

  • @studyit8141
    @studyit8141 4 роки тому +1

    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 :-)

    • @AdamMarczakYT
      @AdamMarczakYT  4 роки тому

      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 :)

  • @jatza07
    @jatza07 2 роки тому

    Dobra robota, ale Twoje "templet" zamiast bardziej "templeɪt" doprowadza mnie do szału!! xD