@@ -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]
@@ -95,17 +101,19 @@ The following instructions walk you through the initial deployment process for a
95
101
96
102
```azurecli
97
103
az vm create -n <VM name> -g <resource group name> --image <image urn> --validate
98
-
99
- # Example:
104
+ ```
105
+ Example:
106
+ ```azurecli
100
107
az vm create -n rhel-byos-vm -g rhel-byos-group --image redhat:rhel-byos:rhel-lvm8:latest --validate
101
108
```
102
109
103
110
1. Provision your VM by running the same command as shown in the previous example without the `--validate` argument.
104
111
105
112
```azurecli
106
113
az vm create -n <VM name> -g <resource group name> --image <image urn>
107
-
108
- # Example:
114
+ ```
115
+ Example:
116
+ ```azurecli
109
117
az vm create -n rhel-byos-vm -g rhel-byos-group --image redhat:rhel-byos:rhel-lvm8:latest
110
118
```
111
119
@@ -127,7 +135,7 @@ The following script is an example. Replace the resource group, location, VM nam
127
135
# Define user name and blank password
128
136
$securePassword = ConvertTo-SecureString 'TestPassword1!' -AsPlainText -Force
129
137
$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
131
139
132
140
# Create a resource group
133
141
New-AzureRmResourceGroup -Name $resourceGroup -Location $location
@@ -160,8 +168,8 @@ The following script is an example. Replace the resource group, location, VM nam
160
168
# Create a virtual machine configuration
161
169
$vmConfig = New-AzureRmVMConfig -VMName $vmName -VMSize Standard_D3_v2 |
162
170
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 "
165
173
166
174
# Configure SSH Keys
167
175
$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
184
192
- If you attempt to provision a VM on a subscription that isn't enabled for this offer, you get the following message:
185
193
186
194
```
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"
188
196
```
189
197
190
198
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
195
203
az vm create –image \
196
204
"/subscriptions/GUID/resourceGroups/GroupName/providers/Microsoft.Compute/galleries/GalleryName/images/ImageName/versions/1.0.0" \
197
205
-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
199
207
```
200
208
201
209
Note the plan parameters in the final line.
0 commit comments