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 Redis Cache active_directory_authentication_enabled Can Only Be True for Premium SKUs? #24796

Closed
1 task done
dpickeringjudge opened this issue Feb 6, 2024 · 6 comments · Fixed by #25006
Closed
1 task done

Comments

@dpickeringjudge
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 "+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 and review the contribution guide to help.

Terraform Version

1.4.5

AzureRM Provider Version

3.90.0

Affected Resource(s)/Data Source(s)

azurerm_redis_cache

Terraform Configuration Files

resource "azurerm_redis_cache" "cache" {
  name                          = "azure-cache"
  location                      = azurerm_resource_group.my_db[0].location
  resource_group_name           = azurerm_resource_group.my_db[0].name
  public_network_access_enabled = false
  family                        = "C"
  sku_name                      = "Basic"
  capacity                      = 0
  redis_configuration {
    active_directory_authentication_enabled = true
  }
}

Debug Output/Panic Output

│ Error: parsing Redis Configuration: The `active_directory_authentication_enabled` property requires a `Premium` sku to be set
│ 
│   with azurerm_redis_cache.cache[0],
│   on db.tf line 107, in resource "azurerm_redis_cache" "cache":
│  107: resource "azurerm_redis_cache" "cache" {

Expected Behaviour

Expect Entra Auth to be enabled.

Actual Behaviour

Validation error that suggests we need Premium SKU.

Is there any documentation that supports this limitation? In the Portal we are able to configure Entra Auth on standard SKUs. Wondering why we've introduced this validation in the provider.

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@rcskosir
Copy link
Contributor

rcskosir commented Feb 6, 2024

Thank you for taking the time to raise this! We use Issues in this repository to track feature enhancements and bugs in the Azure Provider. So that we can maintain focus on that, we instead ask that broader questions are raised using one of the Community Resources, such as the Azure Provider forum. With that in mind, I'm going to close this issue.

@rcskosir rcskosir closed this as not planned Won't fix, can't repro, duplicate, stale Feb 6, 2024
@dpickeringjudge
Copy link
Author

Hello @rcskosir thanks for your response -- is it not a bug if their documentation states that it's available in all SKUs yet the provider is requiring premium?

image

@rcskosir
Copy link
Contributor

rcskosir commented Feb 9, 2024

@dpickeringjudge Thanks for the additional information! I will go ahead and reopen this. I see in the screenshot you provided it says preview. I will do some digging around to see when the Premium SKU was added, this may be a bug, or it may be an enhancement thats needed, TBD.

EDIT: It looks like these were the initial issue and PR that added active_directory_authentication_enabled #23777 and #23976

@rcskosir rcskosir reopened this Feb 9, 2024
@MichalSino
Copy link

@rcskosir Do we know when it will be fixed?

@pregress
Copy link

Please consider doing this together with: #24692 & also consider managing access policies.

So one can assign managed identites/ service principals to access the cache.

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 Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants