Skip to content

Commit 3e42853

Browse files
author
Ajay Kundnani
committed
Updated Image builder examples to Gen2-Trusted launch
1 parent d8287b6 commit 3e42853

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

articles/virtual-machines/linux/image-builder.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ az sig image-definition create \
135135
--gallery-image-definition $imageDefName \
136136
--publisher myIbPublisher \
137137
--offer myOffer \
138-
--sku 18.04-LTS \
139-
--os-type Linux
138+
--sku 20_04-lts-gen2 \
139+
--os-type Linux \
140+
--hyper-v-generation V2
141+
--features SecurityType=TrustedLaunchSupported
140142
```
141143

142144
## Download and configure the JSON file
@@ -193,6 +195,7 @@ az vm create \
193195
--admin-username aibuser \
194196
--location $location \
195197
--image "/subscriptions/$subscriptionID/resourceGroups/$sigResourceGroup/providers/Microsoft.Compute/galleries/$sigName/images/$imageDefName/versions/latest" \
198+
--security-type TrustedLaunch \
196199
--generate-ssh-keys
197200
```
198201

articles/virtual-machines/windows/image-builder.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ az vm create \
206206
--admin-username aibuser \
207207
--admin-password <password> \
208208
--image $imageName \
209+
--security-type TrustedLaunch \
209210
--location $location
210211
```
211212

0 commit comments

Comments
 (0)