AzureAppServiceComputeResourceExtensions.PublishAsAzureAppServiceWebsite<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Publishes the specified compute resource as an Azure App Service.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> PublishAsAzureAppServiceWebsite<T>(this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Action<Aspire.Hosting.Azure.AzureResourceInfrastructure,Azure.Provisioning.AppService.WebSite> configure) where T : Aspire.Hosting.ApplicationModel.IComputeResource;
static member PublishAsAzureAppServiceWebsite : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IComputeResource)> * Action<Aspire.Hosting.Azure.AzureResourceInfrastructure, Azure.Provisioning.AppService.WebSite> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IComputeResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.IComputeResource)
<Extension()>
Public Function PublishAsAzureAppServiceWebsite(Of T As IComputeResource) (builder As IResourceBuilder(Of T), configure As Action(Of AzureResourceInfrastructure, WebSite)) As IResourceBuilder(Of T)
Type Parameters
- T
The type of the compute resource.
Parameters
- builder
- IResourceBuilder<T>
The compute resource builder.
- configure
- Action<AzureResourceInfrastructure,WebSite>
The configuration action for the App Service WebSite resource.
Returns
The updated compute resource builder.
Remarks
builder.AddProject<Projects.Api>("name").PublishAsAzureAppServiceWebsite((infrastructure, app) =>
{
// Configure the App Service WebSite resource here
});