# withHttpsUpgrade

- Module: [Aspire.Hosting.Azure.AppService](/reference/api/typescript/aspire.hosting.azure.appservice.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Configures whether HTTP endpoints should be automatically upgraded to HTTPS for the Azure App Service environment. By default, HTTP endpoints are upgraded to HTTPS for security and WebSocket compatibility.

## Definition

```typescript
interface AzureAppServiceEnvironmentResource {
  // ... omitted for brevity
  withHttpsUpgrade(upgrade?: boolean): AzureAppServiceEnvironmentResource
}
```

## Parameters

- `upgrade` (`boolean`) `optional` `= True`

## Returns

[AzureAppServiceEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md) `builder`

## Applies to

- [AzureAppServiceEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md)
