{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/xFailOverCluster/issues/148","repository_url":"https://api.github.com/repos/PowerShell/xFailOverCluster","labels_url":"https://api.github.com/repos/PowerShell/xFailOverCluster/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/xFailOverCluster/issues/148/comments","events_url":"https://api.github.com/repos/PowerShell/xFailOverCluster/issues/148/events","html_url":"https://github.com/PowerShell/xFailOverCluster/issues/148","id":258951379,"node_id":"MDU6SXNzdWUyNTg5NTEzNzk=","number":148,"title":"Cant Configure failover cluster by using DSC Config","user":{"login":"dead8171","id":32110643,"node_id":"MDQ6VXNlcjMyMTEwNjQz","avatar_url":"https://avatars0.githubusercontent.com/u/32110643?v=4","gravatar_id":"","url":"https://api.github.com/users/dead8171","html_url":"https://github.com/dead8171","followers_url":"https://api.github.com/users/dead8171/followers","following_url":"https://api.github.com/users/dead8171/following{/other_user}","gists_url":"https://api.github.com/users/dead8171/gists{/gist_id}","starred_url":"https://api.github.com/users/dead8171/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dead8171/subscriptions","organizations_url":"https://api.github.com/users/dead8171/orgs","repos_url":"https://api.github.com/users/dead8171/repos","events_url":"https://api.github.com/users/dead8171/events{/privacy}","received_events_url":"https://api.github.com/users/dead8171/received_events","type":"User","site_admin":false},"labels":[{"id":200151878,"node_id":"MDU6TGFiZWwyMDAxNTE4Nzg=","url":"https://api.github.com/repos/PowerShell/xFailOverCluster/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2017-09-19T20:21:14Z","updated_at":"2018-06-18T22:36:41Z","closed_at":null,"author_association":"NONE","body":"I was configuring FCI Cluster using DSC in azure, So I was doing this in azure via automation account I was refering to this article which I found in github https://github.com/PowerShell/xFailOverCluster/blob/dev/Examples/Resources/xCluster/3-CreateFailoverClusterWithTwoNodes.ps1\r\n\r\nI modified the script slightly:-\r\n\r\n```\r\nConfiguration Example\r\n{\r\n\r\nImport-DscResource -ModuleName xFailOverCluster\r\nImport-DscResource -ModuleName PSDesiredStateConfiguration\r\n\r\n\r\n$credential = Get-AutomationPSCredential -Name \"dctest\"\r\nNode $AllNodes.Where{$_.Role -eq \"FirstServerNode\" }.NodeName\r\n{\r\n    WindowsFeature AddFailoverFeature\r\n    {\r\n        Ensure = \"Present\"\r\n        Name   = \"Failover-clustering\"\r\n    }\r\n\r\n    WindowsFeature AddRemoteServerAdministrationToolsClusteringPowerShellFeature\r\n    {\r\n        Ensure    = \"Present\"\r\n        Name      = \"RSAT-Clustering-PowerShell\"\r\n        DependsOn = \"[WindowsFeature]AddFailoverFeature\"\r\n    }\r\n\r\n    WindowsFeature AddRemoteServerAdministrationToolsClusteringCmdInterfaceFeature\r\n    {\r\n        Ensure    = \"Present\"\r\n        Name      = \"RSAT-Clustering-CmdInterface\"\r\n        DependsOn = \"[WindowsFeature]AddRemoteServerAdministrationToolsClusteringPowerShellFeature\"\r\n    }\r\n\r\n    xCluster CreateCluster\r\n    {\r\n        Name                          = $Node.ClusterName\r\n        StaticIPAddress               = $Node.ClusterIPAddress\r\n        # This user must have the permission to create the CNO (Cluster Name Object) in Active Directory, unless it is prestaged.\r\n        DomainAdministratorCredential = $credential\r\n        DependsOn                     = \"[WindowsFeature]AddRemoteServerAdministrationToolsClusteringCmdInterfaceFeature\"\r\n    }\r\n}\r\n\r\nNode $AllNodes.Where{ $_.Role -eq \"AdditionalServerNode\" }.NodeName\r\n{\r\n    WindowsFeature AddFailoverFeature\r\n    {\r\n        Ensure = \"Present\"\r\n        Name   = \"Failover-clustering\"\r\n    }\r\n\r\n    WindowsFeature AddRemoteServerAdministrationToolsClusteringPowerShellFeature\r\n    {\r\n        Ensure    = \"Present\"\r\n        Name      = \"RSAT-Clustering-PowerShell\"\r\n        DependsOn = \"[WindowsFeature]AddFailoverFeature\"\r\n    }\r\n\r\n    WindowsFeature AddRemoteServerAdministrationToolsClusteringCmdInterfaceFeature\r\n    {\r\n        Ensure    = \"Present\"\r\n        Name      = \"RSAT-Clustering-CmdInterface\"\r\n        DependsOn = \"[WindowsFeature]AddRemoteServerAdministrationToolsClusteringPowerShellFeature\"\r\n    }\r\n\r\n    xWaitForCluster WaitForCluster\r\n    {\r\n        Name             = $Node.ClusterName\r\n        RetryIntervalSec = 10\r\n        RetryCount       = 60\r\n        DependsOn        = \"[WindowsFeature]AddRemoteServerAdministrationToolsClusteringCmdInterfaceFeature\"\r\n    }\r\n\r\n    xCluster JoinSecondNodeToCluster\r\n    {\r\n        Name                          = $Node.ClusterName\r\n        StaticIPAddress               = $Node.ClusterIPAddress\r\n        DomainAdministratorCredential = $credential\r\n        DependsOn                     = \"[xWaitForCluster]WaitForCluster\"\r\n    }\r\n}\r\n}\r\n````\r\nhere I was using $credential that contains my credentials of the user.\r\n\r\nWhen I ran the configdata file from power shell:-\r\n```\r\n$ConfigurationData = @{\r\nAllNodes = @(\r\n@{\r\nNodeName = '*'\r\n\r\n        <#\r\n            Replace with the correct path to your own public certificate part of the same certificate\r\n            that are installed on the target nodes.\r\n            NOTE! Please remove comment from this row to be able to use your certificate. This is commented\r\n            so that AppVeyor automatic tests can pass, otherwise it will fail on missing certificate.\r\n        #>\r\n        #CertificateFile = 'C:\\Certificates\\DscDemo.cer'\r\n\r\n        <#\r\n            NOTE! THIS IS NOT RECOMMENDED IN PRODUCTION.\r\n            This is added so that AppVeyor automatic tests can pass, otherwise the tests will fail on\r\n            passwords being in plain text and not being encrypted. Because there is not possible to have\r\n            a certificate in AppVeyor to encrypt the passwords we need to add parameter\r\n            'PSDscAllowPlainTextPassword'.\r\n            NOTE! THIS IS NOT RECOMMENDED IN PRODUCTION.\r\n        #>\r\n        PSDscAllowPlainTextPassword = $true\r\n\r\n        <#\r\n            Replace with the thumbprint of certificate that are installed on both the target nodes.\r\n            This must be the private certificate of the same public certificate used in the previous\r\n            parameter CertificateFile.\r\n            For this example it is assumed that both machines have the same certificate installed.\r\n        #>\r\n       # Thumbprint                  = \"E513EEFCB763E6954C52BA66A1A81231BF3F551E\"\r\n\r\n        <#\r\n            Replace with your own CNO (Cluster Name Object) and IP address.\r\n            Please note that if the CNO is prestaged, then the computer object must be disabled for the\r\n            resource xCluster to be able to create the cluster.\r\n            If the CNO is not prestaged, then the credential used in the xCluster resource must have\r\n            the permission in Active Directory to create the CNO (Cluster Name Object).\r\n        #>\r\n        ClusterName                 = 'Cluster01'\r\n        ClusterIPAddress            = '10.0.0.220/24'\r\n    },\r\n\r\n    # Node01 - First cluster node.\r\n    @{\r\n        # Replace with the name of the actual target node.\r\n        NodeName = 'sql14vm1'\r\n\r\n        # This is used in the configuration to know which resource to compile.\r\n        Role     = 'FirstServerNode'\r\n    },\r\n\r\n    # Node02 - Second cluster node\r\n    @{\r\n        # Replace with the name of the actual target node.\r\n        NodeName = 'sql2014vm2'\r\n\r\n        # This is used in the configuration to know which resource to compile.\r\n        Role     = 'AdditionalServerNode'\r\n    }\r\n)\r\n}\r\n#Login-AzureRmAccount\r\nStart-AzureRmAutomationDscCompilationJob -ResourceGroupName \"fcitest\" -AutomationAccountName \"fcitest\" -ConfigurationName \"Example\" -ConfigurationData $ConfigurationData\r\n````\r\n\r\nAfter registering the node, the windows feature was getting configured but I cant get xcluster feature to work here, I was getting the error in the screenshot, How can I make this right?\r\n\r\nthis was the Error which I was getting in here\r\n```\r\n{\r\n\"Exception\": {\r\n\"Message\": \"PowerShell DSC resource MSFT_xCluster failed to execute Set-TargetResource functionality with error message: System.InvalidOperationException: Can\\u0027t logon as user test123. \",\r\n\"Data\": {\r\n\r\n                           },\r\n                  \"InnerException\":  {\r\n                                         \"ErrorRecord\":  \"System.InvalidOperationException: Can\\u0027t logon as user test123.\",\r\n                                         \"WasThrownFromThrowStatement\":  true,\r\n                                         \"Message\":  \"System.InvalidOperationException: Can\\u0027t logon as user test123.\",\r\n                                         \"Data\":  \"System.Collections.ListDictionaryInternal\",\r\n                                         \"InnerException\":  \"System.Exception: System.InvalidOperationException: Can\\u0027t logon as user test123.\",\r\n                                         \"TargetSite\":  \"System.Collections.ObjectModel.Collection`1[System.Management.Automation.PSObject] Invoke(System.Collections.IEnumerable)\",\r\n                                         \"StackTrace\":  \"   at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)\\r\\n   at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)\\r\\n   at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)\\r\\n   at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)\\r\\n   at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)\\r\\n   at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)\\r\\n   at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)\\r\\n   at Microsoft.PowerShell.DesiredStateConfiguration.Internal.ResourceProviderAdapter.ExecuteCommand(PowerShell powerShell, ResourceModuleInfo resInfo, String operationCmd, List`1 acceptedProperties, CimInstance nonResourcePropeties, CimInstance resourceConfiguration, LCMDebugMode debugMode, PSInvocationSettings pSInvocationSettings, UInt32\\u0026 resultStatusHandle, Collection`1\\u0026 result, ErrorRecord\\u0026 errorRecord, PSModuleInfo localRunSpaceModuleInfo)\",\r\n                                         \"HelpLink\":  null,\r\n                                         \"Source\":  \"System.Management.Automation\",\r\n                                         \"HResult\":  -2146233087\r\n                                     },\r\n                  \"TargetSite\":  null,\r\n                  \"StackTrace\":  null,\r\n                  \"HelpLink\":  null,\r\n                  \"Source\":  null,\r\n                  \"HResult\":  -2146233079\r\n              },\r\n\"TargetObject\":  null,\r\n\"CategoryInfo\":  {\r\n                     \"Category\":  7,\r\n                     \"Activity\":  \"\",\r\n                     \"Reason\":  \"InvalidOperationException\",\r\n                     \"TargetName\":  \"\",\r\n                     \"TargetType\":  \"\"\r\n                 },\r\n\"FullyQualifiedErrorId\":  \"ProviderOperationExecutionFailure\",\r\n\"ErrorDetails\":  null,\r\n\"InvocationInfo\":  null,\r\n\"ScriptStackTrace\":  null,\r\n\"PipelineIterationInfo\":  [\r\n\r\n                          ]\r\n}\r\n```\r\n![screenshot 84](https://user-images.githubusercontent.com/32110643/30613567-2b3f46c2-9da6-11e7-94bf-67d6ca1fc84a.png)\r\n"},"comment":{"url":"https://api.github.com/repos/PowerShell/xFailOverCluster/issues/comments/398217135","html_url":"https://github.com/PowerShell/xFailOverCluster/issues/148#issuecomment-398217135","issue_url":"https://api.github.com/repos/PowerShell/xFailOverCluster/issues/148","id":398217135,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODIxNzEzNQ==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-18T22:36:41Z","updated_at":"2018-06-18T22:36:41Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.\n"}}
{"actor":{"display_login":"stale"}}