Make workspace shared storage quota updateable #4659
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR enables TRE administrators to update workspace shared storage quotas through the TRE interface without requiring workspace recreation.
Problem
Currently, the
shared_storage_quotafield in workspace templates is not marked as updateable, preventing users from modifying storage quotas through the TRE interface. This has caused issues where workspaces run out of their default 500GB allocation and administrators cannot easily increase the quota.While Azure supports in-place quota updates for storage file shares, the TRE template schema was missing the
"updateable": trueflag for this field.Solution
Added the
"updateable": trueproperty to theshared_storage_quotafield in the workspace base template schema. The underlying infrastructure already supports this operation:azapi_resourcewith Azure Storage API 2023-05-01shareQuotaproperty directly maps to the variableChanges
"updateable": truetoshared_storage_quotafieldImpact
app_service_plan_skuandenable_airlockTechnical Notes
When quota is decreased below current usage, Azure gracefully handles this by allowing the operation but preventing new file uploads until usage drops below the new limit.
Fixes #4314.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.