Powershell Azure Devops连接到SharePoint Online租户-连接SPOService cmdlet超时
一直在使用Azure DevOps自动化针对SharePoint Online的某些PowerShell脚本。据我所知,我的第一步需要针对该租户进行身份验证。以下是我到目前为止得到的信息: 触发: -主人 游泳池: vmImage:“windows最新版本” 步骤:Powershell Azure Devops连接到SharePoint Online租户-连接SPOService cmdlet超时,powershell,sharepoint,azure-devops,Powershell,Sharepoint,Azure Devops,一直在使用Azure DevOps自动化针对SharePoint Online的某些PowerShell脚本。据我所知,我的第一步需要针对该租户进行身份验证。以下是我到目前为止得到的信息: 触发: -主人 游泳池: vmImage:“windows最新版本” 步骤: powershell:安装模块-名称Microsoft.Online.SharePoint.powershell-RequiredVersion 16.0.8029.0-强制 displayName:“安装SP Online Po
- powershell:安装模块-名称Microsoft.Online.SharePoint.powershell-RequiredVersion 16.0.8029.0-强制 displayName:“安装SP Online PowerShell”
- powershell:$cred=New Object-TypeName System.Management.Automation.PSCredential-argumentlist$env:USERNAME,$(convertto securestring$env:PASSWORD-asplaintext-force) displayName:'从以前的变量中形成凭据变量'
- powershell:Connect-SPOService-Url https://$env:ORG-admin.sharepoint.com-凭据$cred displayName:“连接到租户”
谢谢 您似乎正在跟随以连接到Sharepoint online 注意:当出现Windows PowerShell凭据请求对话框提示时,请键入SharePoint Online SharePoint管理员帐户的密码 使用Microsoft hosted agent运行PowerShell任务时,我们无法访问UI以在dislog框中输入密码。所以这是不支持的方式
相反,您可能会从以下两个文档中获得帮助:和。除了microsoft hosted agent之外,如果使用自代理运行管道,结果会是什么。您可以在您的计算机中安装一个自代理,并调用它来运行相同的管道,以检查托管代理是否缺少此进程所需的某些组件。嗨,朋友,是否有此问题的更新?