10000 Azure Provider 4.20.0 `azurerm_kubernetes_cluster_trusted_access_role_binding` No Registered Resource Provider · Issue #28838 · hashicorp/terraform-provider-azurerm · GitHub
[go: up one dir, main page]

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

Azure Provider 4.20.0 azurerm_kubernetes_cluster_trusted_access_role_binding No Registered Resource Provider #28838

Open
1 task done
brad2190 opened this issue Feb 21, 2025 · 4 comments

Comments

@brad2190
Copy link
brad2190 commented Feb 21, 2025

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.10.5 azurerm_kubernetes_cluster_trusted_access_role_binding

AzureRM Provider Version

4.20.0

Affected Resource(s)/Data Source(s)

azurerm_kubernetes_cluster_trusted_access_role_binding

Terraform Configuration Files

resource "azurerm_kubernetes_cluster_trusted_access_role_binding" "this" {
  kubernetes_cluster_id = var.aks_cluster_id
  name                  = "BackupVaultBind"
  roles                 = ["Microsoft.DataProtection/backupVaults/backup-operator"]
  source_resource_id    = var.backup_vault_id
}

Debug Output/Panic Output

│ Trusted Access Role Binding Name: "BackupVaultBind"): unexpected status 400
│ (400 Bad Request) with error: NoRegisteredProviderFound: No registered
│ resource provider found for location 'westeurope' and API version
│ '2023-03-02-preview' for type 'managedClusters'. The supported api-versions
│ are '2017-08-31, 2018-03-31, 2019-02-01, 2019-04-01, 2019-06-01,
│ 2019-08-01, 2019-10-01, 2019-11-01, 2020-01-01, 2020-02-01, 2020-03-01,
│ 2020-04-01, 2020-06-01, 2020-07-01, 2020-09-01, 2020-11-01, 2020-12-01,
│ 2021-02-01, 2021-03-01, 2021-05-01, 2021-07-01, 2021-08-01, 2021-09-01,
│ 2021-10-01, 2022-01-01, 2022-02-01, 2022-03-01, 2022-04-01, 2022-06-01,
│ 2022-07-01, 2022-08-01, 2022-09-01, 2022-11-01, 2023-01-01, 2023-02-01,
│ 2023-03-01, 2023-04-01, 2023-04-02-preview, 2023-05-01, 2023-05-02-preview,
│ 2023-06-01, 2023-06-02-preview, 2023-07-01, 2023-07-02-preview, 2023-08-01,
│ 2023-08-02-preview, 2023-09-01, 2023-09-02-preview, 2023-10-01,
│ 2023-10-02-preview, 2023-11-01, 2023-11-02-preview, 2024-01-01,
│ 2024-01-02-preview, 2024-02-01, 2024-02-02-preview, 2024-03-02-preview,
│ 2024-04-02-preview, 2024-05-01, 2024-05-02-preview, 2024-06-01,
│ 2024-06-02-preview, 2024-07-01, 2024-07-02-preview, 2024-08-01,
│ 2024-08-02-preview, 2024-09-01, 2024-09-02-preview, 2024-10-01,
│ 2024-10-02-preview'. The supported locations are 'australiacentral,
│ australiacentral2, australiaeast, australiasoutheast, brazilsouth,
│ brazilsoutheast, canadacentral, canadaeast, centralindia, centralus,
│ eastasia, eastus, eastus2, francecentral, francesouth, germanynorth,
│ germanywestcentral, israelcentral, italynorth, japaneast, japanwest,
│ jioindiacentral, jioindiawest, koreacentral, koreasouth, mexicocentral,
│ newzealandnorth, northcentralus, northeurope, norwayeast, norwaywest,
│ polandcentral, qatarcentral, southafricanorth, southafricawest,
│ southcentralus, southindia, southeastasia, spaincentral, swedencentral,
│ switzerlandnorth, switzerlandwest, uaecentral, uaenorth, uksouth, ukwest,
│ westcentralus, westeurope, westus, westus2, westus3'.

Expected Behaviour

Previously created resource does not prevent Terraform operation.

Actual Behaviour

Plan fails with API availability error.

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@zshel
Copy link
zshel commented Feb 21, 2025

I had an already existing azurerm_kubernetes_cluster_trusted_access_role_binding resource deployed to Azure with Terraform. and while refreshing the state I had the same issue on the 4.20 azurerm provider. I tried downgrading to 4.16, and still the same issue. I then decided to delete the trusted access role binding with the azure cli tool, remove it from my TF state and then try to recreate the resource with Terraform (both on 4.20 and 4.16) and the same issue continued to persist. I'm also in the westeurope region if that's helpful information.

@virasana
Copy link
virasana commented Feb 21, 2025

This is happening today (21 Feb 2025) on 4.20 ov the azurerm provider.

I have registered the preview as directed here: https://registry.terraform.io/providers/hashicorp/Azurerm/latest/docs/resources/kubernetes_cluster_trusted_access_role_binding

i.e.
"
Note: This Resource is in Preview to use this you must be opted into the Preview. You can do this by running az feature register --namespace Microsoft.ContainerService --name TrustedAccessPreview and then az provider register -n Microsoft.ContainerService
"

See my terraform version below:

$>terraform version
Terraform v1.10.2
on darwin_arm64

  • provider registry.terraform.io/hashicorp/azurerm v4.20.0

Your version of Terraform is out of date! The latest version
is 1.10.5. You can update by downloading from https://www.terraform.io/downloads.html

The behaviour is erratic.

@sylbae
Copy link
sylbae commented Feb 21, 2025

same here, it started today for us... problem comes from API version 2023-03-02-preview which seems to be no longer available.

@nagarajukit
Copy link

Same issue here. Unable to find the solution. Tried to upgrade azapi version, azurerm version. No luck.

Trusted Access Role Binding Name: "vault-aks-binding"): unexpected status 400
(400 Bad Request) with error: NoRegisteredProviderFound: No registered
resource provider found for location 'westeurope' and API version
'2023-03-02-preview' for type 'managedClusters'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
0