问题描述
如何在部署之前将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添加到域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!