将VMSS VM加入域

时间:2017-12-11 21:03:42

标签: azure azure-vm-scale-set

它在这里说:https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-faq

我可以加入虚拟机规模集到Azure AD域,但我不明白你如何实现他们声明使用的JSON扩展,我无法解决我把它放在哪里。 我已创建了VMSS,但无法在其上看到扩展位。

1 个答案:

答案 0 :(得分:0)

您可以像往常一样在常规虚拟机上使用script \ dscextensii。

样本DSCextensió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"
                }
            }
        }
    }
}