зеркало из https://github.com/Azure/azurehpc.git
34 строки
772 B
Bash
Executable File
34 строки
772 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Setup HP RGS on a Win10 VM
|
|
|
|
resource_group=$1
|
|
node_name=$2
|
|
ad_domain=$3
|
|
ad_user=$4
|
|
ad_password=$5
|
|
|
|
echo "Calling ad_win.ps1..."
|
|
|
|
az vm run-command invoke \
|
|
--name $node_name \
|
|
--resource-group $resource_group \
|
|
--command-id RunPowerShellScript \
|
|
--scripts @$azhpc_dir/scripts/ad_win.ps1 \
|
|
--parameters ad_domain=$ad_domain ad_user=$ad_user ad_password=$ad_password \
|
|
--output table
|
|
|
|
echo Sleeping to allow AD to reboot
|
|
sleep 60
|
|
|
|
az vm run-command invoke \
|
|
--name $node_name \
|
|
--resource-group $resource_group \
|
|
--command-id RunPowerShellScript \
|
|
--scripts @$azhpc_dir/scripts/ad_user.ps1 \
|
|
--parameters ad_domain=$ad_domain ad_user=$ad_user ad_password=$ad_password \
|
|
--output table
|
|
|
|
echo "AD setup done"
|
|
|