Azure / Azure/azure-devtestlab

Import module fails on Azure DevOps hosted Windows agent

Open
#679 0 comments 0 reactions 0 assignees View on GitHub
az.devtestlabs bug
Dominant language
PowerShell
Stars
465
Forks
595
PR merge metrics
No merged PRs in 30d

Description

Following error occurs when importing Az.DevTestLabs2.psm1 from a hosted Azure DevOps agent (Windows 2019):
`2020-07-21T20:00:11.7741278Z Unable to find type [Microsoft.Azure.Common.Authentication.AzureSession].
2020-07-21T20:00:11.7742175Z At D:\a\r1\a\Az.DevTestLabs2.psm1:41 char:1
2020-07-21T20:00:11.7750292Z + [Microsoft.Azure.Common.Authentication.AzureSession]::ClientFactory.A …
2020-07-21T20:00:11.7751075Z + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-07-21T20:00:11.7752103Z + CategoryInfo : InvalidOperation: (Microsoft.Azure.Com…cation.AzureSession:TypeName) [], ParentContainsErrorRecordException
2020-07-21T20:00:11.7753250Z + FullyQualifiedErrorId : TypeNotFound
`

It seems that the referenced library is not present on such agent VMs.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.