VirtualNetworkRule
Manages a MariaDB Virtual Network Rule.
NOTE: MariaDB Virtual Network Rules can only be used with SKU Tiers of
GeneralPurposeorMemoryOptimized
Create a VirtualNetworkRule Resource
new VirtualNetworkRule(name: string, args: VirtualNetworkRuleArgs, opts?: CustomResourceOptions);def VirtualNetworkRule(resource_name, opts=None, name=None, resource_group_name=None, server_name=None, subnet_id=None, __props__=None);func NewVirtualNetworkRule(ctx *Context, name string, args VirtualNetworkRuleArgs, opts ...ResourceOption) (*VirtualNetworkRule, error)public VirtualNetworkRule(string name, VirtualNetworkRuleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args VirtualNetworkRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VirtualNetworkRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualNetworkRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
VirtualNetworkRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The VirtualNetworkRule resource accepts the following input properties:
- Resource
Group stringName The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.
- Server
Name string The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.
- Subnet
Id string The ID of the subnet that the MariaDB server will be connected to.
- Name string
The name of the MariaDB 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.
- Resource
Group stringName The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.
- Server
Name string The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.
- Subnet
Id string The ID of the subnet that the MariaDB server will be connected to.
- Name string
The name of the MariaDB 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.
- resource
Group stringName The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.
- server
Name string The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.
- subnet
Id string The ID of the subnet that the MariaDB server will be connected to.
- name string
The name of the MariaDB 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.
- resource_
group_ strname The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.
- server_
name str The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.
- subnet_
id str The ID of the subnet that the MariaDB server will be connected to.
- name str
The name of the MariaDB 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualNetworkRule resource produces the following output properties:
Look up an Existing VirtualNetworkRule Resource
Get an existing VirtualNetworkRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VirtualNetworkRuleState, opts?: CustomResourceOptions): VirtualNetworkRulestatic get(resource_name, id, opts=None, name=None, resource_group_name=None, server_name=None, subnet_id=None, __props__=None);func GetVirtualNetworkRule(ctx *Context, name string, id IDInput, state *VirtualNetworkRuleState, opts ...ResourceOption) (*VirtualNetworkRule, error)public static VirtualNetworkRule Get(string name, Input<string> id, VirtualNetworkRuleState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Name string
The name of the MariaDB 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.
- Resource
Group stringName The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.
- Server
Name string The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.
- Subnet
Id string The ID of the subnet that the MariaDB server will be connected to.
- Name string
The name of the MariaDB 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.
- Resource
Group stringName The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.
- Server
Name string The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.
- Subnet
Id string The ID of the subnet that the MariaDB server will be connected to.
- name string
The name of the MariaDB 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.
- resource
Group stringName The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.
- server
Name string The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.
- subnet
Id string The ID of the subnet that the MariaDB server will be connected to.
- name str
The name of the MariaDB 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.
- resource_
group_ strname The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.
- server_
name str The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.
- subnet_
id str The ID of the subnet that the MariaDB server will be connected to.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.