Details of the scenario you tried and the problem that is occurring
Issues when trying to connect the SqlAGReplica to the PrimaryReplicaServerName - I keep returning:
PowerShell DSC resource MSFT_SqlAGReplica failed to execute Set-TargetResource functionality with error message: System.InvalidOperationException: Failed to connect to SQL instance 'LLSql1.alexandrialaunchlabs.local'.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : localhost
All firewalls and anti-virus is disabled. When trying to use the PS command that the SqlAGReplica resource is using "Connect-SQL", - I'm not able to find it to try and test outside of the resource to determine what's wrong. Is there something I am missing?
The DSC configuration that is using the resource (as detailed as possible)
Found my issue - there was no default instance on primary node, and the account being used to access the first node needed explicit permissions. Closing.
Details of the scenario you tried and the problem that is occurring
Issues when trying to connect the SqlAGReplica to the PrimaryReplicaServerName - I keep returning:
All firewalls and anti-virus is disabled. When trying to use the PS command that the SqlAGReplica resource is using "Connect-SQL", - I'm not able to find it to try and test outside of the resource to determine what's wrong. Is there something I am missing?
The DSC configuration that is using the resource (as detailed as possible)
Version of the operating system and PowerShell the target node is running
OS: Windows Server 2016 Dataceneter
SQL Server edition and version the target node is running
SQL Server Enterprise 2017
What SQL Server PowerShell modules, and which version, are present on the target node.
Version of the DSC module you're using, or write 'dev' if you're using current dev branch