hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.51k stars 4.6k forks source link

Support for API Management Workspaces #21109

Open alexwiese opened 1 year ago

alexwiese commented 1 year ago

Is there an existing issue for this?

Community Note

Description

Add support for API Management Workspaces.

New or Affected Resource(s)/Data Source(s)

azurerm_api_management_workspace

Potential Terraform Configuration

resource "azurerm_api_management_workspace" "my_workspace" {
    api_management_name = "my-apim"
    resource_group_name = "my-rg"
    name = "my-workspace"
    description = "description"

}

# Deploy an API to a workspace
resource "azurerm_api_management_api" "api" {
  name                = "my-api"
  api_management_name = "my-apim"
  resource_group_name = "my-rg"
  workspace_id        = azurerm_api_management_workspace.my_workspace.id
}

References

https://learn.microsoft.com/en-us/azure/api-management/workspaces-overview

heller-tobias commented 1 year ago

Having workspaces for Azure API Management in Terraform would make managing and deploying APIs easier and faster. I fully support this feature request.

christopher-pope commented 6 months ago

Do we have any update on when workspaces will be supported.

lahiruperamune commented 2 weeks ago

We're eagerly awaiting this feature. Are there any updates? As a workaround, we're currently using azapi_resource, but it would be great to have an azurerm resource for this.

didaskein commented 1 week ago

Workspace are in GA now :-) https://azure.microsoft.com/en-us/updates/v2/workspaces-in-azure-api-management I can't wait for this to be supported in Terraform ;)