# AzureWebPubSubResource Properties

- Package: [Aspire.Hosting.Azure.WebPubSub](/reference/api/csharp/aspire.hosting.azure.webpubsub.md)
- Type: [AzureWebPubSubResource](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubresource.md)
- Kind: `Properties`
- Members: `5`

Represents an Azure Web PubSub resource.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.WebPubSub/AzureWebPubSubResource.cs#L40)

Gets the connection string template for the manifest for Azure Web PubSub.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Endpoint

- Name: `Endpoint`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.WebPubSub/AzureWebPubSubResource.cs#L25)

Gets the "endpoint" output reference from the bicep template for Azure Web PubSub.

```csharp
public BicepOutputReference Endpoint { get; }
```

## Id

- Name: `Id`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.WebPubSub/AzureWebPubSubResource.cs#L35)

Gets the "id" output reference for the resource.

```csharp
public BicepOutputReference Id { get; }
```

## NameOutputReference

- Name: `NameOutputReference`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.WebPubSub/AzureWebPubSubResource.cs#L30)

Gets the "name" output reference for the resource.

```csharp
public BicepOutputReference NameOutputReference { get; }
```

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.WebPubSub/AzureWebPubSubResource.cs#L48)

Gets the service endpoint URI expression for the Azure Web PubSub resource.

```csharp
public ReferenceExpression UriExpression { get; }
```

## Remarks

Format: `https://{name}.webpubsub.azure.com`.
