Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Import module fails on Azure DevOps hosted Windows agent

未关闭
#679 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
azure, powershell
领域
ci-cd, cloud

调研方向

从 Az.DevTestLabs2.psm1 第 41 行开始,在托管的 Azure DevOps Windows 2019 代理上重现导入过程。追踪 Microsoft.Azure.Common.Authentication.AzureSession 在该环境中不可用的原因,然后验证模块导入能在该环境中成功完成。

由索引模型根据 Issue 内容生成。

描述

az.devtestlabs bug

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.

主要语言
PowerShell
星标
465
派生
595
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Azure/azure-devtestlab 的其他 Issue

查看 Azure/azure-devtestlab 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。