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

azurerm_api_management resource does not support deploying standardv2 SKU #26362

Closed
1 task done
thenukasandeepa opened this issue Jun 18, 2024 · 2 comments
Closed
1 task done

Comments

@thenukasandeepa
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.8.7

AzureRM Provider Version

3.108.0

Affected Resource(s)/Data Source(s)

azurerm_api_management

Terraform Configuration Files

I have encountered an issue where the azurerm_api_management resource in the Terraform Azure Provider does not support the standardv2 SKU. This limitation is causing problems in our infrastructure deployment, as we need to utilize the standardv2 SKU for our API Management resources.

Suggested Solution:
Please add support for the standardv2 SKU in the azurerm_api_management resource within the Terraform Azure Provider.

Thank you for addressing this issue. If more information or clarification is needed, please let me know.

Debug Output/Panic Output

│ Error: invalid value for sku_name (This is not a valid Api Management sku name.)
│ 
│   with module.apim.azurerm_api_management.apim,
│   on ../../modules/terraform-module-azure-api-mgt/r-api-management.tf line 8, in resource "azurerm_api_management" "apim":
│    8:   sku_name        = var.sku_name

Expected Behaviour

The azurerm_api_management resource should successfully create an API Management instance with the standardv2 SKU.

Actual Behaviour

│ Error: invalid value for sku_name (This is not a valid Api Management sku name.)

│ with module.apim.azurerm_api_management.apim,
│ on ../../modules/terraform-module-azure-api-mgt/r-api-management.tf line 8, in resource "azurerm_api_management" "apim":
│ 8: sku_name = var.sku_name

Steps to Reproduce

Define an azurerm_api_management resource with the standardv2 SKU in a Terraform configuration file:

hcl
Copy code
resource "azurerm_api_management" "example" {
name = "example-apim"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
publisher_name = "Example"
publisher_email = "[email protected]"
sku_name = "standardv2" # The problematic SKU
}

Run terraform apply.

Important Factoids

No response

References

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management

@stephybun
Copy link
Member

Duplicate of #25445

@stephybun stephybun marked this as a duplicate of #25445 Jun 18, 2024
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants