Watch Aspire live streamsDocsTry Aspire

AzureServiceBusResource Properties

ClassProperties9 members
Represents an Azure Service Bus resource.
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection string template for the manifest for the Azure Service Bus endpoint.
public ReferenceExpression ConnectionStringExpression { get; }
HostNameSection titled HostNameReferenceExpression
Gets the host name for the Service Bus namespace.
public ReferenceExpression HostName { get; }
IdSection titled IdBicepOutputReference
Gets the "id" output reference for the resource.
public BicepOutputReference Id { get; }
Gets a value indicating whether the Azure Service Bus resource is running in the local emulator.
public bool IsEmulator { get; }
NameOutputReferenceSection titled NameOutputReferenceBicepOutputReference
Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; }
PortSection titled PortnullableReferenceExpression?
Gets the port for the Service Bus namespace.
public ReferenceExpression? Port { get; }
In container mode, resolves to the container's primary endpoint port. In Azure mode, return null.
ResourceTypeDisplayNameSection titled ResourceTypeDisplayNameoverridestring
Gets the default human-readable name of this resource's type.
public override string ResourceTypeDisplayName { get; }
Override this property to identify the service, such as Redis or PostgreSQL Server, independently of its technical resource type. The default is the resource type. This label does not change the resource name, service discovery, or OpenTelemetry identity. Use ResourceBuilderExtensions.WithResourceTypeDisplayName to override the label for an instance.
ServiceBusEndpointSection titled ServiceBusEndpointBicepOutputReference
Gets the "serviceBusEndpoint" output reference from the bicep template for the Azure Storage resource.
public BicepOutputReference ServiceBusEndpoint { get; }
UriExpressionSection titled UriExpressionReferenceExpression
Gets the connection URI expression for the Service Bus namespace.
public ReferenceExpression UriExpression { get; }
Format: sb://{host}.