Examples/Resources/SqlAGListener/2-AddAvailabilityGroupListenerWithDifferentNameAsVCO.ps1
<#
.EXAMPLE This example will add an Availability Group listener with a different than the cluster role VCO. #> Configuration Example { param ( [Parameter(Mandatory = $true)] [System.Management.Automation.PSCredential] [System.Management.Automation.Credential()] $SysAdminAccount ) Import-DscResource -ModuleName SqlServerDsc node localhost { SqlAGListener AvailabilityGroupListenerWithDifferentNameAsVCO { Ensure = 'Present' ServerName = 'SQLNODE01.company.local' InstanceName = 'MSSQLSERVER' AvailabilityGroup = 'AvailabilityGroup-01' Name = 'AG-01' IpAddress = '192.168.0.74/255.255.255.0' Port = 5302 PsDscRunAsCredential = $SysAdminAccount } } } |