次の方法で共有


Get-AzAutomationAccount

リソース グループ内の Automation アカウントを取得します。

構文

ByAll (既定)

Get-AzAutomationAccount
    [[-ResourceGroupName] <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByAutomationAccountName

Get-AzAutomationAccount
    [-ResourceGroupName] <String>
    [-Name] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

Get-AzAutomationAccount コマンドレットは、リソース グループ内の Azure Automation アカウントを取得します。 Automation アカウントの詳細については、New-AzAutomationAccount コマンドレットを参照してください。

例 1: すべてのアカウントを取得する

Get-AzAutomationAccount -ResourceGroupName "ResourceGroup03"

このコマンドは、ResourceGroup03 という名前のリソース グループ内のすべての Automation アカウントを取得します。

例 2: アカウントを取得する

Get-AzAutomationAccount -ResourceGroupName "ResourceGroup03" -Name "ContosoAutomationAccount"

このコマンドは、ContosoResourceGroup という名前のリソース グループ内の ContosoAutomationAccount という名前の Automation アカウントを取得します。

パラメーター

-DefaultProfile

Azure との通信に使用される資格情報、アカウント、テナント、サブスクリプション

パラメーターのプロパティ

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Name

このコマンドレットが取得する Automation アカウントの名前を指定します。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AutomationAccountName

パラメーター セット

ByAutomationAccountName
配置:1
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-ResourceGroupName

このコマンドレットが Automation アカウントを取得するリソース グループの名前を指定します。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

ByAll
配置:0
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

入力

String

出力

AutomationAccount