次の方法で共有


Get-AzServiceFabricManagedClusterService

指定したアプリケーションとクラスターで Service Fabric マネージド サービスの詳細を取得します。 ARM でデプロイされたサービスのみをサポートします。

構文

Get-AzServiceFabricManagedClusterService
   [-ResourceGroupName] <String>
   [-ClusterName] <String>
   [-ApplicationName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzServiceFabricManagedClusterService
   [-ResourceGroupName] <String>
   [-ClusterName] <String>
   [-ApplicationName] <String>
   [-Name] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzServiceFabricManagedClusterService
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

説明

このコマンドレットは、指定されたアプリケーションとクラスター内のマネージド サービスの詳細を取得します。

例 1

$resourceGroupName = "testRG"
$clusterName = "testCluster"
$appName = "testApp"
$serviceName = "testService"
Get-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName -Name $serviceName

この例では、マネージド サービス "testService" のマネージド サービス リソースの詳細を取得します。

例 2

$resourceGroupName = "testRG"
$clusterName = "testCluster"
$appName = "testApp"
Get-AzServiceFabricManagedClusterService -ResourceGroupName $resourceGroupName -ClusterName $clusterName -ApplicationName $appName

この例では、アプリケーション "testApp" の下にあるマネージド サービスの一覧を取得します。

例 3

$resourceId = "/subscriptions/13ad2c84-84fa-4798-ad71-e70c07af873f/resourcegroups/testRG/providers/Microsoft.ServiceFabric/managedClusters/testCluster/applications/testApp/services/testService"
Get-AzServiceFabricManagedClusterService -ResourceId $resourceId

この例では、指定された ARM リソース ID を使用してマネージド サービスの詳細を取得します。リソースが見つからない場合は、例外がスローされます。

パラメーター

-ApplicationName

マネージド アプリケーションの名前を指定します。

型:String
配置:2
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-ClusterName

クラスターの名前を指定します。

型:String
配置:1
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-DefaultProfile

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

型:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-Name

マネージド サービスの名前を指定します。

型:String
Aliases:ServiceName
配置:3
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-ResourceGroupName

リソース グループの名前を指定します。

型:String
配置:0
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-ResourceId

マネージド サービスの Arm ResourceId。

型:String
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

入力

String

出力

PSManagedService