Skip to content

Commit ca3b536

Browse files
[Doc-A-Thon] Updating the image name
Updating image name
1 parent 5380b2d commit ca3b536

File tree

1 file changed

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

1 file changed

+19
-13
lines changed

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

Lines changed: 19 additions & 13 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]
@@ -127,7 +133,7 @@ The following script is an example. Replace the resource group, location, VM nam
127133
# Define user name and blank password
128134
$securePassword = ConvertTo-SecureString 'TestPassword1!' -AsPlainText -Force
129135
$cred = New-Object System.Management.Automation.PSCredential("azureuser",$securePassword)
130-
Get-AzureRmMarketplaceTerms -Publisher redhat -Product rhel-byos -Name rhel-lvm75 | SetAzureRmMarketplaceTerms -Accept
136+
Get-AzureRmMarketplaceTerms -Publisher redhat -Product rhel-byos -Name rhel-lvm87 | SetAzureRmMarketplaceTerms -Accept
131137
132138
# Create a resource group
133139
New-AzureRmResourceGroup -Name $resourceGroup -Location $location
@@ -160,8 +166,8 @@ The following script is an example. Replace the resource group, location, VM nam
160166
# Create a virtual machine configuration
161167
$vmConfig = New-AzureRmVMConfig -VMName $vmName -VMSize Standard_D3_v2 |
162168
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"
169+
Set-AzureRmVMSourceImage -PublisherName redhat -Offer rhel-byos -Skus rhel-lvm87 -Version latest | Add- AzureRmVMNetworkInterface -Id $nic.Id
170+
Set-AzureRmVMPlan -VM $vmConfig -Publisher redhat -Product rhel-byos -Name "rhel-lvm87"
165171
166172
# Configure SSH Keys
167173
$sshPublicKey = Get-Content "$env:USERPROFILE\.ssh\id_rsa.pub"
@@ -184,7 +190,7 @@ For steps to apply Azure Disk Encryption, see [Azure Disk Encryption scenarios o
184190
- If you attempt to provision a VM on a subscription that isn't enabled for this offer, you get the following message:
185191

186192
```
187-
"Offer with PublisherId: redhat, OfferId: rhel-byos, PlanId: rhel-lvm75 is private and can not be purchased by subscriptionId: GUID"
193+
"Offer with PublisherId: redhat, OfferId: rhel-byos, PlanId: rhel-lvm87 is private and can not be purchased by subscriptionId: GUID"
188194
```
189195
190196
In this case, contact Microsoft or Red Hat to enable your subscription.
@@ -195,7 +201,7 @@ For steps to apply Azure Disk Encryption, see [Azure Disk Encryption scenarios o
195201
az vm create –image \
196202
"/subscriptions/GUID/resourceGroups/GroupName/providers/Microsoft.Compute/galleries/GalleryName/images/ImageName/versions/1.0.0" \
197203
-g AnotherGroupName --location EastUS2 -n VMName \
198-
--plan-publisher redhat --plan-product rhel-byos --plan-name rhel-lvm75
204+
--plan-publisher redhat --plan-product rhel-byos --plan-name rhel-lvm87
199205
```
200206
201207
Note the plan parameters in the final line.

0 commit comments

Comments
 (0)