Advertisement
ned1313

Add Linux VM Azure Stack

Mar 28th, 2017
1,352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cd \
  2. Import-Module .\AzureStack-Tools-master\Connect\AzureStack.Connect.psm1
  3. Import-Module .\AzureStack-Tools-master\ComputeAdmin\AzureStack.ComputeAdmin.psm1
  4. $vhdlocation = "\\su1fileserver\SU1_Infrastructure_1\xenial-server-cloudimg-amd64-disk1.vhd\xenial-server-cloudimg-amd64-disk1.vhd"
  5. $azurestackcredential = Get-Credential
  6. $azurestacktenant = "YourAzureStackTenant.onmicrosoft.com"
  7. Add-VMImage -publisher Canonical -offer UbuntuServer -sku "16.04-LTS" -version "16.04.201703270" `
  8.  -osDiskLocalPath $vhdlocation -osType Linux -tenantID $azurestacktenant -location local `
  9.  -azureStackCredentials $azurestackcredential -title "Ubuntu Server 16.04 LTS" -Verbose
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement