Open ltalirz opened 1 year ago
The packer JSON files are yet a third place with different information https://github.com/Azure/az-hop/blob/e706d1b78d08891b2366cf97292850c6b261e9cc/packer/azhop-centos79-desktop3d.json#L6-L9
I will try to summarize these metadata. In the config file, the images definition the name map to a packer file name. The publisher, offer, sku and versions are the metadata used to create the image definition in the Shared Image Gallery. These are totally independent from any marketplace meanings. In the .json files used by packer, publisher, offer, sku and version are the one needed to retrieve the image from the azure marketplace used to build the VM on which scripts will be run before the image is captured. Once captured it will be pushed in the SIG using the metadata used in the images section of the config file.
In the config file, the images definition the name map to a packer file name. The publisher, offer, sku and versions are the metadata used to create the image definition in the Shared Image Gallery. These are totally independent from any marketplace meanings.
Could this not be placed in the packer JSON file then to keep it together at the same place?
I believe this information is not referenced directly from the config.yml
- at the queue level you either specify a marketplace URN or a reference to the custom image
can't be in packer directly as these values are only for packer, but it could make sense to have the images defined only in the packer directory.
These are just some comments on the
images:
list in the configuration templatehttps://github.com/Azure/az-hop/blob/3b943a965e72d8757d1b1ec36bdc1e15e4074ebb/config.tpl.yml#L258-L339
publisher
,offer
, ... metadata fields actually used in any way (?)publisher
andoffer
names do not necessarily match the ones listed here. This can be confusing to a new userExample 1
in the list
on the marketplace
Example 2
in the list
on the marketplace:
cc @matt-chan