24 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)
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)
626var appIdentityResource = appIdentityAnnotation.IdentityResource;
Aspire.Hosting.Azure.EntraId (1)
EntraIdApplicationResource.cs (1)
1109? annotation.IdentityResource as AzureUserAssignedIdentityResource
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)
433Assert.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 (7)
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)
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;