希望有人能帮我解决这个问题。我收到此错误:
设置-iOSversion -TenantId 123456-abcd-12345-abcd-12345678 -Client ... 找不到接受参数 '='
的位置参数 pool:
name: 'default'
trigger:
branches:
include:
- develop
paths:
include:
- 'mydomain.com'
pr: none
variables:
working_dir: $(Build.SourcesDirectory)\AzDO\dev
jobs:
- job: iOSminimumversion
steps:
- checkout: self
- task: UniversalPackages@0
inputs:
command: 'download'
downloadDirectory: '$(working_dir)'
feedsToUse: 'internal'
vstsFeed: 'xxxxxxx'
vstsFeedPackage: 'intune-iosversion'
vstsPackageVersion: '*'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Import-Module $(working_dir)\scripts\DeviceCompliance\Update-iOSversion.ps1
Write-Host "Updating Device Compliance policies in nbimdev.onmicrosoft.com"
Set-iOSversion -TenantId $(TenantId) -ClientId $(CLIENTID) -ClientSecret $env:MAPPED_SECRET -JSONPath "$(working_dir)\configs\DeviceCompliance\"
env:
MAPPED_SECRET: $(SECRET)
(我替换了实际数字,但没有任何等号)
-TenantId 123456-abcd-12345-abcd-12345678 -ClientId 123456-abcd-1234-1234-12345678 -ClientSecret $env:MAPPED_SECRET -JSONPath /opt/azdoagent/_config/DO/s/s \设备合规性\
但是从我所见,我的参数中根本没有 = 符号?还有什么我可能在这里遗漏的吗?感谢您的帮助!