AzurePostgresExtensions.AsAzurePostgresFlexibleServer 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.
Overloads
AsAzurePostgresFlexibleServer(IResourceBuilder<PostgresServerResource>) |
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
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);
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
- builder
- IResourceBuilder<PostgresServerResource>
The IResourceBuilder<T> builder.
Returns
A reference to the IResourceBuilder<T> builder.
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
- builder
- IResourceBuilder<PostgresServerResource>
The IResourceBuilder<T> builder.
- configureResource
- Action<IResourceBuilder<AzurePostgresResource>,ResourceModuleConstruct,PostgreSqlFlexibleServer>
Callback to configure the underlying PostgreSqlFlexibleServer resource.
Returns
A reference to the IResourceBuilder<T> builder.