You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to automate the Azure File share Domain join, using Azure YML Pipelines.
We are currently hitting an issue with the AzFilesHybrid PowerShell Module, when running the command: Join-AzStorageaccountForAuth from either a PS remote session or through the ADO task: PowershellonTargetMachine@3 (Same error).
PS: We have tested the module directly inside the VM, and it is working.
The error is the following:
We have identified that the following command: Get-ADDomain, from the line 2398 of the module, is failing (Same error above) from a PS Remote Session, but when we use “-server “ parameter, if you run the command (Get-ADDomain) from a PS Remote Session, it works. (At least this is what we have found during our troubleshooting)
• When we run the command with -server from PSRemoteSession:
Invoke-Command -Session $s -ScriptBlock {Get-ADDomain -server -Credential domain\admin}: working
• When we run the command without -server from PSRemoteSession:
Invoke-Command -Session $s -ScriptBlock {Get-ADDomain -Credential domain\admin} : not working
• When we run the module from VM Hybrid Worker: working
PS: All prerequisites needed to run the module as well as WinRM are valid and available in the VM.
Could you please help me explain this behavior, as well as any alternatives / workaround for this issue, (as updating the module would not be an option) ?
The text was updated successfully, but these errors were encountered:
We are trying to automate the Azure File share Domain join, using Azure YML Pipelines.
We are currently hitting an issue with the AzFilesHybrid PowerShell Module, when running the command: Join-AzStorageaccountForAuth from either a PS remote session or through the ADO task: PowershellonTargetMachine@3 (Same error).
PS: We have tested the module directly inside the VM, and it is working.
The error is the following:
We have identified that the following command: Get-ADDomain, from the line 2398 of the module, is failing (Same error above) from a PS Remote Session, but when we use “-server “ parameter, if you run the command (Get-ADDomain) from a PS Remote Session, it works. (At least this is what we have found during our troubleshooting)
• When we run the command with -server from PSRemoteSession:
Invoke-Command -Session $s -ScriptBlock {Get-ADDomain -server -Credential domain\admin}: working
• When we run the command without -server from PSRemoteSession:
Invoke-Command -Session $s -ScriptBlock {Get-ADDomain -Credential domain\admin} : not working
• When we run the module from VM Hybrid Worker: working
PS: All prerequisites needed to run the module as well as WinRM are valid and available in the VM.
Could you please help me explain this behavior, as well as any alternatives / workaround for this issue, (as updating the module would not be an option) ?
The text was updated successfully, but these errors were encountered: