Dela via


Get-AzServiceFabricManagedClusterApplicationTypeVersion

Hämta versionsinformation för Service Fabric-hanterad programtyp. Stöder endast ARM-distribuerade programtypsversioner.

Syntax

Get-AzServiceFabricManagedClusterApplicationTypeVersion
   [-ResourceGroupName] <String>
   [-ClusterName] <String>
   [-Name] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzServiceFabricManagedClusterApplicationTypeVersion
   [-ResourceGroupName] <String>
   [-ClusterName] <String>
   [-Name] <String>
   [-Version] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzServiceFabricManagedClusterApplicationTypeVersion
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Använd den här cmdleten för att hämta versionsinformationen för den hanterade programtypen i den angivna resursgruppen och klustret.

Exempel

Exempel 1

$resourceGroupName = "testRG"
$clusterName = "testCluster"
$appTypeName = "testAppType"
$appTypeVersion = "v1"
Get-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName -Version $appTypeVersion

Det här exemplet hämtar den hanterade programtypen "testAppType" med version "v1", om den inte hittar resursen utlöser det ett undantag.

Exempel 2

$resourceGroupName = "testRG"
$clusterName = "testCluster"
$appTypeName = "testAppType"
Get-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceGroupName $resourceGroupName -ClusterName $clusterName -Name $appTypeName

Det här exemplet hämtar en lista över de versioner av hanterade programtyper som definierats under det angivna klustret och typen.

Exempel 3

$resourceId = "/subscriptions/13ad2c84-84fa-4798-ad71-e70c07af873f/resourcegroups/testRG/providers/Microsoft.ServiceFabric/managedClusters/testCluster/applicationTypes/testAppType/versions/v1"
Get-AzServiceFabricManagedClusterApplicationTypeVersion -ResourceId $resourceId

Det här exemplet hämtar versionsinformationen för den hanterade programtypen med angivet ARM-resurs-ID. Om den inte hittar resursen utlöser det ett undantag.

Parametrar

-ClusterName

Ange namnet på klustret.

Typ:String
Position:1
standardvärde:None
Obligatorisk:True
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.

Typ:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
standardvärde:None
Obligatorisk:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Ange namnet på den hanterade programtypen.

Typ:String
Aliases:ApplicationTypeName
Position:2
standardvärde:None
Obligatorisk:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

Ange namnet på resursgruppen.

Typ:String
Position:0
standardvärde:None
Obligatorisk:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceId

Arm ResourceId för den hanterade programtypsversionen.

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:True
Accept wildcard characters:False

-Version

Ange versionen av den hanterade programtypen.

Typ:String
Aliases:ApplicationTypeVersion
Position:3
standardvärde:None
Obligatorisk:True
Accept pipeline input:True
Accept wildcard characters:False

Indata

String

Utdata

PSManagedApplicationTypeVersion