AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Clean up image11/22/2023 ![]() ![]() ![]() $imagegallerydefinitioninfo = Get-AzGalleryImageDefinition -GalleryName $imagegallery.Name -ResourceGroupName $imagegallery.ResourceGroupName | Out-GridView -Title "Select the SIG Definition" -PassThru $imagegallery = Get-AzGallery | Out-GridView -Title "Select the SIG you want to use" -PassThru #NOTE: This script can be used to cleanup obsolete image versions in your shared image gallery The Scriptīy running the following script, which you can find on my GitHub repo, you’re prompted to select your SIG, Image Definition, and the versions you want to delete within that Image Definition. Now I only want to keep version 1.0.0 as this was the first image I’ve uploaded from a managed image and the latest version. So I decided to write a small script that can automate this for you.īelow you can find an overview of the image versions we currently have in place as an example. We can delete these image versions via the Azure Portal. ![]() However, we can, of course, delete a couple of these Image Versions and keep the ones we want to use as a baseline. There isn’t a real merge option within Shared Image Gallery. Looking back to Citrix Provisioning Services, you eventually would merge the last set of image versions you created into a new baseline. We don’t need all of these image versions in many test and production cases, of course. A lot of trial and error eventually turns out in a massive list of different image versions. In my recent try-outs with Windows Server 2022 on Azure, I’ve created many different Shared Image Gallery Image Versions via Azure Image Builder. ![]()
0 Comments
Read More
Leave a Reply. |