Describe the bug
Workspaces are created with storage accounts (and possibly other resources) that use the last four digits of the workspace ID. This can lead to collisions, such as the message below:
storage.AccountsClient#Create: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="StorageAccountAlreadyTaken" Message="The storage account named stgws**** is already taken."
That's not too surprising, with only 64K possible names matching that pattern the chance of a collision is not too small. The names need to be much more random than this.
Steps to reproduce
just create lots of workspaces and look for failures.
Azure TRE release version (e.g. v0.14.0 or main):
main
Deployed Azure TRE components - click the (i) in the UI:
Describe the bug Workspaces are created with storage accounts (and possibly other resources) that use the last four digits of the workspace ID. This can lead to collisions, such as the message below:
storage.AccountsClient#Create: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="StorageAccountAlreadyTaken" Message="The storage account named stgws**** is already taken."
That's not too surprising, with only 64K possible names matching that pattern the chance of a collision is not too small. The names need to be much more random than this.
Steps to reproduce
Azure TRE release version (e.g. v0.14.0 or main): main
Deployed Azure TRE components - click the (i) in the UI: