스크립트로 대화 형으로 내 Azure 계정에 로그인하려고합니다. 실패 내가 왜 모르겠어 :로그인 - AzureRmAccount가 PSCredential을 사용하여 Azure에 로그인 할 수 없습니다.
$secpasswd = ConvertTo-SecureString "[email protected]$$W0rd" -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential ("[email protected]", $secpasswd)
Login-AzureRmAccount -Credential $cred
이 내가 점점 오전 오류는 다음과 같습니다
이Login-AzureRmAccount : Sequence contains no elements
사람이 하나 제발 도와 주 시겠어요?
감사
그냥 잠깐 만요. 예약 된 문자 ($와 같은)를 이스케이프 처리 할 수 있습니까? –
문자열을 큰 따옴표 대신 작은 따옴표로 묶으십시오. –