Skip to content

Commit

Permalink
Anbox: Support CoreVM offers
Browse files Browse the repository at this point in the history
The plan field only needs to be populated when using an AzureVM
image. Populating the field when using a CoreVM will result in an
error. This extra logic ensures the plan will only be populated when
using AzureVM and no Pro token is provided.

This change has been tested with
ubuntu-24_04-lts:ubuntu-pro-arm64 (CoreVM) and
0001-com-ubuntu-pro-jammy:pro-22_04-lts-arm64 (AzureVM).

Co-authored-by: Daniel Draper <[email protected]>
  • Loading branch information
AleksaSvitlica and danpdraper committed Dec 6, 2024
1 parent a63536c commit b8df026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickstarts/canonical/anbox/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var dataDisks = addDedicatedDataDiskForLXD ? [
}
] : []

var imagePlan = empty(ubuntuProToken) ? {
var imagePlan = empty(ubuntuProToken) && startsWith(ubuntuImageOffer, '0001') ? {
name: ubuntuImageSKU
product: ubuntuImageOffer
publisher: 'canonical'
Expand Down

0 comments on commit b8df026

Please sign in to comment.