If not, we will use the plan name and product for the public Ubuntu Pro from the Azure Marketplace. If you have an Ubuntu Pro private offer with Canonical, for example including 24x7 Technical Support with SLAs, you will have a custom Offer and Sku we can enter these here instead. Now we are going to set variables for the Ubuntu Pro plan we are going to use in the tutorial. Then set this to the variable as follows: subscriptionID= If you have more than one, you can use az account list -o tableĪnd take the value from the SubscriptionId column for the subscription you would like to use for this tutorial. If you only have one, this will be the output of: az account show -o json | grep id # image distribution metadata reference nameĬreate a variable for your subscription ID. # name of the image definition to be created # name of the shared image gallery - in this example we are using myGallery The image will be displayed in the Azure Portal as sigName/imageDefName. Now we will set variables for the Gallery Name and Image Definition Name. # Additional region to replicate the image to - we are using West Europe in this example # Datacenter location - we are using North Europe in this example # Resource group name - we are using ibUbuntuProGalleryRG in this example We will delete the resource groups that we have created at the end of the tutorial. We will create the resource group below, so the name should be one you are not already using. Set variables for use throughout the tutorial Then we will create the identity, image definition and gallery that we will need for the image. We will be using some pieces of information repeatedly, so we will create some variables to store that information. This tutorial is based on the article Preview: Create a Linux image and distribute it to a Shared Image Gallery by using Azure CLI in the Microsoft documentation and an earlier version of this tutorial created by David Coronel here. These are normally the best choice for production workloads on Azure and they include access to CIS hardening scripts. We will be using Ubuntu Pro as the starting point for our Ubuntu images. How to create a VM from the image in the Shared Image Gallery.How to create the image version in this Azure Image Builder service.How to create an image definition for Ubuntu Pro 18.04 LTS and customise the image build JSON to apply the CIS hardening and add any other applications we may want in every Ubuntu VM.How to set up your Azure environment with a Shared Image Gallery and Azure resources you need to distribute the image within your environment.The resulting images will have CIS hardening applied to them, which helps meet security best practice, CIS-specific requirements and also improves compliance with the Azure Linux Security Baseline policy. Note: ensure to redact or obfuscate all confidential or identifying information (eg.In this tutorial, we will use Azure Image Builder to create a hardened Ubuntu Pro 18.04 LTS “golden” image in an Azure Shared Image Gallery. If you fix the problem yourself, please post your solution, so that others can also learn. ✻ Smokey says: replace plastic with eco-friendly to fight climate change! If you're posting for help, please include the following details, so that we can help you more efficiently: Any distro, any platform! Explicitly noob-friendly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |