Open alexeyshishkin01 opened 4 years ago
@qwordy Please take care of this issue. Thanks.
pls. have a look at GCP example:
gcloud compute images create $INSTANCE_NAME-image \ --family ppro-ent11-centos7 ...
gcloud compute instances create $INSTANCE_NAME-vm \ --image-family=ppro-ent11-centos7 ...
when I create custom image I assign it to the image family
when I create VM from the custom image I specify this image family and the latest version of image from this image family is used automatically
Azure CLI will translate alias to urn. All aliases that Azure CLI supports are defined here. https://github.com/Azure/azure-rest-api-specs/blob/master/arm-compute/quickstart-templates/aliases.json
For the image family, I need to do some investigation.
can I add/change alias or append json file to 'az' command as argument?
Sorry. Currently, Azure CLI doesn't support this feature.
are these aliases only available to select publishers?
Describe the bug I have the following output:
root@Alexey-HP:~# az vm image list --publisher Canonical You are viewing an offline list of images, use --all to retrieve an up-to-date list Offer Publisher Sku Urn UrnAlias Version
UbuntuServer Canonical 18.04-LTS Canonical:UbuntuServer:18.04-LTS:latest UbuntuLTS latest root@Alexey-HP:~#
where UrnAlias is UbuntuLTS.
I can create VM using UrnAlias:
az vm create --image UbuntuLTS ...
When I run the same command for my custom images there's no UrnAlias column (output is empty line):
root@Alexey-HP:~# az vm image list --publisher postgres-pro You are viewing an offline list of images, use --all to retrieve an up-to-date list
root@Alexey-HP:~#
Instead I have to specify '--all' key to get a non-empty output of this command, but in this case the output is long enough.
To Reproduce See above.
Expected behavior How can I get UrnAlias column for my custom image?
or is there functionality of image family, so that I can group my custom images and create VM with simple command like az vm create --image UbuntuLTS ... with the latest version of my family image
Environment summary Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (
az --version
) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)Additional context Add any other context about the problem here.