Use Custom Image Templates in Azure Virtual Desktop and never patch session hosts again?

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • Using custom images in AVD is something I have covered in the past, but this time we'll do it even easier and use the Custom Image Templates feature.
    I'll show you how to get started, how to create images this way and tell you more about this neat little service.
    My video on NAT Gateway: • Providing outbound acc...
    Further resources:
    Learn pages: learn.microsoft.com/en-us/azu...
    My get started kit for Custom Image Templates: github.com/PetterTech/DemoStu...
    The install powershell script: raw.githubusercontent.com/Pet...
    Socials:
    Ask me stuff on Twitter: / pettertech
    Catch me live on Twitch: / pettertech
    Follow me on LinkedIn: / pettertech
    Check out my awful code at Github: github.com/PetterTech
    I also have merch: merch.streamelements.com/nere...
    Chapters:
    0:00 What is it
    1:39 The demo environment
    2:33 Prerequisites
    12:52 Creating a custom image template
    25:32 Building and deploying the image
    #Azure #AzureVirtualDesktop
  • Věda a technologie

Komentáře • 23

  • @PetterTech
    @PetterTech  Před 4 měsíci +1

    What do you think about this service? Is it better than manually creating images? Better than Azure Image Builder? Or do you prefer the more hands-on approach to imaging?

  • @ronjat8
    @ronjat8 Před 4 měsíci

    Akkuratt videoen jeg trengte! Har fagprøve snart og tenker å ha om AVD, så kom jeg over kanalen din og det passet jo bare helt perfekt! Så videoen du la ut for 1 år siden om AVD og det hjalp meg veldig med å forstå og motiverte meg også til å lære mer. Setter stor pris på kanalen din :) Takk!

    • @PetterTech
      @PetterTech  Před 4 měsíci +1

      Godt å høre at innholdet mitt kan hjelpe! Masse lykke til på fagprøven 👍

  • @CFPANDRADE
    @CFPANDRADE Před 26 dny +2

    this is great content; I'm subscribed, but I would like to see those videos in 4k resolution as there is a lot of text and is hard to read

    • @PetterTech
      @PetterTech  Před 18 dny +1

      Thanks for the feedback! Future videos will be in 4K, though upscaled in the beginning

  • @PaulFulbright
    @PaulFulbright Před 4 měsíci +1

    Very, very, useful. Thanks!

  • @matthewsmith741
    @matthewsmith741 Před 2 měsíci

    Thanks for this video. It's been very helpful, but could you add a short section @23:50 or follow-up video where you install PowerShell with all resources contained in a storage account within the same resource group? My use case requires assets be within my own subscription, but I can't find any examples of this on-line.

    • @PetterTech
      @PetterTech  Před 2 měsíci

      Interesting scenario, is it enough to have all resources in the same subscription or is there also a requirement to be accessing things through private networks?
      Because it could be as simple as deploying a storage account and placing the scripts there with public access enabled.
      But if it should also be accessed through private networks then you would need a private endpoint for the storage account that is accessible from the vnet used to build the image

  • @techxpert365
    @techxpert365 Před 4 měsíci +1

    looks great and thanks for this video. can we update the existing session hosts without adding the new session hosts?

    • @PetterTech
      @PetterTech  Před 4 měsíci

      Unfortunately no, the images you create is not something you can use outside of deploying new hosts

  • @JonathanSchmidt-md9sh
    @JonathanSchmidt-md9sh Před 3 měsíci

    I used to have a test and a production environment which are running on the same Image. The test environment gets the software updates and if everything is successful I sysprep the test session host, "capture" it manually in the portal and create an image out of the capture to the image gallery. Then first redeploy from the image in stage and if everything works as expected use the same session hosts image from the image gallery to redeploy in production. Did I understand it right, that I can now use the stage session host including all the software and just create an image directly out of it without sysprepping it and immediately deploy new session hosts from it or is it just for the base installation without anything software related added afterwards?
    Is it also possible to store images in one "central" tenant and access it from another one? Sorry if you already covererd it somewhere but didn't find something to it.

    • @PetterTech
      @PetterTech  Před 3 měsíci +1

      If I understand your scenario correctly then you could use the image you captured from the test session host as a basis for your next images when creating them by using the Custom Image Templates. So if you could apply the updates through code you could potentially save some time in this process, since it would save you the steps of deploying a new vm, applying updates and then sysprep'ing and capturing it as a new image.
      Regarding the option to store images in one central tenant, I do not now of a native way to this unfortunately.

  • @AxelGleizes
    @AxelGleizes Před 2 měsíci

    Thank you for your video. There's something I don't understand: previously it was simple. You create your VM, install what you needed, run sysprep, and then you could capture and use the image. But with this new process, when am I supposed to install what I need in my image to create my master? (Sorry, I'm a beginner with AVD.)
    If I understand correctly, I create a custom template with this new feature, and then I have to create a VM, customize it with all the software I need, run sysprep, and capture it again? So nothing new in fact ? Maybe I'm missing something in the process to manage the golden image 😅

    • @PetterTech
      @PetterTech  Před 2 měsíci +2

      You can still go with the old style of creating images, in that case you wouldn't need custom image templates though :)
      The whole point of custom image templates is to have all customization done by code, so instead of logging on the vm to install software and customize it you would add some scripts to do the same thing 👍

  • @fiokideiglenes1812
    @fiokideiglenes1812 Před 2 měsíci

    How do you replace the active session hosts with the new image?

    • @PetterTech
      @PetterTech  Před 2 měsíci

      You deploy new ones based on the new image, place the old ones in drain mode and as soon as the old ones are empty you decommission them :)

  • @ounet3629
    @ounet3629 Před 2 měsíci

    After multiple test, the customer image template from avd doesn't work in trusted launch for me. After open microsoft ticket they said. Always uses stanfard. Wierd. do you succed with TL?

    • @PetterTech
      @PetterTech  Před 2 měsíci

      What kind of errors are you seeing? Are you using a gallery to store images in or are you using managed images?
      I had to test it now to verify, but I am able to create an image through custom image templates and deploy session hosts with it that has trusted launch 🤷‍♂️

    • @ounet3629
      @ounet3629 Před 2 měsíci

      @@PetterTech I have "Your VM selected is configured with unsupported trusted launch or confidential VM" event if my gallery image is in trusted launch. Microsoft said that it has to be standard.

    • @PetterTech
      @PetterTech  Před 2 měsíci

      That's odd, if that were the case then I shouldn't have been able to do it. But it might be one of those cases where it's not supported, but in some cases work.
      Where in the process are you getting that error?

  • @CFPANDRADE
    @CFPANDRADE Před 26 dny

    what if we want to install apps on those images?

    • @PetterTech
      @PetterTech  Před 25 dny

      You would do that via script then, like I do with powershell in the video 👍