- 06 Sep 2024
- 4 Minutes to read
- Print
Setup Azure for deploying Skillable VMs
- Updated on 06 Sep 2024
- 4 Minutes to read
- Print
To get started using Azure as a virtualization platform for Skillable labs, there are several required steps across the combination of Microsoft Azure and Skillable Studio. If any steps are missed or skipped, VMs created in later processes may not function as expected.
Azure Setup | Skillable Studio Setup |
---|---|
Azure Setup
Prior to using Azure Compute Gallery for virtual machines within Skillable Studio, the Azure tenant must be enabled for Skillable Cloud Slice and the Compute Gallery must exist within the subscription as outlined in the steps below.
Skillable Cloud Slice Authorization
If your subscription has already been configured for Skillable Cloud Slice, skip this step.
If your subscription(s) have not been configured for Skillable Cloud Slice, setup Microsoft Azure for Cloud Slice.
Enable Marketplace Purchases
If your subscription already allows or you do not wish to use Marketplace VMs, skip this step.
In order to add Marketplace VMs to your labs, you first need to be able to access the marketplace through your Azure tenant. This should be the same tenant used to add a subscription to the lab.
To enable marketplace purchases on your tenant, follow Microsoft's documentation to do so. Note that the steps are different depending on the billing account type for your tenant.
Create the Resource Group
If you already have a resource group with a Compute Gallery in it, skip this step.
To get started, the Compute Gallery and any surrounding resources (storage account, etc.) will need to live within a Resource Group.
Go to the Azure portal and log in to your account.
From the Azure Admin page, select Resource Groups on the left side navigation.
Select +Add in the upper-left of the page.
Subscription: Select the subscription that the resource group will bill to when resource are deployed.
Resource Group: Name the resource group.
Region: Select a region where the resource group will be deployed.
Select Next: Review + Create.
Select Create.
Create a Compute Gallery
If you already have a resource group with a Compute Gallery in it, skip this step.
Next, a Compute Gallery must be created to store your Image Definitions & Image Versions.
Go to the resource group you just created.
Select +Add in the upper-left of the resource group section of the page.
Search for Azure Compute Gallery and select it from the search results.
Subscription: Select the subscription that the Compute Gallery will bill to when resource are deployed.
Resource Group: Select the resource group where the Compute Gallery will be deployed to. This should default to the resource group selected in the previous step.
Name: Name the Compute Gallery.
Region: Select a region where the Compute Gallery will be deployed.
Select Next: Review + Create.
Select Create.
Configure Lab Developer Permissions
If all of your lab builders already have permissions to the Compute Gallery, skip this step.
Finally, ensure anyone that may be building labs on your behalf and customizing the environments has Owner or Contributor access to the Compute Gallery.
In Azure, navigate to the Compute Gallery resource.
Navigate to Access Control (IAM) > Role Assignments
For each user you would like to be able to customize lab environments, complete the following:
Search for the user (or a group the user belongs to)
Ensure they have either Owner or Contributor access.
If they already have access, consider this task complete.
If they do not have Owner or Contributor, select +Add > Add Role Assignment and complete the Add Role Assignment wizard - providing the users with either Owner or Contributor access.
Azure Check List
At this point, you should have the configured within Azure:
Skillable Cloud-Slice-App authorization
Static Resource Group
Compute Gallery within Resource Group
Contributor or owner permissions for lab developers
If you are missing any of these items, please go back to previous steps and complete any sections that were missed.
Skillable Studio Setup
Configure Subscription Pool & Subscription(s)
Navigate to the subscription pool your labs will use, if you do not have one yet, create a Cloud Subscription Pool using the authentication information for your subscription in Azure.
Once a Subscription Pool exists, any subscriptions within the pool need to be mapped to their appropriate Compute Gallery where image definitions are stored. To map the a subscription to a Compute Gallery:
Navigate to the cloud subscription pool in Skillable Studio.
For each subscription, select Edit.
Select the Storage tab of the Edit Cloud Subscription dialog.
On the Storage tab, fill in only the fields below:
Image Library Name: The name of the compute gallery resource.
Image Library Resource Group: The name of the resource group the compute gallery lives in.
If your subscription pool has multiple subscriptions, remember to complete this process for each subscription. Each subscription will need to have it’s own compute gallery with the appropriate image definition and version, Skillable Studio currently does not support using a single Compute Gallery across multiple subscriptions.
Next Steps
Get started building labs with Build Labs using Azure Marketplace Virtual Machines.
Get started building labs and Manage Virtual Machine Images with Azure Compute Gallery.