14 references to IdentityResource
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
195
existingAppIdentityAnnotation.
IdentityResource
!= identityResource)
270
appIdentityAnnotation.
IdentityResource
is AzureUserAssignedIdentityResource existingAppIdentity)
Aspire.Hosting.Azure.AppContainers (4)
ContainerAppContext.cs (2)
46
var appIdentityResource = appIdentityAnnotation.
IdentityResource
;
85
AddAzureClientId(appIdentityAnnotation?.
IdentityResource
, containerAppContainer.Env);
ContainerAppJobContext.cs (2)
42
var appIdentityResource = appIdentityAnnotation.
IdentityResource
;
74
AddAzureClientId(appIdentityAnnotation?.
IdentityResource
, containerAppContainer.Env);
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
490
var appIdentityResource = appIdentityAnnotation.
IdentityResource
;
Aspire.Hosting.Azure.Tests (5)
AzureUserAssignedIdentityTests.cs (5)
124
Assert.Same(identity.Resource, identityAnnotation.
IdentityResource
);
171
Assert.Same(identity.Resource, identityAnnotation.
IdentityResource
);
227
Assert.Same(identity.Resource, identityAnnotation.
IdentityResource
);
308
Assert.Same(identity.Resource, identityAnnotation.
IdentityResource
);
309
Assert.Same(identity.Resource, identityAnnotation2.
IdentityResource
);
AzureAppService.AppHost (1)
Program.cs (1)
41
context.EnvironmentVariables["AZURE_PRINCIPAL_NAME"] = identity.
IdentityResource
.PrincipalName;
AzureContainerApps.AppHost (1)
Program.cs (1)
52
context.EnvironmentVariables["AZURE_PRINCIPAL_NAME"] = identity.
IdentityResource
.PrincipalName;