Upgrading Resources Version
Azure TRE workspaces, workspace services, workspace shared services, and user resources are Porter bundles. Porter bundles are based on Cloud Native Application Bundles (CNAB).
When a new bundle version becomes available, users can upgrade their resources to a newer version after building, publishing and registering the bundle template.
Upgrades (and downgrades) are based on CNAB bundle upgrade action.
Bundle template versions follow semantic versioning rules.
Note
Only minor and patch version upgrades are automatically allowed within the Azure TRE upgrade mechanism. Major versions upgrades and any version downgrades are blocked as they are assumed to contain breaking changes or changes that require additional consideration.
For users who wish to upgrade a major version, we highly recommend to read the changelog, review what has changed and take some appropriate action before upgrading using force version update.
How to upgrade a resource using Swagger UI
Resources can be upgrade using Swagger UI, in the following example we show how to upgrade a workspace version from 1.0.0 to 1.0.1, other resources upgrades are similar.
-
First make sure the desired template version is registered, follow these steps if not.
-
Navigate to the Swagger UI at
/api/docs
. -
Log into the Swagger UI using
Authorize
. -
Click
Try it out
on theGET
/api/workspace/{workspace_id}
operation. -
Provide your
workspace_id
in the parameters section and clickExecute
. -
Copy the
_etag
property from the response body. -
Click
Try it out
on thePATCH
/api/workspace/{workspace_id}
operation. -
Provide your
workspace_id
and_etag
parameters which you've just copied. -
Provide the following payload with the desired version in the
Request body
parameter and clickExecute
.1. Review server response, it should include a new{ "templateVersion": "1.0.1", }
operation
document withupgrade
as anaction
andupdating
asstatus
for upgrading the workspace and a message states that the Job is starting. -
Once the upgrade is complete another operation will be created and can be viewed by executing
GET
/api/workspace/{workspace_id}/operations
, review it and make sure itsstatus
isupdated
.
Force version update
If you wish to upgrade a major version, or downgrade to any version, you can override the blocking in the upgrade mechanism by passing force_version_update=true
query parameter to the resource Patch
action.
For example force version patching a workspace: