Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithHttpsUpgrade

Method
📦 Aspire.Hosting.Azure.AppContainers v17.0.0
func (AzureContainerAppEnvironmentResource) WithHttpsUpgrade(options ...*WithHttpsUpgradeOptions) AzureContainerAppEnvironmentResource

Signature

methodWithHttpsUpgradebuilder
Configures whether HTTP endpoints should be upgraded to HTTPS in Azure Container Apps. By default, HTTP endpoints are upgraded to HTTPS for security and WebSocket compatibility.
WithHttpsUpgrade(options ...*WithHttpsUpgradeOptions) AzureContainerAppEnvironmentResource
options...*WithHttpsUpgradeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithHttpsUpgradeOptions argument.

Upgrade*boolWhether to upgrade HTTP endpoints to HTTPS. Default is true.
AzureContainerAppEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: