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 Infrastructure Deployment: An invalid access policy assignment was detected due to duplicate entries #6746

Open
1 task done
francescocristallo opened this issue Nov 20, 2024 · 0 comments

Comments

@francescocristallo
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Aspire Project in Visual Studio 2022, during deployment to Container Apps returns this error:

**Error deployment failed: error deploying infrastructure: deploying to subscription:

Deployment Error Details:
InvalidAccessPolicyAssignment: An invalid access policy assignment was detected due to duplicate entries. Please review and ensure that each assignment has a unique combination of assignmentName, policyName, and objectId to avoid such duplicates. For more information, please refer to the following link: https://aka.ms/redis/MicrosoftEntraAuthenticationPrerequisites.**

The first deployment succeeded and created an Azure Redis cache element. From the second Publish, doesn't deploy anymore.

Expected Behavior

Deploy correctly without errors

Steps To Reproduce

var builder = DistributedApplication.CreateBuilder(args);
var cache = builder.AddAzureRedis("MyCache");

builder.AddProject<Projects.Portal>("portal")
.WithReference(cache)
.WithExternalHttpEndpoints();

builder.Build().Run();

Exceptions (if any)

No response

.NET Version info

.NET SDK:
Version: 9.0.100
Commit: 59db016f11
Workload version: 9.0.100-manifests.c6f19616
MSBuild version: 17.12.7+5b8665660

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100\

.NET workloads installed:
[android]
Installation Source: VS 17.13.35507.96, VS 17.12.35514.174
Manifest Version: 35.0.7/9.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.sdk.android\35.0.7\WorkloadManifest.json
Install Type: Msi

[aspire]
Installation Source: VS 17.13.35507.96, VS 17.12.35514.174
Manifest Version: 8.2.2/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.2.2\WorkloadManifest.json
Install Type: Msi

Anything else?

-Asp.net Core 9
-Visual Studio 2022 17.12.1

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