gpt4 book ai didi

azure - ##[错误]找不到与参数名称 'NonComplianceMessage' 匹配的参数

转载 作者:行者123 更新时间:2023-12-03 04:41:05 25 4
gpt4 key购买 nike

将 Azure DevOps 管道与 PowerShell 脚本结合使用,通过 NonComplianceMessage 分配策略。然后我收到以下错误。

2021-08-02T07:21:05.7714484Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\cadf1c03-4c62-4b29-94bb-75675246caf1.ps1'"
2021-08-02T07:21:09.4647913Z ##[command]Import-Module -Name C:\Modules\az_3.1.0\Az.Accounts\2.2.5\Az.Accounts.psd1 -Global
2021-08-02T07:21:10.9130504Z ##[command]Clear-AzContext -Scope CurrentUser -Force -ErrorAction SilentlyContinue
2021-08-02T07:21:11.8858020Z ##[command]Clear-AzContext -Scope Process
2021-08-02T07:21:12.5106334Z ##[command]Connect-AzAccount -ServicePrincipal -Tenant *** -Credential System.Management.Automation.PSCredential -Environment AzureCloud @processScope
2021-08-02T07:21:14.7099241Z ##[command] Set-AzContext -SubscriptionId d6d47b2f-91eb-4003-bd93-aeba442cd113 -TenantId ***
2021-08-02T07:21:22.1462218Z ##[error]**A parameter cannot be found that matches parameter name 'NonComplianceMessage'.**
2021-08-02T07:21:22.3074409Z ##[error]PowerShell exited with code '1'.

最佳答案

在发布管道中,将Azure PowerShell 版本更改为最新安装版本,而不是指定其他版本 (3.1.0)

Azure DevOps Pipeline Task - Azure PowerShell Version Update

关于azure - ##[错误]找不到与参数名称 'NonComplianceMessage' 匹配的参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68619470/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com