Microsoft.SqlVirtualMachine sqlVirtualMachineGroups/availabilityGroupListeners 2021-11-01-preview
Article 10/18/2024
1 contributor
Feedback
In this article
Bicep resource definition
The sqlVirtualMachineGroups/availabilityGroupListeners resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log .
To create a Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners@2021-11-01-preview' = {
name: 'string'
properties: {
availabilityGroupConfiguration: {}
availabilityGroupName: 'string'
createDefaultAvailabilityGroupIfNotExist: bool
loadBalancerConfigurations: [
{
loadBalancerResourceId: 'string'
privateIpAddress: {
ipAddress: 'string'
subnetResourceId: 'string'
}
probePort: int
publicIpAddressResourceId: 'string'
sqlVirtualMachineInstances: [
'string'
]
}
]
port: int
}
}
Property values
AgConfiguration
AvailabilityGroupListenerProperties
Name
Description
Value
availabilityGroupConfiguration
Availability Group configuration.
AgConfiguration
availabilityGroupName
Name of the availability group.
string
createDefaultAvailabilityGroupIfNotExist
Create a default availability group if it does not exist.
bool
loadBalancerConfigurations
List of load balancer configurations for an availability group listener.
LoadBalancerConfiguration []
port
Listener port.
int
LoadBalancerConfiguration
Name
Description
Value
loadBalancerResourceId
Resource id of the load balancer.
string
privateIpAddress
Private IP address.
PrivateIPAddress
probePort
Probe port.
int
publicIpAddressResourceId
Resource id of the public IP.
string
sqlVirtualMachineInstances
List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
string[]
Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners
PrivateIPAddress
Name
Description
Value
ipAddress
Private IP address bound to the availability group listener.
string
subnetResourceId
Subnet used to include private IP.
string
Quickstart templates
The following quickstart templates deploy this resource type.
Template
Description
Create SQL AvailabilityGroup listener on existing Always ON setup
Deploy SQL AvailabilityGroup listener on existing Always ON setup. This creates Listener on an existing SQL Availability Group, sets up corresponding load balancer rules and probe ports on Azure Load balancer to get the listener connections working.
ARM template resource definition
The sqlVirtualMachineGroups/availabilityGroupListeners resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log .
To create a Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners resource, add the following JSON to your template.
{
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners",
"apiVersion": "2021-11-01-preview",
"name": "string",
"properties": {
"availabilityGroupConfiguration": {
},
"availabilityGroupName": "string",
"createDefaultAvailabilityGroupIfNotExist": "bool",
"loadBalancerConfigurations": [
{
"loadBalancerResourceId": "string",
"privateIpAddress": {
"ipAddress": "string",
"subnetResourceId": "string"
},
"probePort": "int",
"publicIpAddressResourceId": "string",
"sqlVirtualMachineInstances": [ "string" ]
}
],
"port": "int"
}
}
Property values
AgConfiguration
AvailabilityGroupListenerProperties
Name
Description
Value
availabilityGroupConfiguration
Availability Group configuration.
AgConfiguration
availabilityGroupName
Name of the availability group.
string
createDefaultAvailabilityGroupIfNotExist
Create a default availability group if it does not exist.
bool
loadBalancerConfigurations
List of load balancer configurations for an availability group listener.
LoadBalancerConfiguration []
port
Listener port.
int
LoadBalancerConfiguration
Name
Description
Value
loadBalancerResourceId
Resource id of the load balancer.
string
privateIpAddress
Private IP address.
PrivateIPAddress
probePort
Probe port.
int
publicIpAddressResourceId
Resource id of the public IP.
string
sqlVirtualMachineInstances
List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
string[]
Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners
PrivateIPAddress
Name
Description
Value
ipAddress
Private IP address bound to the availability group listener.
string
subnetResourceId
Subnet used to include private IP.
string
Quickstart templates
The following quickstart templates deploy this resource type.
Template
Description
Create SQL AvailabilityGroup listener on existing Always ON setup
Deploy SQL AvailabilityGroup listener on existing Always ON setup. This creates Listener on an existing SQL Availability Group, sets up corresponding load balancer rules and probe ports on Azure Load balancer to get the listener connections working.
The sqlVirtualMachineGroups/availabilityGroupListeners resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log .
To create a Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" = {
type = "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners@2021-11-01-preview"
name = "string"
body = jsonencode({
properties = {
availabilityGroupConfiguration = {
}
availabilityGroupName = "string"
createDefaultAvailabilityGroupIfNotExist = bool
loadBalancerConfigurations = [
{
loadBalancerResourceId = "string"
privateIpAddress = {
ipAddress = "string"
subnetResourceId = "string"
}
probePort = int
publicIpAddressResourceId = "string"
sqlVirtualMachineInstances = [
"string"
]
}
]
port = int
}
})
}
Property values
AgConfiguration
AvailabilityGroupListenerProperties
Name
Description
Value
availabilityGroupConfiguration
Availability Group configuration.
AgConfiguration
availabilityGroupName
Name of the availability group.
string
createDefaultAvailabilityGroupIfNotExist
Create a default availability group if it does not exist.
bool
loadBalancerConfigurations
List of load balancer configurations for an availability group listener.
LoadBalancerConfiguration []
port
Listener port.
int
LoadBalancerConfiguration
Name
Description
Value
loadBalancerResourceId
Resource id of the load balancer.
string
privateIpAddress
Private IP address.
PrivateIPAddress
probePort
Probe port.
int
publicIpAddressResourceId
Resource id of the public IP.
string
sqlVirtualMachineInstances
List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
string[]
Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners
PrivateIPAddress
Name
Description
Value
ipAddress
Private IP address bound to the availability group listener.
string
subnetResourceId
Subnet used to include private IP.
string