部署前将VM添加到域

部署前将VM添加到域

本文介绍了部署前将VM添加到域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在部署之前将VM添加到现有域.我们可以添加 Set-AzureRMVMExtension -VMName $ rgNamePrefix $ number $ rgNameVDIPostfix –ResourceGroupName $ rgNamePrefix $ number $ rgNameVDIPostfix -Name'"JoinAD"` -ExtensionType "JsonADDomainExtension" -发布者"Microsoft.Compute"; -TypeHandlerVersion"1.0"; -位置$位置-设置@ {名称" ="tdgps.net"; "OUPath" ="; 用户" = $ domainusername; 重新启动" =真"; 选项" = 3}` -ProtectedSettings @ {"Password"" = $ domainpassword}   

How to add VM to existing domain before deployment.  Can we add  Set-AzureRMVMExtension -VMName $rgNamePrefix$number$rgNameVDIPostfix –ResourceGroupName $rgNamePrefix$number$rgNameVDIPostfix -Name "JoinAD"`-ExtensionType "JsonADDomainExtension" -Publisher "Microsoft.Compute" `-TypeHandlerVersion "1.0" -Location $Location -Settings @{ "Name" = "tdgps.net"; "OUPath" = ""; "User" = $domainusername; "Restart" = "true"; "Options" = 3} `-ProtectedSettings @{ "Password" = $domainpassword}   

在$ vm变量下

推荐答案

New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-vm-domain-join/azuredeploy.json




这篇关于部署前将VM添加到域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 23:51