26 references to IdentityResource
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
368existingAppIdentityAnnotation.IdentityResource != identityResource) 446appIdentityAnnotation.IdentityResource is AzureUserAssignedIdentityResource existingAppIdentity)
Aspire.Hosting.Azure.AppContainers (4)
ContainerAppContext.cs (2)
48var appIdentityResource = appIdentityAnnotation.IdentityResource; 89AddAzureClientId(appIdentityAnnotation?.IdentityResource, containerAppContainer.Env);
ContainerAppJobContext.cs (2)
40var appIdentityResource = appIdentityAnnotation.IdentityResource; 72AddAzureClientId(appIdentityAnnotation?.IdentityResource, containerAppContainer.Env);
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
637var appIdentityResource = appIdentityAnnotation.IdentityResource;
Aspire.Hosting.Azure.EntraId (2)
EntraIdApplicationResource.cs (2)
453? annotation.IdentityResource as AzureUserAssignedIdentityResource 1214? annotation.IdentityResource as AzureUserAssignedIdentityResource
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
84var identityClientId = appIdentity.IdentityResource.ClientId; 133WorkloadIdentities[r.Name] = appIdentity.IdentityResource;
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesEnvironmentExtensionsTests.cs (1)
436Assert.Same(identity.Resource, appIdentity.IdentityResource);
Aspire.Hosting.Azure.Sandboxes (3)
AzureSandboxContainerDeployment.cs (2)
774appIdentityAnnotation.IdentityResource is not AzureUserAssignedIdentityResource userAssignedIdentity) 795appIdentityAnnotation.IdentityResource is not AzureUserAssignedIdentityResource userAssignedIdentity)
AzureSandboxGroupResource.cs (1)
231if (appIdentity.IdentityResource is not AzureUserAssignedIdentityResource userAssignedIdentity)
Aspire.Hosting.Azure.Tests (8)
AzureApiManagementTests.cs (1)
2566Assert.Same(identity.Resource, apim.Resource.Annotations.OfType<AppIdentityAnnotation>().Single().IdentityResource);
AzureUserAssignedIdentityTests.cs (7)
115Assert.Same(identity, annotation.IdentityResource); 134Assert.Same(identity.Resource, annotation.IdentityResource); 176Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 223Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 281Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 364Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 365Assert.Same(identity.Resource, identityAnnotation2.IdentityResource);
Aspire.Hosting.Foundry (1)
Project\ProjectResource.cs (1)
282identity = identityAnnotation.IdentityResource;
AzureAppService.AppHost (1)
AppHost.cs (1)
43context.EnvironmentVariables["AZURE_PRINCIPAL_NAME"] = identity.IdentityResource.PrincipalName;
AzureContainerApps.AppHost (1)
AppHost.cs (1)
52context.EnvironmentVariables["AZURE_PRINCIPAL_NAME"] = identity.IdentityResource.PrincipalName;