Deploying a Prior Version
Overview
The Azure Marketplace (and Azure Portal) only lets you deploy the latest version of each Plan.
If you want to deploy a previous version (e.g. 3.3.2
), you are not able to do so through the Azure Portal. You would have to do this via the CLI or ARM template.
Get the Image URN
To deploy a previous version (e.g. 3.3.2
), you need to find a handle to this image, which is the image URN.
Run the following command, which lists all images (including their URNs) published by Thorn Technologies:
az vm image list --publisher thorntechnologiesllc --all
Here is a snippet of the output:
{
"offer": "sftpgateway",
"publisher": "thorntechnologiesllc",
"sku": "sftpgateway-3",
"urn": "thorntechnologiesllc:sftpgateway:sftpgateway-3:3.3.2",
"version": "3.3.2"
},
{
"offer": "sftpgateway",
"publisher": "thorntechnologiesllc",
"sku": "sftpgateway-3",
"urn": "thorntechnologiesllc:sftpgateway:sftpgateway-3:3.4.0",
"version": "3.4.0"
},
Look for the urn
value for version 3.3.2
, which is:
thorntechnologiesllc:sftpgateway:sftpgateway-3:3.3.2
Deploy a VM using the Azure CLI
To deploy a previous version of the SFTP Gateway VM via the Azure CLI, run this command:
az vm create \
--resource-group myResourceGroup \
--name myVM \
--image "thorntechnologiesllc:sftpgateway:sftpgateway-3:3.3.2" \
--admin-username azureuser \
--generate-ssh-keys
This deploys a new VM inside a resource group. Here are the command line parameters:
- resource-group: The name of the resource group (remember to replace this value)
- name: The name of the VM (remember to replace this value also)
- image: Specify the image URN
- admin-username: Specify the name of the Linux admin user (e.g.
azureuser
) - generate-ssh-keys: This command generates a set of SSH keys for the Linux admin credentials