AzurePostgresExtensions.PublishAsAzurePostgresFlexibleServer 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
PublishAsAzurePostgresFlexibleServer(IResourceBuilder<PostgresServerResource>) |
Obsolete.
Configures Postgres Server resource to be deployed as Azure PostgreSQL Flexible Server. |
PublishAsAzurePostgresFlexibleServer(IResourceBuilder<PostgresServerResource>, Action<IResourceBuilder<AzurePostgresResource>,ResourceModuleConstruct, PostgreSqlFlexibleServer>) |
Configures Postgres Server resource to be deployed as Azure Postgres Flexible Server. |
PublishAsAzurePostgresFlexibleServer(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 Postgres Server resource to be deployed as Azure PostgreSQL Flexible Server.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> PublishAsAzurePostgresFlexibleServer (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> PublishAsAzurePostgresFlexibleServer (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> builder);
static member PublishAsAzurePostgresFlexibleServer : 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 PublishAsAzurePostgresFlexibleServer : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource>
<Extension()>
Public Function PublishAsAzurePostgresFlexibleServer (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.
- Attributes
Applies to
PublishAsAzurePostgresFlexibleServer(IResourceBuilder<PostgresServerResource>, Action<IResourceBuilder<AzurePostgresResource>,ResourceModuleConstruct, PostgreSqlFlexibleServer>)
- Source:
- AzurePostgresExtensions.cs
Configures Postgres Server resource to be deployed as Azure Postgres Flexible Server.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> PublishAsAzurePostgresFlexibleServer (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 PublishAsAzurePostgresFlexibleServer : 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 PublishAsAzurePostgresFlexibleServer (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.