如何在部署之前将VM添加到现有域。我们可以设置
Set-AzureRMVMExtension -VMName $ rgNamePrefix $ number $ rgNameVDIPostfix –ResourceGroupName $ rgNamePrefix $ number $ rgNameVDIPostfix-名称 “ JoinAD”
-ExtensionType "JsonADDomainExtension" -Publisher "Microsoft.Compute"
-TypeHandlerVersion“ 1.0” -Location $ Location -设置@ {“名称” =“ tdgps.net”; “ OUPath” =“”; “用户” = $ domainusername; “ Restart” =“ true”; “选项” = 3} `-ProtectedSettings @ {“ Password” = $ domainpassword}
在部署虚拟机之前