withServiceBusRoleAssignments
Method
interface ContainerResource { // ... omitted for brevity withServiceBusRoleAssignments( target: AzureServiceBusResource, roles: AzureServiceBusRole[]): IResource;}Signature
method
withServiceBusRoleAssignmentsbuilderAssigns 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
targetAzureServiceBusResourcerolesAzureServiceBusRole[]Returns
IResourceApplies 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