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