Skip to content

Commit 972d590

Browse files
authored
Merge pull request #101079 from asinn826/master
Update BYOS doc with minor changes
2 parents 23da9e4 + 19d831d commit 972d590

File tree

1 file changed

+13
-18
lines changed
  • articles/virtual-machines/workloads/redhat

1 file changed

+13
-18
lines changed

articles/virtual-machines/workloads/redhat/byos.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Red Hat Enterprise Linux bring-your-own-susbcription Azure images | Microsoft Docs
2+
title: Red Hat Enterprise Linux bring-your-own-subscription Azure images | Microsoft Docs
33
description: Learn about bring-your-own-subscription images for Red Hat Enterprise Linux on Azure
44
services: virtual-machines-linux
55
documentationcenter: ''
@@ -13,7 +13,7 @@ ms.devlang: na
1313
ms.topic: article
1414
ms.tgt_pltfrm: vm-linux
1515
ms.workload: infrastructure-services
16-
ms.date: 6/6/2019
16+
ms.date: 1/14/2020
1717
ms.author: alsin
1818

1919
---
@@ -23,7 +23,7 @@ Red Hat Enterprise Linux (RHEL) images are available in Azure via a pay-as-you-g
2323

2424
## Important points to consider
2525

26-
- The Red Hat Gold Images provided in this program are production-ready RHEL images similar the RHEL PAYG images in the Azure Gallery/Marketplace. The registration process to obtain the images is in preview.
26+
- The Red Hat Gold Images provided in this program are production-ready RHEL images similar the RHEL PAYG images in the Azure Gallery/Marketplace.
2727

2828
- The images follow our current policies described in [Red Hat Enterprise Linux images on Azure](./redhat-images.md)
2929

@@ -35,12 +35,6 @@ Red Hat Enterprise Linux (RHEL) images are available in Azure via a pay-as-you-g
3535

3636
- It is currently not possible to dynamically switch between BYOS and PAYG billing models for Linux images. Redeploying the VM from the respective image is required to switch the billing model
3737

38-
- Azure Disk Encryption (ADE) is supported on these Red Hat Gold Images. ADE support is currently in preview. You must register with Red Hat using subscription-manager before configuring ADE. Once registered, to configure ADE refer to: [Enable Azure Disk Encryption for Linux IaaS VMs](https://docs.microsoft.com/azure/virtual-machines/linux/disk-encryption-overview)
39-
40-
- While the images won’t change (beyond standard updates and patches), the registration process is in preview and the flow will be further improved to streamline the process
41-
42-
- You have full control of the VMs already provisioned from these images or its snapshots regardless of the final implementation
43-
4438
## Requirements and conditions to access the Red Hat Gold Images
4539

4640
1. Get familiar with the [Red Hat Cloud Access program](https://www.redhat.com/en/technologies/cloud-computing/cloud-access) terms and enable your Red Hat subscriptions for Cloud Access at [Red Hat Subscription Manager](https://access.redhat.com/management/cloud). You will need to have on hand the Azure subscription(s) that are going to be registered for Cloud Access.
@@ -117,22 +111,23 @@ The following set of instructions will walk you through the initial deployment p
117111
>On RHEL 8 `dnf` and `yum` are interchangeable, more about this in the [RHEL 8 Admin Guide](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/installing-software-with-yum_configuring-basic-system-settings).
118112
119113
120-
## Use the Red Hat Gold Images from the Azure PowerShell Cmdlet
114+
## Use the Red Hat Gold Images from PowerShell
121115
The following is an example script. You should replace the Resource Group, location, VM name, login information, and other variables with the configuration of your choosing. Publisher and plan information must be lowercase.
116+
122117
```powershell-interactive
123118
# Variables for common values
124119
$resourceGroup = "testbyos"
125120
$location = "canadaeast"
126121
$vmName = "test01"
127122
128123
# Define user name and blank password
129-
$securePassword = ConvertTo-SecureString 'Desjardinslab1!' -AsPlainText -Force
124+
$securePassword = ConvertTo-SecureString 'TestPassword1!' -AsPlainText -Force
130125
$cred = New-Object System.Management.Automation.PSCredential("azureuser",$securePassword)
131126
Get-AzureRmMarketplaceTerms -Publisher RedHat -Product rhel-byos -Name rhel-lvm75 | SetAzureRmMarketplaceTerms -Accept
132-
127+
133128
# Create a resource group
134129
New-AzureRmResourceGroup -Name $resourceGroup -Location $location
135-
130+
136131
# Create a subnet configuration
137132
$subnetConfig = New-AzureRmVirtualNetworkSubnetConfig -Name mySubnet -AddressPrefix 192.168.1.0/24
138133
@@ -143,7 +138,7 @@ The following is an example script. You should replace the Resource Group, locat
143138
# Create a public IP address and specify a DNS name
144139
$pip = New-AzureRmPublicIpAddress -ResourceGroupName $resourceGroup -Location
145140
$location `-Name "mypublicdns$(Get-Random)" -AllocationMethod Static -IdleTimeoutInMinutes 4
146-
141+
147142
# Create an inbound network security group rule for port 22
148143
$nsgRuleSSH = New-AzureRmNetworkSecurityRuleConfig -Name
149144
myNetworkSecurityGroupRuleSSH -Protocol Tcp `
@@ -163,11 +158,11 @@ The following is an example script. You should replace the Resource Group, locat
163158
Set-AzureRmVMOperatingSystem -Linux -ComputerName $vmName -Credential $cred |
164159
Set-AzureRmVMSourceImage -PublisherName redhat -Offer rhel-byos -Skus rhel-lvm75 -Version latest | Add- AzureRmVMNetworkInterface -Id $nic.Id
165160
Set-AzureRmVMPlan -VM $vmConfig -Publisher redhat -Product rhel-byos -Name "rhel-lvm75"
166-
161+
167162
# Configure SSH Keys
168-
#$sshPublicKey = Get-Content "$env:USERPROFILE\.ssh\id_rsa.pub"
169-
#Add-AzureRmVMSshPublicKey -VM $vmconfig -KeyData $sshPublicKey -Path "/home/azureuser/.ssh/authorized_keys"
170-
163+
$sshPublicKey = Get-Content "$env:USERPROFILE\.ssh\id_rsa.pub"
164+
Add-AzureRmVMSshPublicKey -VM $vmconfig -KeyData $sshPublicKey -Path "/home/azureuser/.ssh/authorized_keys"
165+
171166
# Create a virtual machine
172167
New-AzureRmVM -ResourceGroupName $resourceGroup -Location $location -VM $vmConfig
173168
```

0 commit comments

Comments
 (0)