withServiceBusRoleAssignments
Method
interface ContainerResource { // ... omitted for brevity withServiceBusRoleAssignments( target: AzureServiceBusResource, roles: AzureServiceBusRole[]): IResource;}Signature
method
withServiceBusRoleAssignments builderAssigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Service Bus namespace. This replaces the default role assignments for the resource.
withServiceBusRoleAssignments( target: AzureServiceBusResource, roles: AzureServiceBusRole[]): IResourceParameters
targetAzureServiceBusResource rolesAzureServiceBusRole[] Returns
IResource Applies to
This method applies to the following types:
type
ContainerResourcetype
ExecutableResourcetype
ProjectResourcetype
ParameterResourcetype
ContainerRegistryResourcetype
DotnetToolResourcetype
ExternalServiceResourcetype
CSharpAppResourcetype
AzureServiceBusQueueResourcetype
AzureServiceBusResourcetype
AzureServiceBusSubscriptionResourcetype
AzureServiceBusTopicResourcetype
AzureServiceBusEmulatorResourcetype
AzureBicepResourcetype
AzureProvisioningResourcetype
AzureEnvironmentResourcetype
AzureUserAssignedIdentityResource