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_api lacks ability to set "Subscription required" flag to false #3863

Closed
SoftwareDreamer opened this issue Jul 17, 2019 · 5 comments

Comments

@SoftwareDreamer
Copy link

SoftwareDreamer commented Jul 17, 2019

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 "+1" or "me too" comments, 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

Terraform (and AzureRM Provider) Version

1.30

Affected Resource(s)

  • azurerm_api_management_api
resource "azurerm_api_management_api" "example" {
  depends_on          = ["azurerm_api_management.mgmttest"]
  name                = "example-api"
  resource_group_name = "${azurerm_resource_group.rg.name}"
  api_management_name = "${azurerm_api_management.mgmttest.name}"
  revision            = "1"
  display_name        = "Example API"
  path                = "example"
  protocols           = ["https"]
  service_url         = "https://some_url"

Expected Behavior

By default the Subscription required flag should be set to false if no subscription_key_parameter_names are provided or there should be an argument subscription_required exposed for this flag. Right now it seems impossible to create an API Management Api without a required subscription (thus allowing simple passthrough/proxy scenarios).

Actual Behavior

Creating an API management always sets the Subscription required flag in the portal to true

Steps to Reproduce

Create any azurerm_api_management with any azurerm_api_management_api.

  1. terraform apply

Important Factoids

none

References

https://www.terraform.io/docs/providers/azurerm/r/api_management_api.html#subscription_key_parameter_names
shows no represenation for the flag
apim_subscription_flag

  • #0000
@jabba2324

This comment has been minimized.

@SoftwareDreamer

This comment has been minimized.

@aczelandi
Copy link
Contributor

hi @tombuildsstuff , is there any plan on implementing this? As @hkochniss pointed out it seems impossible to create an API endpoint without a subscription key.

@jackbatzner
Copy link
Contributor

jackbatzner commented Nov 20, 2019

This actually referenced in PR 4885, please see my comments for why this can't be implemented just yet.

jrauschenbusch pushed a commit to jrauschenbusch/terraform-provider-azurerm that referenced this issue Jun 29, 2020
…hicorp#4885)

Add subscription_required to data and resource for azurerm_api_management_api

(fixes hashicorp#3863 )
@ghost
Copy link

ghost commented Jul 25, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Jul 25, 2020
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

5 participants