Class VirtualNetworkRule
Manages a PostgreSQL Virtual Network Rule.
NOTE: PostgreSQL Virtual Network Rules can only be used with SKU Tiers of
GeneralPurposeorMemoryOptimized
Inherited Members
Namespace: Pulumi.Azure.PostgreSql
Assembly: Pulumi.Azure.dll
Syntax
public class VirtualNetworkRule : CustomResource
Constructors
View SourceVirtualNetworkRule(String, VirtualNetworkRuleArgs, CustomResourceOptions)
Create a VirtualNetworkRule resource with the given unique name, arguments, and options.
Declaration
public VirtualNetworkRule(string name, VirtualNetworkRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VirtualNetworkRuleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceIgnoreMissingVnetServiceEndpoint
Should the Virtual Network Rule be created before the Subnet has the Virtual Network Service Endpoint enabled? Defaults to false.
Declaration
public Output<bool?> IgnoreMissingVnetServiceEndpoint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
The name of the PostgreSQL virtual network rule. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group where the PostgreSQL server resides. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServerName
The name of the SQL Server to which this PostgreSQL virtual network rule will be applied to. Changing this forces a new resource to be created.
Declaration
public Output<string> ServerName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SubnetId
The ID of the subnet that the PostgreSQL server will be connected to.
Declaration
public Output<string> SubnetId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, VirtualNetworkRuleState, CustomResourceOptions)
Get an existing VirtualNetworkRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static VirtualNetworkRule Get(string name, Input<string> id, VirtualNetworkRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| VirtualNetworkRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| VirtualNetworkRule |