Azure subscriptions
Give learners access to Azure subscriptions.
Last updated
Was this helpful?
Give learners access to Azure subscriptions.
Last updated
Was this helpful?
Cloud account usage can lead to abuse without the appropriate security policies in place. Always be sure to implement the appropriate policies and restrictions before exposing tracks with cloud accounts to the public.
Costs associated with cloud accounts are in addition to your standard Instruqt billing. Therefore, you should take extra precautions when allowing users to access tracks that have cloud accounts.
This guide explains how to access an Azure subscription from Instruqt.
An Azure subscription is a logical container used to provision resources in Azure. It holds the details of all your resources like virtual machines (VMs), databases, and more. When you create an Azure resource like a VM, you identify the subscription it belongs to.
— Azure documentation
You must have already built a track to which you can add access to an Azure subscription.
It is best to add the container to your track to give a learner access to an Azure subscription. Because the Instruqt Cloud Client:
Exposes links to the Azure portal for the resources configured in the config.yml
file, with the credentials required to log in.
Includes the az
CLI, pre-configured with the required credentials.
The Azure portal and the az
CLI make it easy for content developers and learners to access Azure subscription resources from the sandbox.
It takes the following steps to give learners access to an Azure subscription:
Add an container to your track.
Add an Azure subscription to your track.
Add tabs to your challenges where you want to expose the Azure portal or az
CLI.
Additionally, you can use:
A set of environment variables that are available in the az
CLI.
Azure built-in roles.
Click + Add a cloud account on the Sandbox page.
Select the Azure provider.
In the Name field, enter azuresubscription
.
In the Services field, select the services that are going to be enabled.
In the Regions field, select the regions that are going to be enabled.
In the User Roles field, specify the desired roles for the end user.
In the Admin Roles field, specify the desired roles for the admin user.
Click Save to add the Azure subscription. ↳ On the Sandbox page, you will see the new Azure subscription.
Click Back to track to return to the Track dashboard page.
Only enabled services and regions configured by the team administrator can be selected and/or specified. See more details in Cloud services and regions
az
CLIIn the Challenges section of the Track dashboard, click Add new followed by Assignment.
Enter/select these values:
Tab name
Azure subscription
URL
azure-subscription
Description
Learn about Azure
Click Save.
Click Tabs followed by Add new tab.
Select the Your applications tab type.
Enter/select these values to set the Azure portal:
Tab name
Azure Portal
Select your host
cloud-client
Path
/
Port
80
Click Save to add the tab.
Click Add new tab again.
Select the Terminal tab type.
Enter/select these values to set the gcloud
CLI:
Tab name
az CLI
Host
cloud-client
Click Save to add the tab.
Click the track name to return to the Track dashboard.
Click Play track and test your Azure subscription.
Great! Your learners can now access Azure subscriptions. But there is more. You can also give them access to:
More information can be found in the section.
In the Roles field, only provide access to services that are strictly needed to prevent abuse. .