0
votes

It says here: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-faq

That I can join a virtual machine scale set to an Azure AD domain, but I dont understand how you implement the JSON extension they state to use, I cant work out where I put it. I have created the VMSS but cannot see an Extensions bit on it.

1

1 Answers

1
votes

You can use script\dsc extensión as you normally would on a regular VM.

Sample DSC extensión:

{
    "name": "Microsoft.Powershell.DSC",
    "properties": {
        "publisher": "Microsoft.Powershell",
        "type": "DSC",
        "typeHandlerVersion": "2.19",
        "autoUpgradeMinorVersion": true,
        "settings": {
            "configuration": {
                "url": "url_goes_here.ps1",
                "script": "script.ps1",
                "function": "function"
            },
            "configurationArguments": {
                "domainName": "domain.name"
            }
        },
        "protectedSettings": {
            "configurationArguments": {
                "adminCreds": {
                    "userName": "User",
                    "password": "Password"
                }
            }
        }
    }
}