@@ -24,9 +24,9 @@ When you create a virtual machine image reference, you must specify the followin
24
24
25
25
| ** Image reference property** | ** Example** |
26
26
| --- | --- |
27
- | Publisher | Canonical |
28
- | Offer | UbuntuServer |
29
- | SKU | 20.04-LTS |
27
+ | Publisher | canonical |
28
+ | Offer | 0001-com-ubuntu-server-focal |
29
+ | SKU | 20_04-lts |
30
30
| Version | latest |
31
31
32
32
> [ !TIP]
@@ -89,9 +89,9 @@ new_pool.start_task = start_task
89
89
# Create an ImageReference which specifies the Marketplace
90
90
# virtual machine image to install on the nodes
91
91
ir = batchmodels.ImageReference(
92
- publisher = " Canonical " ,
93
- offer = " UbuntuServer " ,
94
- sku = " 20.04-LTS " ,
92
+ publisher = " canonical " ,
93
+ offer = " 0001-com-ubuntu-server-focal " ,
94
+ sku = " 20_04-lts " ,
95
95
version = " latest" )
96
96
97
97
# Create the VirtualMachineConfiguration, specifying
@@ -118,8 +118,8 @@ images = client.account.list_supported_images()
118
118
image = None
119
119
for img in images:
120
120
if (img.image_reference.publisher.lower() == " canonical" and
121
- img.image_reference.offer.lower() == " ubuntuserver " and
122
- img.image_reference.sku.lower() == " 20.04 -lts" ):
121
+ img.image_reference.offer.lower() == " 0001-com-ubuntu-server-focal " and
122
+ img.image_reference.sku.lower() == " 20_04 -lts" ):
123
123
image = img
124
124
break
125
125
@@ -157,9 +157,9 @@ List<ImageInformation> images =
157
157
ImageInformation image = null ;
158
158
foreach (var img in images )
159
159
{
160
- if (img .ImageReference .Publisher == " Canonical " &&
161
- img .ImageReference .Offer == " UbuntuServer " &&
162
- img .ImageReference .Sku == " 20.04-LTS " )
160
+ if (img .ImageReference .Publisher == " canonical " &&
161
+ img .ImageReference .Offer == " 0001-com-ubuntu-server-focal " &&
162
+ img .ImageReference .Sku == " 20_04-lts " )
163
163
{
164
164
image = img ;
165
165
break ;
@@ -187,9 +187,9 @@ Although the previous snippet uses the [PoolOperations.istSupportedImages](/dotn
187
187
188
188
``` csharp
189
189
ImageReference imageReference = new ImageReference (
190
- publisher : " Canonical " ,
191
- offer : " UbuntuServer " ,
192
- sku : " 20.04-LTS " ,
190
+ publisher : " canonical " ,
191
+ offer : " 0001-com-ubuntu-server-focal " ,
192
+ sku : " 20_04-lts " ,
193
193
version : " latest" );
194
194
```
195
195
::: zone-end
0 commit comments