stgeorgi / wvdquickstart

26 stars 32 forks source link

Deploy module [VirtualMachines] in [*****] via [WVDServiceConnection] #28

Open ghasken opened 3 years ago

ghasken commented 3 years ago

Failing at Deploy_WVDSessionHost with the error:

"2021-03-02T13:41:35.3756913Z ##[section]Starting: Deploy module [VirtualMachines] in [gh-tog-test] via [WVDServiceConnection] 2021-03-02T13:41:35.3764224Z ============================================================================== 2021-03-02T13:41:35.3764677Z Task : Azure PowerShell 2021-03-02T13:41:35.3764943Z Description : Run a PowerShell script within an Azure environment 2021-03-02T13:41:35.3765194Z Version : 4.182.0 2021-03-02T13:41:35.3765420Z Author : Microsoft Corporation 2021-03-02T13:41:35.3765702Z Help : https://aka.ms/azurepowershelltroubleshooting 2021-03-02T13:41:35.3766009Z ============================================================================== 2021-03-02T13:41:35.5523807Z ## Validating Inputs 2021-03-02T13:41:35.5560046Z ## Validating Inputs Complete 2021-03-02T13:41:35.5561308Z ## Initializing Az module 2021-03-02T13:41:35.5561743Z Generating script. 2021-03-02T13:41:35.5573469Z ## Az module initialization Complete 2021-03-02T13:41:35.5574105Z ## Beginning Script Execution 2021-03-02T13:41:35.5596810Z [command]/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command . '/home/vsts/work/_temp/1a47d51e-5e9b-4f56-a395-50f336fec843.ps1' 2021-03-02T13:41:35.5643173Z Saved! 2021-03-02T13:41:36.1895183Z Exception: /home/vsts/work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/4.182.0/Utility.ps1:42 2021-03-02T13:41:36.1896285Z Line | 2021-03-02T13:41:36.1897322Z  42 |  … throw ("Could not find the module path with given version … 2021-03-02T13:41:36.1898197Z  |  ~~~~~~~~~~~~~ 2021-03-02T13:41:36.1899029Z  | Could not find the module path with given version. 2021-03-02T13:41:36.1900098Z  2021-03-02T13:41:36.2095043Z ##[error]PowerShell exited with code '1'. 2021-03-02T13:41:36.2451391Z ## Script Execution Complete 2021-03-02T13:41:36.2454579Z ##[section]Finishing: Deploy module [VirtualMachines] in [gh-tog-test] via [WVDServiceConnection]

materrac commented 3 years ago

Same error for me...Just tried tonight. Pipeline is failing trying to create WVDSessionHost:

utlity.ps1 - line 42

2021-03-03T01:55:17.1500518Z Exception: /home/vsts/work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/4.182.0/Utility.ps1:42 2021-03-03T01:55:17.1501475Z Line | 2021-03-03T01:55:17.1502195Z 42 | throw ("Could not find the module path with given version

2021-03-03T01:55:16.3110197Z ## Beginning Script Execution 2021-03-03T01:55:16.3111491Z ##[debug]which 'pwsh' 2021-03-03T01:55:16.3122322Z ##[debug]found: '/usr/bin/pwsh' 2021-03-03T01:55:16.3123445Z ##[debug]which '/usr/bin/pwsh' 2021-03-03T01:55:16.3124462Z ##[debug]found: '/usr/bin/pwsh' 2021-03-03T01:55:16.3125449Z ##[debug]/usr/bin/pwsh arg: -NoLogo 2021-03-03T01:55:16.3126500Z ##[debug]/usr/bin/pwsh arg: -NoProfile 2021-03-03T01:55:16.3127471Z ##[debug]/usr/bin/pwsh arg: -NonInteractive 2021-03-03T01:55:16.3130002Z ##[debug]/usr/bin/pwsh arg: -ExecutionPolicy 2021-03-03T01:55:16.3131184Z ##[debug]/usr/bin/pwsh arg: Unrestricted 2021-03-03T01:55:16.3132081Z ##[debug]/usr/bin/pwsh arg: -Command 2021-03-03T01:55:16.3133202Z ##[debug]/usr/bin/pwsh arg: . '/home/vsts/work/_temp/c8aa8f1d-2f28-4949-97f5-e2a98bf67dbe.ps1' 2021-03-03T01:55:16.3134100Z ##[debug]exec tool: /usr/bin/pwsh 2021-03-03T01:55:16.3134818Z ##[debug]arguments: 2021-03-03T01:55:16.3135736Z ##[debug] -NoLogo 2021-03-03T01:55:16.3136702Z ##[debug] -NoProfile 2021-03-03T01:55:16.3137581Z ##[debug] -NonInteractive 2021-03-03T01:55:16.3138479Z ##[debug] -ExecutionPolicy 2021-03-03T01:55:16.3139789Z ##[debug] Unrestricted 2021-03-03T01:55:16.3140758Z ##[debug] -Command 2021-03-03T01:55:16.3141779Z ##[debug] . '/home/vsts/work/_temp/c8aa8f1d-2f28-4949-97f5-e2a98bf67dbe.ps1' 2021-03-03T01:55:16.3143412Z [command]/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command . '/home/vsts/work/_temp/c8aa8f1d-2f28-4949-97f5-e2a98bf67dbe.ps1' 2021-03-03T01:55:16.3203488Z Saved! 2021-03-03T01:55:17.1500518Z Exception: /home/vsts/work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/4.182.0/Utility.ps1:42 2021-03-03T01:55:17.1501475Z Line | 2021-03-03T01:55:17.1502195Z  42 |  … throw ("Could not find the module path with given version … 2021-03-03T01:55:17.1503424Z  |  ~~~~~~~~~~~~~ 2021-03-03T01:55:17.1504184Z  | Could not find the module path with given version. 2021-03-03T01:55:17.1504942Z  2021-03-03T01:55:17.1680879Z ##[debug]Exit code 1 received from tool '/usr/bin/pwsh' 2021-03-03T01:55:17.1686322Z ##[debug]STDIO streams have closed for tool '/usr/bin/pwsh'

avinashkatore-Hexaware commented 3 years ago

For me as well getting same issue. Pipeline is failing trying to create WVDSessionHost:

Starting: Deploy module [VirtualMachines] in [rg-wvd-pipline] via [WVDServiceConnection]
==============================================================================
Task         : Azure PowerShell
Description  : Run a PowerShell script within an Azure environment
Version      : 4.182.0
Author       : Microsoft Corporation
Help         : https://aka.ms/azurepowershelltroubleshooting
==============================================================================
## Validating Inputs
## Validating Inputs Complete
## Initializing Az module
Generating script.
## Az module initialization Complete
## Beginning Script Execution
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command . '/home/vsts/work/_temp/b12498b4-59de-4d45-a366-34aed38e1987.ps1'
Saved!
Exception: /home/vsts/work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/4.182.0/Utility.ps1:42
Line |
  42 |  …             throw ("Could not find the module path with given version …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find the module path with given version.

##[error]PowerShell exited with code '1'.
## Script Execution Complete
Finishing: Deploy module [VirtualMachines] in [rg-wvd-pipline] via [WVDServiceConnection]
ghasken commented 3 years ago

For me as well getting same issue. Pipeline is failing trying to create WVDSessionHost:

Starting: Deploy module [VirtualMachines] in [rg-wvd-pipline] via [WVDServiceConnection]
==============================================================================
Task         : Azure PowerShell
Description  : Run a PowerShell script within an Azure environment
Version      : 4.182.0
Author       : Microsoft Corporation
Help         : https://aka.ms/azurepowershelltroubleshooting
==============================================================================
## Validating Inputs
## Validating Inputs Complete
## Initializing Az module
Generating script.
## Az module initialization Complete
## Beginning Script Execution
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command . '/home/vsts/work/_temp/b12498b4-59de-4d45-a366-34aed38e1987.ps1'
Saved!
Exception: /home/vsts/work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/4.182.0/Utility.ps1:42
Line |
  42 |  …             throw ("Could not find the module path with given version …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find the module path with given version.

##[error]PowerShell exited with code '1'.
## Script Execution Complete
Finishing: Deploy module [VirtualMachines] in [rg-wvd-pipline] via [WVDServiceConnection]

@avinashkatore-Hexaware did you use a user with the right permissions in your tenant? I used a new user with global admin with the same domain name as the tenant im in.

avinashkatore-Hexaware commented 3 years ago

For me as well getting same issue. Pipeline is failing trying to create WVDSessionHost:

Starting: Deploy module [VirtualMachines] in [rg-wvd-pipline] via [WVDServiceConnection]
==============================================================================
Task         : Azure PowerShell
Description  : Run a PowerShell script within an Azure environment
Version      : 4.182.0
Author       : Microsoft Corporation
Help         : https://aka.ms/azurepowershelltroubleshooting
==============================================================================
## Validating Inputs
## Validating Inputs Complete
## Initializing Az module
Generating script.
## Az module initialization Complete
## Beginning Script Execution
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command . '/home/vsts/work/_temp/b12498b4-59de-4d45-a366-34aed38e1987.ps1'
Saved!
Exception: /home/vsts/work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/4.182.0/Utility.ps1:42
Line |
  42 |  …             throw ("Could not find the module path with given version …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find the module path with given version.

##[error]PowerShell exited with code '1'.
## Script Execution Complete
Finishing: Deploy module [VirtualMachines] in [rg-wvd-pipline] via [WVDServiceConnection]

@avinashkatore-Hexaware did you use a user with the right permissions in your tenant? I used a new user with global admin with the same domain name as the tenant im in.

@ghasken Yes I am also using the user with global admin with same domain name used in Tenant.