We recommend using Azure Native.
azure.mssql.VirtualMachineAvailabilityGroupListener
Explore with Pulumi AI
Manages a Microsoft SQL Virtual Machine Availability Group Listener.
Create VirtualMachineAvailabilityGroupListener Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualMachineAvailabilityGroupListener(name: string, args: VirtualMachineAvailabilityGroupListenerArgs, opts?: CustomResourceOptions);
@overload
def VirtualMachineAvailabilityGroupListener(resource_name: str,
args: VirtualMachineAvailabilityGroupListenerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualMachineAvailabilityGroupListener(resource_name: str,
opts: Optional[ResourceOptions] = None,
replicas: Optional[Sequence[VirtualMachineAvailabilityGroupListenerReplicaArgs]] = None,
sql_virtual_machine_group_id: Optional[str] = None,
availability_group_name: Optional[str] = None,
load_balancer_configuration: Optional[VirtualMachineAvailabilityGroupListenerLoadBalancerConfigurationArgs] = None,
multi_subnet_ip_configurations: Optional[Sequence[VirtualMachineAvailabilityGroupListenerMultiSubnetIpConfigurationArgs]] = None,
name: Optional[str] = None,
port: Optional[int] = None)
func NewVirtualMachineAvailabilityGroupListener(ctx *Context, name string, args VirtualMachineAvailabilityGroupListenerArgs, opts ...ResourceOption) (*VirtualMachineAvailabilityGroupListener, error)
public VirtualMachineAvailabilityGroupListener(string name, VirtualMachineAvailabilityGroupListenerArgs args, CustomResourceOptions? opts = null)
public VirtualMachineAvailabilityGroupListener(String name, VirtualMachineAvailabilityGroupListenerArgs args)
public VirtualMachineAvailabilityGroupListener(String name, VirtualMachineAvailabilityGroupListenerArgs args, CustomResourceOptions options)
type: azure:mssql:VirtualMachineAvailabilityGroupListener
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VirtualMachineAvailabilityGroupListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VirtualMachineAvailabilityGroupListenerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VirtualMachineAvailabilityGroupListenerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualMachineAvailabilityGroupListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualMachineAvailabilityGroupListenerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var virtualMachineAvailabilityGroupListenerResource = new Azure.MSSql.VirtualMachineAvailabilityGroupListener("virtualMachineAvailabilityGroupListenerResource", new()
{
Replicas = new[]
{
new Azure.MSSql.Inputs.VirtualMachineAvailabilityGroupListenerReplicaArgs
{
Commit = "string",
FailoverMode = "string",
ReadableSecondary = "string",
Role = "string",
SqlVirtualMachineId = "string",
},
},
SqlVirtualMachineGroupId = "string",
AvailabilityGroupName = "string",
LoadBalancerConfiguration = new Azure.MSSql.Inputs.VirtualMachineAvailabilityGroupListenerLoadBalancerConfigurationArgs
{
LoadBalancerId = "string",
PrivateIpAddress = "string",
ProbePort = 0,
SqlVirtualMachineIds = new[]
{
"string",
},
SubnetId = "string",
},
MultiSubnetIpConfigurations = new[]
{
new Azure.MSSql.Inputs.VirtualMachineAvailabilityGroupListenerMultiSubnetIpConfigurationArgs
{
PrivateIpAddress = "string",
SqlVirtualMachineId = "string",
SubnetId = "string",
},
},
Name = "string",
Port = 0,
});
example, err := mssql.NewVirtualMachineAvailabilityGroupListener(ctx, "virtualMachineAvailabilityGroupListenerResource", &mssql.VirtualMachineAvailabilityGroupListenerArgs{
Replicas: mssql.VirtualMachineAvailabilityGroupListenerReplicaArray{
&mssql.VirtualMachineAvailabilityGroupListenerReplicaArgs{
Commit: pulumi.String("string"),
FailoverMode: pulumi.String("string"),
ReadableSecondary: pulumi.String("string"),
Role: pulumi.String("string"),
SqlVirtualMachineId: pulumi.String("string"),
},
},
SqlVirtualMachineGroupId: pulumi.String("string"),
AvailabilityGroupName: pulumi.String("string"),
LoadBalancerConfiguration: &mssql.VirtualMachineAvailabilityGroupListenerLoadBalancerConfigurationArgs{
LoadBalancerId: pulumi.String("string"),
PrivateIpAddress: pulumi.String("string"),
ProbePort: pulumi.Int(0),
SqlVirtualMachineIds: pulumi.StringArray{
pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
},
MultiSubnetIpConfigurations: mssql.VirtualMachineAvailabilityGroupListenerMultiSubnetIpConfigurationArray{
&mssql.VirtualMachineAvailabilityGroupListenerMultiSubnetIpConfigurationArgs{
PrivateIpAddress: pulumi.String("string"),
SqlVirtualMachineId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Port: pulumi.Int(0),
})
var virtualMachineAvailabilityGroupListenerResource = new VirtualMachineAvailabilityGroupListener("virtualMachineAvailabilityGroupListenerResource", VirtualMachineAvailabilityGroupListenerArgs.builder()
.replicas(VirtualMachineAvailabilityGroupListenerReplicaArgs.builder()
.commit("string")
.failoverMode("string")
.readableSecondary("string")
.role("string")
.sqlVirtualMachineId("string")
.build())
.sqlVirtualMachineGroupId("string")
.availabilityGroupName("string")
.loadBalancerConfiguration(VirtualMachineAvailabilityGroupListenerLoadBalancerConfigurationArgs.builder()
.loadBalancerId("string")
.privateIpAddress("string")
.probePort(0)
.sqlVirtualMachineIds("string")
.subnetId("string")
.build())
.multiSubnetIpConfigurations(VirtualMachineAvailabilityGroupListenerMultiSubnetIpConfigurationArgs.builder()
.privateIpAddress("string")
.sqlVirtualMachineId("string")
.subnetId("string")
.build())
.name("string")
.port(0)
.build());
virtual_machine_availability_group_listener_resource = azure.mssql.VirtualMachineAvailabilityGroupListener("virtualMachineAvailabilityGroupListenerResource",
replicas=[azure.mssql.VirtualMachineAvailabilityGroupListenerReplicaArgs(
commit="string",
failover_mode="string",
readable_secondary="string",
role="string",
sql_virtual_machine_id="string",
)],
sql_virtual_machine_group_id="string",
availability_group_name="string",
load_balancer_configuration=azure.mssql.VirtualMachineAvailabilityGroupListenerLoadBalancerConfigurationArgs(
load_balancer_id="string",
private_ip_address="string",
probe_port=0,
sql_virtual_machine_ids=["string"],
subnet_id="string",
),
multi_subnet_ip_configurations=[azure.mssql.VirtualMachineAvailabilityGroupListenerMultiSubnetIpConfigurationArgs(
private_ip_address="string",
sql_virtual_machine_id="string",
subnet_id="string",
)],
name="string",
port=0)
const virtualMachineAvailabilityGroupListenerResource = new azure.mssql.VirtualMachineAvailabilityGroupListener("virtualMachineAvailabilityGroupListenerResource", {
replicas: [{
commit: "string",
failoverMode: "string",
readableSecondary: "string",
role: "string",
sqlVirtualMachineId: "string",
}],
sqlVirtualMachineGroupId: "string",
availabilityGroupName: "string",
loadBalancerConfiguration: {
loadBalancerId: "string",
privateIpAddress: "string",
probePort: 0,
sqlVirtualMachineIds: ["string"],
subnetId: "string",
},
multiSubnetIpConfigurations: [{
privateIpAddress: "string",
sqlVirtualMachineId: "string",
subnetId: "string",
}],
name: "string",
port: 0,
});
type: azure:mssql:VirtualMachineAvailabilityGroupListener
properties:
availabilityGroupName: string
loadBalancerConfiguration:
loadBalancerId: string
privateIpAddress: string
probePort: 0
sqlVirtualMachineIds:
- string
subnetId: string
multiSubnetIpConfigurations:
- privateIpAddress: string
sqlVirtualMachineId: string
subnetId: string
name: string
port: 0
replicas:
- commit: string
failoverMode: string
readableSecondary: string
role: string
sqlVirtualMachineId: string
sqlVirtualMachineGroupId: string
VirtualMachineAvailabilityGroupListener Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VirtualMachineAvailabilityGroupListener resource accepts the following input properties:
- Replicas
List<Virtual
Machine Availability Group Listener Replica> - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - Sql
Virtual stringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- Availability
Group stringName - The name of the Availability Group. Changing this forces a new resource to be created.
- Load
Balancer VirtualConfiguration Machine Availability Group Listener Load Balancer Configuration A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- Multi
Subnet List<VirtualIp Configurations Machine Availability Group Listener Multi Subnet Ip Configuration> - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - Name string
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- Port int
- The port of the listener. Changing this forces a new resource to be created.
- Replicas
[]Virtual
Machine Availability Group Listener Replica Args - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - Sql
Virtual stringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- Availability
Group stringName - The name of the Availability Group. Changing this forces a new resource to be created.
- Load
Balancer VirtualConfiguration Machine Availability Group Listener Load Balancer Configuration Args A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- Multi
Subnet []VirtualIp Configurations Machine Availability Group Listener Multi Subnet Ip Configuration Args - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - Name string
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- Port int
- The port of the listener. Changing this forces a new resource to be created.
- replicas
List<Virtual
Machine Availability Group Listener Replica> - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - sql
Virtual StringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- availability
Group StringName - The name of the Availability Group. Changing this forces a new resource to be created.
- load
Balancer VirtualConfiguration Machine Availability Group Listener Load Balancer Configuration A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- multi
Subnet List<VirtualIp Configurations Machine Availability Group Listener Multi Subnet Ip Configuration> - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - name String
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- port Integer
- The port of the listener. Changing this forces a new resource to be created.
- replicas
Virtual
Machine Availability Group Listener Replica[] - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - sql
Virtual stringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- availability
Group stringName - The name of the Availability Group. Changing this forces a new resource to be created.
- load
Balancer VirtualConfiguration Machine Availability Group Listener Load Balancer Configuration A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- multi
Subnet VirtualIp Configurations Machine Availability Group Listener Multi Subnet Ip Configuration[] - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - name string
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- port number
- The port of the listener. Changing this forces a new resource to be created.
- replicas
Sequence[Virtual
Machine Availability Group Listener Replica Args] - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - sql_
virtual_ strmachine_ group_ id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- availability_
group_ strname - The name of the Availability Group. Changing this forces a new resource to be created.
- load_
balancer_ Virtualconfiguration Machine Availability Group Listener Load Balancer Configuration Args A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- multi_
subnet_ Sequence[Virtualip_ configurations Machine Availability Group Listener Multi Subnet Ip Configuration Args] - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - name str
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- port int
- The port of the listener. Changing this forces a new resource to be created.
- replicas List<Property Map>
- One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - sql
Virtual StringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- availability
Group StringName - The name of the Availability Group. Changing this forces a new resource to be created.
- load
Balancer Property MapConfiguration A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- multi
Subnet List<Property Map>Ip Configurations - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - name String
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- port Number
- The port of the listener. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualMachineAvailabilityGroupListener resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VirtualMachineAvailabilityGroupListener Resource
Get an existing VirtualMachineAvailabilityGroupListener 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?: VirtualMachineAvailabilityGroupListenerState, opts?: CustomResourceOptions): VirtualMachineAvailabilityGroupListener
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_group_name: Optional[str] = None,
load_balancer_configuration: Optional[VirtualMachineAvailabilityGroupListenerLoadBalancerConfigurationArgs] = None,
multi_subnet_ip_configurations: Optional[Sequence[VirtualMachineAvailabilityGroupListenerMultiSubnetIpConfigurationArgs]] = None,
name: Optional[str] = None,
port: Optional[int] = None,
replicas: Optional[Sequence[VirtualMachineAvailabilityGroupListenerReplicaArgs]] = None,
sql_virtual_machine_group_id: Optional[str] = None) -> VirtualMachineAvailabilityGroupListener
func GetVirtualMachineAvailabilityGroupListener(ctx *Context, name string, id IDInput, state *VirtualMachineAvailabilityGroupListenerState, opts ...ResourceOption) (*VirtualMachineAvailabilityGroupListener, error)
public static VirtualMachineAvailabilityGroupListener Get(string name, Input<string> id, VirtualMachineAvailabilityGroupListenerState? state, CustomResourceOptions? opts = null)
public static VirtualMachineAvailabilityGroupListener get(String name, Output<String> id, VirtualMachineAvailabilityGroupListenerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Availability
Group stringName - The name of the Availability Group. Changing this forces a new resource to be created.
- Load
Balancer VirtualConfiguration Machine Availability Group Listener Load Balancer Configuration A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- Multi
Subnet List<VirtualIp Configurations Machine Availability Group Listener Multi Subnet Ip Configuration> - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - Name string
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- Port int
- The port of the listener. Changing this forces a new resource to be created.
- Replicas
List<Virtual
Machine Availability Group Listener Replica> - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - Sql
Virtual stringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- Availability
Group stringName - The name of the Availability Group. Changing this forces a new resource to be created.
- Load
Balancer VirtualConfiguration Machine Availability Group Listener Load Balancer Configuration Args A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- Multi
Subnet []VirtualIp Configurations Machine Availability Group Listener Multi Subnet Ip Configuration Args - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - Name string
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- Port int
- The port of the listener. Changing this forces a new resource to be created.
- Replicas
[]Virtual
Machine Availability Group Listener Replica Args - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - Sql
Virtual stringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- availability
Group StringName - The name of the Availability Group. Changing this forces a new resource to be created.
- load
Balancer VirtualConfiguration Machine Availability Group Listener Load Balancer Configuration A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- multi
Subnet List<VirtualIp Configurations Machine Availability Group Listener Multi Subnet Ip Configuration> - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - name String
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- port Integer
- The port of the listener. Changing this forces a new resource to be created.
- replicas
List<Virtual
Machine Availability Group Listener Replica> - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - sql
Virtual StringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- availability
Group stringName - The name of the Availability Group. Changing this forces a new resource to be created.
- load
Balancer VirtualConfiguration Machine Availability Group Listener Load Balancer Configuration A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- multi
Subnet VirtualIp Configurations Machine Availability Group Listener Multi Subnet Ip Configuration[] - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - name string
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- port number
- The port of the listener. Changing this forces a new resource to be created.
- replicas
Virtual
Machine Availability Group Listener Replica[] - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - sql
Virtual stringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- availability_
group_ strname - The name of the Availability Group. Changing this forces a new resource to be created.
- load_
balancer_ Virtualconfiguration Machine Availability Group Listener Load Balancer Configuration Args A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- multi_
subnet_ Sequence[Virtualip_ configurations Machine Availability Group Listener Multi Subnet Ip Configuration Args] - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - name str
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- port int
- The port of the listener. Changing this forces a new resource to be created.
- replicas
Sequence[Virtual
Machine Availability Group Listener Replica Args] - One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - sql_
virtual_ strmachine_ group_ id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
- availability
Group StringName - The name of the Availability Group. Changing this forces a new resource to be created.
- load
Balancer Property MapConfiguration A
load_balancer_configuration
block as defined below. Changing this forces a new resource to be created.NOTE: Either one of
load_balancer_configuration
ormulti_subnet_ip_configuration
must be specified.- multi
Subnet List<Property Map>Ip Configurations - One or more
multi_subnet_ip_configuration
blocks as defined below. Changing this forces a new resource to be created. - name String
- The name which should be used for the Microsoft SQL Virtual Machine Availability Group Listener. Changing this forces a new resource to be created.
- port Number
- The port of the listener. Changing this forces a new resource to be created.
- replicas List<Property Map>
- One or more
replica
blocks as defined below. Changing this forces a new resource to be created. - sql
Virtual StringMachine Group Id - The ID of the SQL Virtual Machine Group to create the listener. Changing this forces a new resource to be created.
Supporting Types
VirtualMachineAvailabilityGroupListenerLoadBalancerConfiguration, VirtualMachineAvailabilityGroupListenerLoadBalancerConfigurationArgs
- Load
Balancer stringId - The ID of the Load Balancer. Changing this forces a new resource to be created.
- Private
Ip stringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- Probe
Port int - The probe port of the listener. Changing this forces a new resource to be created.
- Sql
Virtual List<string>Machine Ids - Specifies a list of SQL Virtual Machine IDs. Changing this forces a new resource to be created.
- Subnet
Id string The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_ids
should match with the SQL Virtual Machines specified inreplica
.
- Load
Balancer stringId - The ID of the Load Balancer. Changing this forces a new resource to be created.
- Private
Ip stringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- Probe
Port int - The probe port of the listener. Changing this forces a new resource to be created.
- Sql
Virtual []stringMachine Ids - Specifies a list of SQL Virtual Machine IDs. Changing this forces a new resource to be created.
- Subnet
Id string The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_ids
should match with the SQL Virtual Machines specified inreplica
.
- load
Balancer StringId - The ID of the Load Balancer. Changing this forces a new resource to be created.
- private
Ip StringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- probe
Port Integer - The probe port of the listener. Changing this forces a new resource to be created.
- sql
Virtual List<String>Machine Ids - Specifies a list of SQL Virtual Machine IDs. Changing this forces a new resource to be created.
- subnet
Id String The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_ids
should match with the SQL Virtual Machines specified inreplica
.
- load
Balancer stringId - The ID of the Load Balancer. Changing this forces a new resource to be created.
- private
Ip stringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- probe
Port number - The probe port of the listener. Changing this forces a new resource to be created.
- sql
Virtual string[]Machine Ids - Specifies a list of SQL Virtual Machine IDs. Changing this forces a new resource to be created.
- subnet
Id string The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_ids
should match with the SQL Virtual Machines specified inreplica
.
- load_
balancer_ strid - The ID of the Load Balancer. Changing this forces a new resource to be created.
- private_
ip_ straddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- probe_
port int - The probe port of the listener. Changing this forces a new resource to be created.
- sql_
virtual_ Sequence[str]machine_ ids - Specifies a list of SQL Virtual Machine IDs. Changing this forces a new resource to be created.
- subnet_
id str The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_ids
should match with the SQL Virtual Machines specified inreplica
.
- load
Balancer StringId - The ID of the Load Balancer. Changing this forces a new resource to be created.
- private
Ip StringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- probe
Port Number - The probe port of the listener. Changing this forces a new resource to be created.
- sql
Virtual List<String>Machine Ids - Specifies a list of SQL Virtual Machine IDs. Changing this forces a new resource to be created.
- subnet
Id String The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_ids
should match with the SQL Virtual Machines specified inreplica
.
VirtualMachineAvailabilityGroupListenerMultiSubnetIpConfiguration, VirtualMachineAvailabilityGroupListenerMultiSubnetIpConfigurationArgs
- Private
Ip stringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- Sql
Virtual stringMachine Id - The ID of the Sql Virtual Machine. Changing this forces a new resource to be created.
- Subnet
Id string The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_id
should match with the SQL Virtual Machines specified inreplica
.
- Private
Ip stringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- Sql
Virtual stringMachine Id - The ID of the Sql Virtual Machine. Changing this forces a new resource to be created.
- Subnet
Id string The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_id
should match with the SQL Virtual Machines specified inreplica
.
- private
Ip StringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- sql
Virtual StringMachine Id - The ID of the Sql Virtual Machine. Changing this forces a new resource to be created.
- subnet
Id String The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_id
should match with the SQL Virtual Machines specified inreplica
.
- private
Ip stringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- sql
Virtual stringMachine Id - The ID of the Sql Virtual Machine. Changing this forces a new resource to be created.
- subnet
Id string The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_id
should match with the SQL Virtual Machines specified inreplica
.
- private_
ip_ straddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- sql_
virtual_ strmachine_ id - The ID of the Sql Virtual Machine. Changing this forces a new resource to be created.
- subnet_
id str The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_id
should match with the SQL Virtual Machines specified inreplica
.
- private
Ip StringAddress - The private IP Address of the listener. Changing this forces a new resource to be created.
- sql
Virtual StringMachine Id - The ID of the Sql Virtual Machine. Changing this forces a new resource to be created.
- subnet
Id String The ID of the Subnet to create the listener. Changing this forces a new resource to be created.
NOTE:
sql_virtual_machine_id
should match with the SQL Virtual Machines specified inreplica
.
VirtualMachineAvailabilityGroupListenerReplica, VirtualMachineAvailabilityGroupListenerReplicaArgs
- Commit string
- The replica commit mode for the availability group. Possible values are
Synchronous_Commit
andAsynchronous_Commit
. Changing this forces a new resource to be created. - Failover
Mode string - The replica failover mode for the availability group. Possible values are
Manual
andAutomatic
. Changing this forces a new resource to be created. - Readable
Secondary string - The replica readable secondary mode for the availability group. Possible values are
No
,Read_Only
andAll
. Changing this forces a new resource to be created. - Role string
- The replica role for the availability group. Possible values are
Primary
andSecondary
. Changing this forces a new resource to be created. - Sql
Virtual stringMachine Id - The ID of the SQL Virtual Machine. Changing this forces a new resource to be created.
- Commit string
- The replica commit mode for the availability group. Possible values are
Synchronous_Commit
andAsynchronous_Commit
. Changing this forces a new resource to be created. - Failover
Mode string - The replica failover mode for the availability group. Possible values are
Manual
andAutomatic
. Changing this forces a new resource to be created. - Readable
Secondary string - The replica readable secondary mode for the availability group. Possible values are
No
,Read_Only
andAll
. Changing this forces a new resource to be created. - Role string
- The replica role for the availability group. Possible values are
Primary
andSecondary
. Changing this forces a new resource to be created. - Sql
Virtual stringMachine Id - The ID of the SQL Virtual Machine. Changing this forces a new resource to be created.
- commit String
- The replica commit mode for the availability group. Possible values are
Synchronous_Commit
andAsynchronous_Commit
. Changing this forces a new resource to be created. - failover
Mode String - The replica failover mode for the availability group. Possible values are
Manual
andAutomatic
. Changing this forces a new resource to be created. - readable
Secondary String - The replica readable secondary mode for the availability group. Possible values are
No
,Read_Only
andAll
. Changing this forces a new resource to be created. - role String
- The replica role for the availability group. Possible values are
Primary
andSecondary
. Changing this forces a new resource to be created. - sql
Virtual StringMachine Id - The ID of the SQL Virtual Machine. Changing this forces a new resource to be created.
- commit string
- The replica commit mode for the availability group. Possible values are
Synchronous_Commit
andAsynchronous_Commit
. Changing this forces a new resource to be created. - failover
Mode string - The replica failover mode for the availability group. Possible values are
Manual
andAutomatic
. Changing this forces a new resource to be created. - readable
Secondary string - The replica readable secondary mode for the availability group. Possible values are
No
,Read_Only
andAll
. Changing this forces a new resource to be created. - role string
- The replica role for the availability group. Possible values are
Primary
andSecondary
. Changing this forces a new resource to be created. - sql
Virtual stringMachine Id - The ID of the SQL Virtual Machine. Changing this forces a new resource to be created.
- commit str
- The replica commit mode for the availability group. Possible values are
Synchronous_Commit
andAsynchronous_Commit
. Changing this forces a new resource to be created. - failover_
mode str - The replica failover mode for the availability group. Possible values are
Manual
andAutomatic
. Changing this forces a new resource to be created. - readable_
secondary str - The replica readable secondary mode for the availability group. Possible values are
No
,Read_Only
andAll
. Changing this forces a new resource to be created. - role str
- The replica role for the availability group. Possible values are
Primary
andSecondary
. Changing this forces a new resource to be created. - sql_
virtual_ strmachine_ id - The ID of the SQL Virtual Machine. Changing this forces a new resource to be created.
- commit String
- The replica commit mode for the availability group. Possible values are
Synchronous_Commit
andAsynchronous_Commit
. Changing this forces a new resource to be created. - failover
Mode String - The replica failover mode for the availability group. Possible values are
Manual
andAutomatic
. Changing this forces a new resource to be created. - readable
Secondary String - The replica readable secondary mode for the availability group. Possible values are
No
,Read_Only
andAll
. Changing this forces a new resource to be created. - role String
- The replica role for the availability group. Possible values are
Primary
andSecondary
. Changing this forces a new resource to be created. - sql
Virtual StringMachine Id - The ID of the SQL Virtual Machine. Changing this forces a new resource to be created.
Import
Microsoft SQL Virtual Machine Availability Group Listeners can be imported using the resource id
, e.g.
$ pulumi import azure:mssql/virtualMachineAvailabilityGroupListener:VirtualMachineAvailabilityGroupListener example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/vmgroup1/availabilityGroupListeners/listener1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.