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 Cache for Redis template fails to deploy it diagnosticsEnabled is set to true. #13566

Open
tmacam opened this issue Sep 15, 2023 · 0 comments

Comments

@tmacam
Copy link

tmacam commented Sep 15, 2023

microsoft.cache/redis-cache

Issue Details

Deploying Azure Cache for Redis template with diagnostics enable causes an error

{
  "code": "BadRequest",
  "message": "Diagnostic settings does not support retention for new diagnostic settings."
}

This happens, it seems, because retention is tied to the enabling diagnostics:

enabled: diagnosticsEnabled
retentionPolicy: {
days: 90
enabled: diagnosticsEnabled
}

And retention itself was deprecated:

The Diagnostic Settings Storage Retention feature is being deprecated. To configure retention for logs and metrics use Azure Storage Lifecycle Management.

but this template wasn't updated to reflect that.

Repro steps (if necessary, delete otherwise)

  1. Deploy https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.cache/redis-cache/main.bicep with diagnosticsEnabled: true
  2. See the sub-deployment for "Diagnostic settings" fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant