Skip to content

Commit 076f288

Browse files
Merge pull request #233865 from msaenzbosupport/patch-12
[Doc-A-Thon] Updating the image name
2 parents f267c69 + ed1c679 commit 076f288

File tree

1 file changed

+25
-17
lines changed
  • articles/virtual-machines/workloads/redhat

1 file changed

+25
-17
lines changed

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

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,22 @@ The following instructions walk you through the initial deployment process for a
7676
```
7777
7878
1. Accept the image terms.
79-
79+
80+
Option 1
8081
```azurecli
8182
az vm image terms accept --publisher redhat --offer rhel-byos --plan <SKU value here> -o=jsonc
82-
83-
# Example:
84-
az vm image terms accept --publisher redhat --offer rhel-byos --plan rhel-lvm75 -o=jsonc
85-
86-
OR
87-
88-
az vm image terms accept --urn redhat:rhel-byos:rhel-lvm8:8.0.20190620
83+
```
84+
Example
85+
```azurecli
86+
az vm image terms accept --publisher redhat --offer rhel-byos --plan rhel-lvm87 -o=jsonc
87+
```
88+
Option2
89+
```azurecli
90+
az vm image terms accept --urn <SKU value here>
91+
```
92+
Example
93+
```azurecli
94+
az vm image terms accept --urn RedHat:rhel-byos:rhel-lvm87:8.7.2023021503
8995
```
9096
9197
>[!NOTE]
@@ -95,17 +101,19 @@ The following instructions walk you through the initial deployment process for a
95101
96102
```azurecli
97103
az vm create -n <VM name> -g <resource group name> --image <image urn> --validate
98-
99-
# Example:
104+
```
105+
Example:
106+
```azurecli
100107
az vm create -n rhel-byos-vm -g rhel-byos-group --image redhat:rhel-byos:rhel-lvm8:latest --validate
101108
```
102109
103110
1. Provision your VM by running the same command as shown in the previous example without the `--validate` argument.
104111
105112
```azurecli
106113
az vm create -n <VM name> -g <resource group name> --image <image urn>
107-
108-
# Example:
114+
```
115+
Example:
116+
```azurecli
109117
az vm create -n rhel-byos-vm -g rhel-byos-group --image redhat:rhel-byos:rhel-lvm8:latest
110118
```
111119
@@ -127,7 +135,7 @@ The following script is an example. Replace the resource group, location, VM nam
127135
# Define user name and blank password
128136
$securePassword = ConvertTo-SecureString 'TestPassword1!' -AsPlainText -Force
129137
$cred = New-Object System.Management.Automation.PSCredential("azureuser",$securePassword)
130-
Get-AzureRmMarketplaceTerms -Publisher redhat -Product rhel-byos -Name rhel-lvm75 | SetAzureRmMarketplaceTerms -Accept
138+
Get-AzureRmMarketplaceTerms -Publisher redhat -Product rhel-byos -Name rhel-lvm87 | SetAzureRmMarketplaceTerms -Accept
131139
132140
# Create a resource group
133141
New-AzureRmResourceGroup -Name $resourceGroup -Location $location
@@ -160,8 +168,8 @@ The following script is an example. Replace the resource group, location, VM nam
160168
# Create a virtual machine configuration
161169
$vmConfig = New-AzureRmVMConfig -VMName $vmName -VMSize Standard_D3_v2 |
162170
Set-AzureRmVMOperatingSystem -Linux -ComputerName $vmName -Credential $cred |
163-
Set-AzureRmVMSourceImage -PublisherName redhat -Offer rhel-byos -Skus rhel-lvm75 -Version latest | Add- AzureRmVMNetworkInterface -Id $nic.Id
164-
Set-AzureRmVMPlan -VM $vmConfig -Publisher redhat -Product rhel-byos -Name "rhel-lvm75"
171+
Set-AzureRmVMSourceImage -PublisherName redhat -Offer rhel-byos -Skus rhel-lvm87 -Version latest | Add- AzureRmVMNetworkInterface -Id $nic.Id
172+
Set-AzureRmVMPlan -VM $vmConfig -Publisher redhat -Product rhel-byos -Name "rhel-lvm87"
165173
166174
# Configure SSH Keys
167175
$sshPublicKey = Get-Content "$env:USERPROFILE\.ssh\id_rsa.pub"
@@ -184,7 +192,7 @@ For steps to apply Azure Disk Encryption, see [Azure Disk Encryption scenarios o
184192
- If you attempt to provision a VM on a subscription that isn't enabled for this offer, you get the following message:
185193

186194
```
187-
"Offer with PublisherId: redhat, OfferId: rhel-byos, PlanId: rhel-lvm75 is private and can not be purchased by subscriptionId: GUID"
195+
"Offer with PublisherId: redhat, OfferId: rhel-byos, PlanId: rhel-lvm87 is private and can not be purchased by subscriptionId: GUID"
188196
```
189197
190198
In this case, contact Microsoft or Red Hat to enable your subscription.
@@ -195,7 +203,7 @@ For steps to apply Azure Disk Encryption, see [Azure Disk Encryption scenarios o
195203
az vm create –image \
196204
"/subscriptions/GUID/resourceGroups/GroupName/providers/Microsoft.Compute/galleries/GalleryName/images/ImageName/versions/1.0.0" \
197205
-g AnotherGroupName --location EastUS2 -n VMName \
198-
--plan-publisher redhat --plan-product rhel-byos --plan-name rhel-lvm75
206+
--plan-publisher redhat --plan-product rhel-byos --plan-name rhel-lvm87
199207
```
200208
201209
Note the plan parameters in the final line.

0 commit comments

Comments
 (0)