Get-AzureAutomationConnection
Azure Automation 接続を取得します。
注意
このドキュメントで参照されているコマンドレットは、Service Management API を使用するレガシ Azure リソースを管理するためのものです。 Azure Resource Manager リソースを管理するためのコマンドレットについては、Az PowerShell モジュールを参照してください。
構文
Get-AzureAutomationConnection
-AutomationAccountName <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Get-AzureAutomationConnection
-Name <String>
-AutomationAccountName <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Get-AzureAutomationConnection
-ConnectionTypeName <String>
-AutomationAccountName <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
説明
重要
Azure Automation 用のこの PowerShell コマンドは、2020 年 1 月 23 日の時点でサポートされなくなりました。 Azure サービス管理モデルは Azure Automation では非推奨となり、その日に無効になりました。 Az.Automation で Azure Resource Management モデルをサポートするコマンドを使用してください。
Get-AzureAutomationConnection コマンドレットは、1 つ以上の Microsoft Azure Automation 接続を取得します。 既定では、すべての接続が返されます。 特定の接続を取得するには、その名前を指定します。 特定の種類のすべての接続を取得するには、接続の種類名を指定します。
例
例 1: すべての接続を取得する
PS C:\> Get-AzureAutomationConnection -AutomationAccountName "Contoso17"
このコマンドは、Contoso17 という名前の Automation アカウント内のすべての接続を取得します。
例 2: 型のすべての接続を取得する
PS C:\> Get-AzureAutomationConnection -AutomationAccountName "Contoso17" -ConnectionTypeName "Azure"
このコマンドは、Contoso17 という名前の Automation アカウント内のすべての Azure 接続を取得します。
例 3: 接続を取得する
PS C:\> Get-AzureAutomationConnection -AutomationAccountName "Contoso17" -Name "Azure"
このコマンドは、MyConnection という名前の接続を取得します。
パラメーター
-AutomationAccountName
取得する接続を持つ Automation アカウントの名前を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ConnectionTypeName
取得する接続の接続の種類の名前を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
取得する接続の名前を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Profile
このコマンドレットが読み取る Azure プロファイルを指定します。 プロファイルを指定しない場合、このコマンドレットはローカルの既定のプロファイルから読み取ります。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |