# AzureServiceBusRule Constructors

- Package: [Aspire.Hosting.Azure.ServiceBus](/reference/api/csharp/aspire.hosting.azure.servicebus.md)
- Type: [AzureServiceBusRule](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebusrule.md)
- Kind: `Constructors`
- Members: `1`

Represents a Service Bus Rule. Initializes a new instance of the [AzureServiceBusRule](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebusrule.md) class.

## AzureServiceBusRule(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusRule.cs#L19-L40)

Represents a Service Bus Rule. Initializes a new instance of the [AzureServiceBusRule](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebusrule.md) class.

```csharp
public class AzureServiceBusRule
{
    public AzureServiceBusRule(
        string name)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)

## Remarks

Use `AzureProvisioningResourceExtensions.ConfigureInfrastructure` to configure specific `Azure.Provisioning` properties.
