Multiple workspace states in Azurerm backend

Hello all,

I have a question regarding storing states of multiple workspaces in the azurerm backend.

This page says that the azurerm backend supports multiple workspace states.

How exactly can this be setup, since the key parameter is not allowed to be a variable?

Never mind, I figured out how it works.

If you intend to use multiple workspaces with Azurerm, use a generic key. When you create a workspace and apply into it, a state file with the name <key_name>env:<workspace_name> is created.