21 references to IdentityResource
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
325existingAppIdentityAnnotation.IdentityResource != identityResource) 403appIdentityAnnotation.IdentityResource is AzureUserAssignedIdentityResource existingAppIdentity)
Aspire.Hosting.Azure.AppContainers (4)
ContainerAppContext.cs (2)
46var appIdentityResource = appIdentityAnnotation.IdentityResource; 85AddAzureClientId(appIdentityAnnotation?.IdentityResource, containerAppContainer.Env);
ContainerAppJobContext.cs (2)
40var appIdentityResource = appIdentityAnnotation.IdentityResource; 72AddAzureClientId(appIdentityAnnotation?.IdentityResource, containerAppContainer.Env);
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
585var appIdentityResource = appIdentityAnnotation.IdentityResource;
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
90var identityClientId = appIdentity.IdentityResource.ClientId; 139WorkloadIdentities[r.Name] = appIdentity.IdentityResource;
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesEnvironmentExtensionsTests.cs (1)
205Assert.Same(identity.Resource, appIdentity.IdentityResource);
Aspire.Hosting.Azure.Sandboxes (3)
AzureSandboxContainerDeployment.cs (2)
776appIdentityAnnotation.IdentityResource is not AzureUserAssignedIdentityResource userAssignedIdentity) 797appIdentityAnnotation.IdentityResource is not AzureUserAssignedIdentityResource userAssignedIdentity)
AzureSandboxGroupResource.cs (1)
233if (appIdentity.IdentityResource is not AzureUserAssignedIdentityResource userAssignedIdentity)
Aspire.Hosting.Azure.Tests (5)
AzureUserAssignedIdentityTests.cs (5)
127Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 174Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 232Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 315Assert.Same(identity.Resource, identityAnnotation.IdentityResource); 316Assert.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;