Include SCCM client while provisioning hostpool

Kumar Chary, Naveen 116 Reputation points
2020-12-23T13:29:45.573+00:00

Hi,

We would like to use personal desktop and want to use gallery image and get the customized settings through GPO's.
However, to have our base customize applications to be installed before it assigned to endusers, we want that to be ready.

Can we inject the SCCM agent while the VM is getting provisioned in the phase of join domain extension?

I see there is an option while creating a virtual machine but not while creating a hostpool, is there a way customize the scripting using powershell?

Thanks
Naveen S

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,872 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,536 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kumar Chary, Naveen 116 Reputation points
    2021-01-13T18:23:58.163+00:00

    Hi, Thanks, I have managed to update the customscriptextension in the main template of the hostpool deployment.
    Now, I am able to add the installation of SCCM agent and FSlogix installation and it's configuration :)

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Andreas Baumgarten 108.8K Reputation points MVP
    2020-12-23T14:57:50.707+00:00

    I am not aware of a way to customize the script.

    But you can use PowerShell to add a CustomScriptExtension to the VMs after deployment. This way the SCCM could be installed on the VMs.
    https://learn.microsoft.com/en-us/powershell/module/az.compute/set-azvmcustomscriptextension?view=azps-5.2.0

    Another option might be to create a "master image" based on the gallery image, installed software and SCCM agent. After preparation your master image can be used to deploy the personal desktops.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. Kumar Chary, Naveen 116 Reputation points
    2020-12-27T17:34:40.17+00:00

    Thank you Andreas for replying :)

    Yes it can be PowerShell script that is what we are planning but, can we do it while provisioning the machines when updating the hostpool?
    Like we have extensions of (Join domain, DSC extensions) in the same way, can we update/edit the ARM template to inject this CustomScriptExtension.

    We would like to use the OS from image gallery and not thinking of the Master Image for now.

    Is it possible to edit the Hostpool Creation ARM template, to add the CustomScriptExtension?

    Thank you advance :)

    Regards,
    Naveen. S

    0 comments No comments

  3. Andreas Baumgarten 108.8K Reputation points MVP
    2020-12-27T18:25:33.42+00:00

    Maybe this is helpful:
    https://github.com/Azure/RDS-Templates/tree/master/ARM-wvd-templates/AddVirtualMachinesToHostPool

    Another option might be to install the SCCM agent via GPO on the VMs.
    http://www.configmgr.net/sccm-clientinstallation-via-gpo/


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  4. Kumar Chary, Naveen 116 Reputation points
    2021-01-01T13:57:37.15+00:00

    Regret the delay in response.

    The above link help me to add existing VMs to existing hostpool, however, I am still trying to figure it out, sadly this didn't help me to add the custom script extensions while deploying the original hostpool for the first time.

    There are nested templates used to deploy hostpool, where the extensions like domian join and DSC extensions are triggered.
    I would like to add a custom script after the DSC extension, so writing down the custom .json template, which can add a small extension of installing SCCM client. Will keep you posted on the progress.
    Meanwhile if someone finds a way to add an extension while deploying hostpool will be greatful.

    Thanks
    Naveen. S

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.