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.58k stars 4.62k forks source link

Data Source: azurerm_api_management missing tenant_access information #19406

Closed schmallaria closed 1 year ago

schmallaria commented 1 year ago

Is there an existing issue for this?

Community Note

Terraform Version

1.2

AzureRM Provider Version

3.32

Affected Resource(s)/Data Source(s)

azurerm_api_management

Terraform Configuration Files

data "azurerm_api_management" "apim" {
  name                = "swo-ip-apim-${var.environment}"
  resource_group_name = var.resource_group_name
}

resource "azurerm_key_vault_secret" "apim_management_key" {
  name         = "APIM-ManagementKey"
  value        = data.azurerm_api_management.apim.tenant_access[0].primary_key
  key_vault_id = var.keyvault_ressource_id
}

Debug Output/Panic Output

n/a

Expected Behaviour

Data source azurerm_api_management should export a tenant_access information block.

Actual Behaviour

When accessing the data source azurerm_api_management the following error occurs:

This object has no argument, nested block, or exported attribute named "tenant_access".

Steps to Reproduce

No response

Important Factoids

No response

References

The API Management Rest API has an valid endpoint to get those information:

https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/tenant-access/get?tabs=HTTP

sinbai commented 1 year ago

@schmallaria thanks for opening this issue. PR has been submitted to support tenant_access for data.azurerm_api_management.

schmallaria commented 1 year ago

Great. Thanks alot. Very fast... :+1:

github-actions[bot] commented 1 year ago

This functionality has been released in v3.34.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

github-actions[bot] commented 1 year ago

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.