Jump to content
Welcome to our new Citrix community!
  • Update Snapshot – MCS Provision Static Pool Catalog in Azure using Citrix DaaS and PowerShell


    cugcblogs

    UddaveJajoo22Rnd.png by Uddave Jajoo, Indianapolis CUGC Leader

    In my previous blog post – Update Snapshot for Static Pooled Machine Catalog, I highlighted a few steps on how to change the snapshot for an existing MCS provisioned static pooled catalog so that new desktops provisioned would receive the latest updates and components included in the recent snapshot.

    As organizations slowly transition to DaaS and Public Cloud platforms, there will also be a need for administrators and engineers to manage their images in Azure gallery and also roll out the latest updates to all the end users. Here’s another blog to walk you through what changes need to be included in the PowerShell command and how Citrix Cloud Console lets you make those changes from the GUI to replace the updated snapshot in the catalog.

    image.png.0ec334156a2ccb2cb1ffe246c541a4a9.png

    There are two different ways to accomplish this:

    1. Using PowerShell commandlets
    2. GUI option – Directly from the Citrix Cloud Console

     

    Method 1. Using PowerShell Commandlets

    1. Login to one of the Cloud Connector servers or any management server, where the Citrix PowerShell SDK modules are installed and you would have connectivity to the Citrix Cloud Sites and Services.

    2. Utilize stored profiles to authenticate successfully to Citrix cloud using command below:

    Set-XDCredentials -ProfileName CitrixCloudPRD

    Note: I am utilizing stored profile credentials from the memory itself, for configuring the profile, you would need access to the Citrix Cloud Client ID and Client Secret.

    image-1.png.d469295de82b3c8eb36323f8805fd4f0.png

    3. Identify the name of the catalog, the MasterImageVM and the Snapshot details before proceeding further with the below commands:

     

    Catalog Name: TestCatalog

     

    Snapshot Name: SnapshotUpdated_Jan2023

    4. Get the provisioning Scheme details for the TestCatalog. Make a note of the MachineProfile MasterImageVM details from the output of the PowerShell command.

     

    Example:

    Get-ProvScheme -ProvisioningSchemeName "TestCatalog"

    image-2.png.762649172d3fd52f41f8350cadc4cef5.png

    5. Run the command below:

     

    asnp Citrix*

    Get-ChildItem -Recurse -Path XDHyp:\HostingUnits\azr-centralUs-udjajoo-hostingconnection\image.folder\udjajoo-centralus-RG.resourcegroup\azrw10master.vm

    Make note of the details for attributes PSPathPSParentPath

    image-3.png.c8c172b6c49f3fbbf6a5bba46d2a106e.png

    PSPath : Citrix.Host.Admin.V2\Citrix.Hypervisor::XDHyp:\HostingUnits\azr-centralUs-udjajoo-hostingconnection\machineprofile.folder\udjajoo-centralus-RG.resourcegroup\azrw10master.vm

     

    PSParentPath : Citrix.Host.Admin.V2\Citrix.Hypervisor::XDHyp:\HostingUnits\azr-centralUs-udjajoo-hostingconnection\machineprofile.folder\udjajoo-centralus-RG.resourcegroup

     

    PSChildName : azrw10master.vm

     

    PSDrive : XDHyp

     

    PSProvider : Citrix.Host.Admin.V2\Citrix.Hypervisor

     

    6. Run the command below:

     

    Publish-ProvMasterVmImage -ProvisioningSchemeName TestCatalog” -MasterImageNote "January Month Updates with latest components" -MasterImageVM “Citrix.Host.Admin.V2\Citrix.Hypervisor::XDHyp:\HostingUnits\azr-centralUs-udjajoo-hostingconnection\machineprofile.folder\udjajoo-centralus-RG.resourcegroup\azrw10master_Snapshot_1-14-2023_AllUpdates_MSU_LatestReseal.snapshot

    Note: In on-prem environments, the snapshots were getting tagged with the individual master image itself, however in Azure, the snapshots are just treated as a separate resource within your subscription, so the major difference would be there will be no VM name in the command while entering the PSPath parameter.

    Verify the status of the command results as completed and monitor in the console. The catalog would now be showing the latest snapshot in the Template properties under machine catalogs tab.

    image-4.png.183843cecff7d9bcec133196945250f4.png

    7. Right click on the machine catalog and Select Add Machines to provision new desktops within the Catalog using the updated image.

    Method 2. GUI option – Directly from the Citrix Cloud Console

    1. Login to the Citrix Cloud Console and identify the respective Machine Catalog which needs to updated with the latest snapshot.

    2. Select the catalog and then Select option Change Master Image

    image-5.png.ab82e72a35bf584ba3f5588a0c984c68.pngimage-6.png.3eeffaa37bc4556a22732dd343ded7ab.png

    3. In the master image tab, click on the option +Select an Image.

    4. In the select image tab, point to the respective resource group and select the respective updated snapshot for the master image.

    image-7.png.7fc9e217e4d42d268f873866c1757fbb.png

    5. Click Done.

    6. Verify the Name of Snapshot and enter the Note to include the changes included in the latest snapshot.

    image-8.png.8d31617b0fb96a04cee0addf70a888b7.png

    7. Click Next.

    image-10.png.6b6b95ff1cd7d12ea1f4576bcd2b3203.png

    8. Click Finish.

    9. Once the snapshot is updated in the catalog, try adding new machines to the catalog. All the new desktops provisioned within the catalog will utilize the latest updated snapshot.

     

    References:

    https://blogs.mycugc.org/2022/12/05/update-citrix-mcs-snapshot-for-static-pooled-machine-catalog/

    https://support.citrix.com/article/CTX129205/how-to-update-master-image-for-dedicated-and-pooled-mcs-catalog-using-powershell-sdk

     

    See more posts by Uddave Jajoo here.

     

    Are you a member of CUGC? Join FREE today!

    jajoo020623-j01.jpg.bb74cea6251e7739ca4e8da5aba22104.jpg

    jajoo020623-02.jpg.2ac1ccc0c0356c62e468abc00f9df105.jpg

    jajoo020623-03.jpg.e39d5d342555a01d54833acf58592694.jpg

    image-9.png.59404f904c6baee5c3a952443cea118a.png


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...