次の方法で共有


AzurePostgresExtensions.AsAzurePostgresFlexibleServer Method

Definition

Overloads

AsAzurePostgresFlexibleServer(IResourceBuilder<PostgresServerResource>)
Obsolete.

Configures resource to use Azure for local development and when doing a deployment via the Azure Developer CLI.

AsAzurePostgresFlexibleServer(IResourceBuilder<PostgresServerResource>, Action<IResourceBuilder<AzurePostgresResource>,ResourceModuleConstruct, PostgreSqlFlexibleServer>)

Configures resource to use Azure for local development and when doing a deployment via the Azure Developer CLI.

AsAzurePostgresFlexibleServer(IResourceBuilder<PostgresServerResource>)

Source:
AzurePostgresExtensions.cs
Source:
AzurePostgresExtensions.cs

Caution

This method is obsolete and will be removed in a future version. Use AddAzurePostgresFlexibleServer instead to add an Azure PostgreSQL Flexible Server resource.

Configures resource to use Azure for local development and when doing a deployment via the Azure Developer CLI.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> AsAzurePostgresFlexibleServer (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> builder);
[System.Obsolete("This method is obsolete and will be removed in a future version. Use AddAzurePostgresFlexibleServer instead to add an Azure PostgreSQL Flexible Server resource.")]
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> AsAzurePostgresFlexibleServer (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> builder);
static member AsAzurePostgresFlexibleServer : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource>
[<System.Obsolete("This method is obsolete and will be removed in a future version. Use AddAzurePostgresFlexibleServer instead to add an Azure PostgreSQL Flexible Server resource.")>]
static member AsAzurePostgresFlexibleServer : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource>
<Extension()>
Public Function AsAzurePostgresFlexibleServer (builder As IResourceBuilder(Of PostgresServerResource)) As IResourceBuilder(Of PostgresServerResource)

Parameters

Returns

A reference to the IResourceBuilder<T> builder.

Attributes

Applies to

AsAzurePostgresFlexibleServer(IResourceBuilder<PostgresServerResource>, Action<IResourceBuilder<AzurePostgresResource>,ResourceModuleConstruct, PostgreSqlFlexibleServer>)

Source:
AzurePostgresExtensions.cs

Configures resource to use Azure for local development and when doing a deployment via the Azure Developer CLI.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> AsAzurePostgresFlexibleServer (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzurePostgresResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServer>? configureResource);
static member AsAzurePostgresFlexibleServer : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzurePostgresResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServer> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource>
<Extension()>
Public Function AsAzurePostgresFlexibleServer (builder As IResourceBuilder(Of PostgresServerResource), configureResource As Action(Of IResourceBuilder(Of AzurePostgresResource), ResourceModuleConstruct, PostgreSqlFlexibleServer)) As IResourceBuilder(Of PostgresServerResource)

Parameters

Returns

A reference to the IResourceBuilder<T> builder.

Applies to