question

KumarCharyNaveen-5027 avatar image
0 Votes"
KumarCharyNaveen-5027 asked AmitaMenon-3691 edited

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

azure-virtual-machinesazure-virtual-desktop
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KumarCharyNaveen-5027 avatar image
0 Votes"
KumarCharyNaveen-5027 answered

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 :)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

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://docs.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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KumarCharyNaveen-5027 avatar image
0 Votes"
KumarCharyNaveen-5027 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KumarCharyNaveen-5027 avatar image
0 Votes"
KumarCharyNaveen-5027 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KumarCharyNaveen-5027 avatar image
0 Votes"
KumarCharyNaveen-5027 answered

Hi, the hostpool deployement seems to be bit complex directing to linked default templates to add the extensions in the VM creation.
Is there a way we can add a custom script extension in the main template?

Thanks in advance.

Regards,
Naveen. S

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.