Group Managed Service Accounts

I’m trying to set SQLSvcAccount and AgtSvcAccount to use a gMSA. I’ve tried passing a [System.Management.Automation.PSCredential] as a parameter.
Any suggestions how to use a gMSA with DSC Sql Server install?

We don’t have enough data to assist. Can you share the code and what error you are getting? There are several steps in configuring a GMSA in general, and it’s not clear exactly what you’re doing. Many of the commands that are used to create a service account accept a credential parameter, but the purpose of utilizing a GMSA is so you don’t manage a password, and it’s automatically handled (windows handles it).