21 references to IdentityResource
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
323existingAppIdentityAnnotation.IdentityResource != identityResource) 401appIdentityAnnotation.IdentityResource is AzureUserAssignedIdentityResource existingAppIdentity)
Aspire.Hosting.Azure.AppContainers (4)
ContainerAppContext.cs (2)
49var appIdentityResource = appIdentityAnnotation.IdentityResource; 90AddAzureClientId(appIdentityAnnotation?.IdentityResource, containerAppContainer.Env);
ContainerAppJobContext.cs (2)
40var appIdentityResource = appIdentityAnnotation.IdentityResource; 72AddAzureClientId(appIdentityAnnotation?.IdentityResource, containerAppContainer.Env);
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
619var appIdentityResource = appIdentityAnnotation.IdentityResource;
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
85var identityClientId = appIdentity.IdentityResource.ClientId; 134WorkloadIdentities[r.Name] = appIdentity.IdentityResource;
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesEnvironmentExtensionsTests.cs (1)
204Assert.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 (5)
AzureUserAssignedIdentityTests.cs (5)
124Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 171Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 229Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 312Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 313Assert.Same(identity.Resource, identityAnnotation2.IdentityResource);
Aspire.Hosting.Foundry (1)
Project\ProjectResource.cs (1)
280identity = 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;