2017-11-12 9 views
0

다음 명령은 공식 문서에서 Linux 서비스 패브릭 클러스터를 작성하는 코드 스 니펫을 기반으로합니다.azure CLI 태스크 "az sf cluster create"가 호스트 에이전트와 함께 실행되지 않습니다.

원래는 bash 스크립트 였지만 내 개인 빌드 에이전트에서는 사용할 수 없습니다 (Windows 내부 프로그램이 필요합니다). 그래서 배치 스크립트로 전환했습니다. 다음 명령이 실패하는 이유

이 궁금 :

d:\a\r1\a>call az sf cluster create --resource-group "ha17aztestclustergroup" --location "westeurope" --certificate-output-folder . --certificate-password "433q6D7sdNKkd-.,[email protected]" --certificate-subject-name "ha17rsomaztestsf.cloudapp.azure.com" --cluster-name "ha17aztestcluster" --cluster-size 3 --os UbuntuServer1604 --vault-name "ha17rsomaztestkeyvault" --vault-resource-group "ha17aztestclustergroup" --vm-password $VmPassword --vm-user-name "sfadmin" 
ERROR: az sf cluster: error: argument subcommand: invalid choice: create 
usage: az sf cluster [-h] 
         {select,manifest,code-version,config-version,health} ... 

동일한 인라인 스크립트는 설치 AZ CLI 2.0.20 내 개인 빌드 에이전트에 작업을 수행합니다.

Azure 호스트 에이전트 (VS2017)에는 AZ CLI 2.0.14가 설치되어 있습니다.
하지만 그게 문제인지 의심 스럽습니다.

답변

0

호스팅 된 VS2017는 (2.0.21 포함), 당신이 z sf cluster --help 명령으로 푸른 CLI 작업을 추가하여 확인할 수 있습니다 AZ 김포 클러스터 create 명령이없는, 푸른 CLI 2.0.14가 설치되어 명령을 확인하십시오.

따라서 개인 빌드 에이전트를 설정하고이 에이전트로 빌드 할 수 있습니다. Deploy an agent on Windows