Skip to content

Commit eae759e

Browse files
authored
Update build-image-with-packer.md
Ubuntu image isn't valid.
1 parent 90583ae commit eae759e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/virtual-machines/linux/build-image-with-packer.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ Create a file named *ubuntu.json* and paste the following content. Enter your ow
8787
"managed_image_name": "myPackerImage",
8888

8989
"os_type": "Linux",
90-
"image_publisher": "Canonical",
91-
"image_offer": "UbuntuServer",
92-
"image_sku": "20.04-LTS",
90+
"image_publisher": "canonical",
91+
"image_offer": "0001-com-ubuntu-server-jammy",
92+
"image_sku": "22_04-lts",
9393

9494
"azure_tags": {
9595
"dept": "Engineering",
@@ -127,9 +127,9 @@ source "azure-arm" "autogenerated_1" {
127127
}
128128
client_id = "f5b6a5cf-fbdf-4a9f-b3b8-3c2cd00225a4"
129129
client_secret = "0e760437-bf34-4aad-9f8d-870be799c55d"
130-
image_offer = "UbuntuServer"
131-
image_publisher = "Canonical"
132-
image_sku = "20.04-LTS"
130+
image_offer = "0001-com-ubuntu-server-jammy"
131+
image_publisher = "canonical"
132+
image_sku = "22_04-lts"
133133
location = "East US"
134134
managed_image_name = "myPackerImage"
135135
managed_image_resource_group_name = "myResourceGroup"
@@ -151,7 +151,7 @@ build {
151151
}
152152
```
153153

154-
This template builds an Ubuntu 20.04 LTS image, installs NGINX, then deprovisions the VM.
154+
This template builds an Ubuntu 22.04 LTS image, installs NGINX, then deprovisions the VM.
155155

156156
> [!NOTE]
157157
> If you expand on this template to provision user credentials, adjust the provisioner command that deprovisions the Azure agent to read `-deprovision` rather than `deprovision+user`.

0 commit comments

Comments
 (0)