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 :)
Include SCCM client while provisioning hostpool
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
-
Kumar Chary, Naveen 116 Reputation points
2021-01-13T18:23:58.163+00:00
5 additional answers
Sort by: Most helpful
-
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.0Another 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 -
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 -
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/AddVirtualMachinesToHostPoolAnother 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 -
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