How to retrieve the image name of a private product

CacheGuard 0 Reputation points
2023-05-26T19:09:40.52+00:00

Hi,

We published an image on the marketplace in preview mode and now we want to use the azure client to create a VM with 2 NICs. We need at least two NICs because our image is a security network appliance (embeds a firewall). Additional question: is it possible to create a VM with 2 x NICs using the Azure GUI portal? We are beginners in Azure...

The issue that we are facing is how to specify the image name using the --image option with the command "az". Our offer contains the "CacheGuard" name, so we tried to find the image ID/name using the following command:

az vm image list --offer CacheGuard --all --output table

The result is empty (we guess it's because the image is not yet publicly available).

The command we want to use to create the VM is as follows:

az vm create --resource-group myResourceGroup --name myCG --size Standard_A2_v2 --nics myExternalNIC,myInternalNIC --image myImageName

Where myImageName should be replaced by our private image name (in preview mode). myExternalNIC and myInternalNIC have been previousely created without any errors.

How image names are formed? Where can we find them?

Regards,

The CacheGuard development team



Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,110 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,675 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.