使用Powershell部署之前将VM添加到Domain

时间:2018-10-05 11:41:45

标签: dns virtual-machine

如何在部署之前将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}

在部署虚拟机之前

0 个答案:

没有答案