AzureConnectorNamespaceConnectionResource.withIdentityAccessPolicy

Method
📦 Aspire.Hosting.Azure.ConnectorNamespace v17.0.0-preview.1.26567.5
interface AzureConnectorNamespaceConnectionResource {
// ... omitted for brevity
withIdentityAccessPolicy(
name: string,
identity: AzureUserAssignedIdentityResource,
policyName?: string): AzureConnectorNamespaceConnectionResource;
}

Signature

methodwithIdentityAccessPolicybuilder
Adds a connection access policy for a user-assigned managed identity.
withIdentityAccessPolicy(
name: string,
identity: AzureUserAssignedIdentityResource,
policyName?: string): AzureConnectorNamespaceConnectionResource
namestringThe Aspire resource name for the policy.
identityAzureUserAssignedIdentityResourceThe user-assigned managed identity authorized to use the connection.
policyNamestringoptionalThe optional Azure child resource name. The Aspire resource name is used when omitted.
AzureConnectorNamespaceConnectionResource

Defined on

This method is defined on the following type: