@@ -76,16 +76,22 @@ The following instructions walk you through the initial deployment process for a
76
76
```
77
77
78
78
1. Accept the image terms.
79
-
79
+
80
+ Option 1
80
81
```azurecli
81
82
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
89
95
```
90
96
91
97
>[!NOTE]
@@ -127,7 +133,7 @@ The following script is an example. Replace the resource group, location, VM nam
127
133
# Define user name and blank password
128
134
$securePassword = ConvertTo-SecureString 'TestPassword1!' -AsPlainText -Force
129
135
$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
131
137
132
138
# Create a resource group
133
139
New-AzureRmResourceGroup -Name $resourceGroup -Location $location
@@ -160,8 +166,8 @@ The following script is an example. Replace the resource group, location, VM nam
160
166
# Create a virtual machine configuration
161
167
$vmConfig = New-AzureRmVMConfig -VMName $vmName -VMSize Standard_D3_v2 |
162
168
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 "
165
171
166
172
# Configure SSH Keys
167
173
$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
184
190
- If you attempt to provision a VM on a subscription that isn't enabled for this offer, you get the following message:
185
191
186
192
```
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"
188
194
```
189
195
190
196
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
195
201
az vm create –image \
196
202
"/subscriptions/GUID/resourceGroups/GroupName/providers/Microsoft.Compute/galleries/GalleryName/images/ImageName/versions/1.0.0" \
197
203
-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
199
205
```
200
206
201
207
Note the plan parameters in the final line.
0 commit comments