Open TonyWildish-BH opened 2 weeks ago
Hey @TonyWildish-BH can you attach a snippet of your file changes?
porter.yaml:
[...]
custom:
# For information on vm_sizes and image_options, see README.me in the guacamole/user-resources folder
vm_sizes:
"2 CPU | 8GB RAM": Standard_D2s_v5
"4 CPU | 16GB RAM": Standard_D4s_v5
"8 CPU | 32GB RAM": Standard_D8s_v5
"16 CPU | 64GB RAM": Standard_D16s_v5
"32 CPU | 128GB RAM": Standard_D32s_v5
"64 CPU | 256GB RAM": Standard_D64s_v5
image_options:
"Ubuntu 18.04":
source_image_reference:
publisher: canonical
[...]
template_schema.json:
[...]
"vm_size": {
"$id": "#/properties/vm_size",
"type": "string",
"title": "VM Size",
"description": "Select size of VM",
"enum": [
"2 CPU | 8GB RAM",
"4 CPU | 16GB RAM",
"8 CPU | 32GB RAM",
"16 CPU | 64GB RAM",
"32 CPU | 128GB RAM",
"64 CPU | 256GB RAM"
],
"updateable": true
[...]
hi tony and you version update in the porter file ??
Yes, I did.
Can someone just tell me what the correct procedure is for updating the sizes? What I actually did so far probably isn’t worth debugging, since I don’t know what I’m doing. It would be preferable to have a correct recipe to follow, but I couldn’t find one in the docs, not for this.
Hi Tony. it is essentially as you have done already. update the port file (including version) update the template schema rebuild the docker image and then run the full pipeline. (we have a shortened one which just deploys the new bundle) The above is a git deployment and your doing a manual deployment. There are 3 stages for a bundle, publish, register, deploy so are you able to deploy using Git?
thanks @Danny-Cooke-CK, it helps to know I'm on the right track. Those are the steps I've done, and yes, manually, the github actions pipeline doesn't work well enough for us to use.
So, I go through these steps, I see my new container deployed in the ACR, and I've verified that the linux VM container does contain my changes (run locally and inspect the contents),
However, my Guacamole instance still uses the old template. I create a new linux VM, check the template version it uses, it's the old one. I've tried deleting my Guacamole service and creating a new one, that doesn't help, it still uses the old template.
I've even tried bumping the Guacamole version and building/deploying that, but that didn't help either.
Do I need to do something specific for Guacamole to pick up the new template?
I finally worked around this by going into CosmosDB and toggling the current
flag on the old and new versions to false
and true
, respectively.
It would be great to know why this didn't happen automatically, but at least I have a workaround now.
Description
In my Azure TRE deployment I am trying to update the list of VM images and sizes for Linux VMs. I've modified the
porter.yaml
file (including changing version), andtemplate_schema.json
, and rebuilt the docker images, pushed them to the registry and registered them. So far, so good.However, when I try to create a new VM from Guacamole, it doesn't offer the options for the new sizes/images.
Steps
The steps I have tried are:
porter.yaml
andtemplate_schema.json
and rebuilt the linux docker image, as mentioned. That didn't help.So my question is, what's the detailed recipe for adding a new option to, say, the
VM Size
menu for a Linux VM?