0
나는 서부 유럽 지역의 국가 클라우드 환경 AzureGermanCloud에서 VM을 중지시키기 위해 powershell runbook을 만들려고합니다. 나는 포털에서 그것을 테스트 할 때 여기 내 PowerShell 콘솔에서 인증국립 구름 환경을위한 자동화 런북
$Cred = Get-AutomationPSCredential -Name $CredentialAssetName
if(!$Cred) {
Throw "Could not find an Automation Credential Asset named '${CredentialAssetName}'. Make sure you have created one in this Automation Account."
}
#Get the Azure environment with the above name from the Automation Asset store
$Env = Get-AutomationVariable -Name $AzureEnvironmentName
if(!$Env) {
Throw "Could not find an Azure environment '${AzureEnvironmentName}'."
}
$Account = Add-AzureRmAccount -Credential $Cred -EnvironmentName $Env
의 코드는하지만 말한다 작동 :
추가 AzureRmAccount을 'AzureGermanCloud'
이름을 가진 환경을 찾을 수 없습니다다른 환경의 국가 별 클라우드 환경에 액세스하는 데 제한이 있습니까? 아니면 뭔가 누락 된 것입니까? the docs에 따르면
감사합니다,
PGR