withContainerRegistryRoleAssignments

Method
📦 Aspire.Hosting.Azure.ContainerRegistry v17.0.0
interface ContainerResource {
// ... omitted for brevity
withContainerRegistryRoleAssignments(
target: AzureContainerRegistryResource,
roles: AzureContainerRegistryRole[]): IResource;
}

Signature

methodwithContainerRegistryRoleAssignmentsbuilder
Adds role assignments to the specified Azure Container Registry resource.
withContainerRegistryRoleAssignments(
target: AzureContainerRegistryResource,
roles: AzureContainerRegistryRole[]): IResource
targetAzureContainerRegistryResourceThe target Azure Container Registry resource.
rolesAzureContainerRegistryRole[]The Azure Container Registry roles to assign to the resource.
IResource

Applies to

This method applies to the following types: