How to Add a Linux Image to Azure Stack in Disconnected Mode #AzureStack #AzureStackDevKit #Linux #Azure


You have a deployment of Microsoft Azure Stack (MAS). You want to add a Linux image to the Azure Stack Marketplace to make it available for deployment. In this scenario, your Azure Stack instance is not registered with an Azure subscription. In other words, Azure Stack is deployed in disconnected mode.

In the previous article, I showed you How to Add Windows Server 2016 Image to Azure Stack from the Azure marketplace.

In this article, I will show you how to add a Linux image to Azure Stack Development Kit (ASDK) in disconnected scenario using PowerShell.

Download a Linux operating system image

First, we need to download a Linux Ubuntu 16.04 LTS operating system image.

  1. Open Windows PowerShell console and run the following command to download the compressed vhd file. The downloaded image is 462 MB.
  2. Once the download completes, you need to extract the vhd file to C:\Downloads. Run the following command to extract the image. Extraction can take up to 15 minutes to complete. The extracted image size is 30 GB.

Connect to Azure Stack

In this step, you will connect to Azure Stack by using PowerShell.

  1. Start Windows PowerShell ISE as Administrator, and run the following commands to install Azure Stack modules:
  2. Once the installation of the AzureStack module completes, download and extract the Azure Stack tools by running the following commands:
  3. Once you extract Azure Stack tools, you need to import the Azure Stack Connect and ComputeAdmin modules by running the following two commands:
  4. Once you import Azure Stack modules, you need to create the Azure Stack cloud operator environment by running the following two commands:
  5. You need to retrieve the GUID value of the Azure Stack cloud operator by running the following command:
  6. In the final step, you need to sign in to Azure Stack by running the following commands:

Leave Windows PowerShell ISE window open.

Add the Linux operating system image

In this step, you will add the Linux operating system image by using PowerShell.

  1. Run the following commands to add the image:
  2. Leave the session running. Adding the Linux image may take from 30 to 60 minutes to complete.

Verify availability of the Linux image

In the final step, you will verify the availability of the Linux image in the Azure Stack portal.

  1. Sign-in to Azure Stack Administration portal as an Azure Stack Cloud Operator at https://adminportal.local.azurestack.external.
  2. In the Azure Stack administrator portal, in the hub menu, click + New.
  3. In the New blade, click Compute.
  4. In the Compute blade, ensure that Canonical-UbuntuServer-16.04-LTS appears in the list of entries.

And there you have it.

Until next time!


About Charbel Nemnom 350 Articles
Charbel Nemnom is a Microsoft Cloud Solutions Architect, totally fan of the latest's IT platform solutions, accomplished hands-on technical professional with over 15 years of broad IT Infrastructure experience serving on and guiding technical teams to optimize performance of mission-critical enterprise systems. Excellent communicator adept at identifying business needs and bridging the gap between functional groups and technology to foster targeted and innovative IT project development. Well respected by peers through demonstrating passion for technology and performance improvement. Extensive practical knowledge of complex systems builds, network design and virtualization.

Be the first to comment