Brandon Royal
Login-AzureRmAccount
git clone https://github.com/friism/azure-test
cd azure-test
$resource_group_name="<some-resource-group-you-pre-created>"
$adminPassword="<some-pw-with-special-char-and-capital-letters>"
$sshPublicKey="<your-pup-key>"
$prefix="<some-prefix-less-than-7-chars>"
$ucpVersion="latest"
$dtrVersion="2.3.0-tp6"
$dockerVersion="17.06.0-ce"
$workerCount=1
$parameters = @{ 'workerCount' = $workerCount; 'prefix' = $prefix; 'adminUsername' = "docker"; 'adminPassword' = $adminPassword; 'sshPublicKey' = $sshPublicKey; 'ucpVersion' = $ucpVersion; 'dtrVersion' = $dtrVersion; 'dockerVersion' = $dockerVersion }
New-AzureRmResourceGroupDeployment -ResourceGroupName $resource_group_name `
-TemplateUri 'https://raw.githubusercontent.com/friism/azure-test/master/azuredeploy.json' `
-TemplateParameterObject $parameters `
-Verbose
- Find
MGR_UCP_HOSTNAME
in deployment output in Azure portal. Visit this in browser (usinghttps
) and log in withadmin
and the admin password - Visit
/manage/resources/nodes/create
to get the swarm join command - Remote-desktop into each worker (the above sample creates just one) and run the join command in PowerShell
Your swarm is now ready to use