Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to update a workspace object in the CosmosDB with the list of template versions that are available #217

Open
3 tasks
TonyWildish-BH opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request EPIC - RBAC & Service Catalogue RBAC features needed for production Production Things that need to be considered for the Production release

Comments

@TonyWildish-BH
Copy link
Collaborator

TonyWildish-BH commented Jan 9, 2025

This depends on #188.

Once the template version information data structure exists, we need a mechanism for the TRE Admin to be able to write that information into a workspace document in the CosmosDB.

This can be a standalone Python/Bash script that calls an Azure/Cosmos CLI tool or REST API to operate directly on the CosmosDB, in the first case.

Acceptance criteria:

  • a script that takes a workspace Resource ID, the name of a JSON file, and contact information for the CosmosDB in some form (e.g. config file or Azure resource ID)
  • the script then locates the document for the workspace with that ID and updates it with the contents of the JSON file
  • any previous instance of the JSON structure in the workspace document should be overwritten.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request EPIC - RBAC & Service Catalogue RBAC features needed for production Production Things that need to be considered for the Production release
Projects
None yet
Development

No branches or pull requests

2 participants