AzureのPowerShellのV2を指定されている。* VSTSに成功しAzureのPowerShellのスタート-AzureAutomationRunbookありませんデフォルトのサブスクリプションが
Get-AzureRmResourceGroup
を実行することができると良い...右の結果を返します!これにより、VSTSとAzureアカウント間の認証が期待どおりに機能していることがうまく証明されます。
私は、以下のコマンドをしようとすると:
Add-AzureRMAccount -ServicePrincipal -Tenant ******** -Credential System.Management.Automation.PSCredential -EnvironmentName AzureCloud
Select-AzureRMSubscription -SubscriptionId 12345678-1234-1234-1234-1234567890AB -TenantId ********
:
No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription.
しかし、VSTSは前にこれらのコマンドを実行し、自動的に、すでに次のとおりです。
Start-AzureAutomationRunbook -AutomationAccountName "automationaccountname" -Name "RunbookName"
を私はこれを取得しています以前のコマンドでサブスクリプションが既に選択されているため、実行する必要があるかどうかはわかりません。どんな手掛かり?
ありがとう、 Start-AzureRmAutomationRunbook - 自動アカウント名 "Contoso17" - 名前 "Runbk01" -ResourceGroupName "ResourceGroup01"が機能しました –