Udostępnij za pośrednictwem


Get-AzServiceLinkerForSpringCloud

Zwraca zasób konsolidatora dla danej nazwy w chmurze spring.

Składnia

Get-AzServiceLinkerForSpringCloud
   [-ResourceUri <String>]
   [-DefaultProfile <PSObject>]
   -ServiceName <String>
   -AppName <String>
   [-DeploymentName <String>]
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   [<CommonParameters>]
Get-AzServiceLinkerForSpringCloud
   [-ResourceUri <String>]
   -Name <String>
   [-DefaultProfile <PSObject>]
   -ServiceName <String>
   -AppName <String>
   [-DeploymentName <String>]
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   [<CommonParameters>]
Get-AzServiceLinkerForSpringCloud
   -InputObject <IServiceLinkerIdentity>
   [-DefaultProfile <PSObject>]
   [-SubscriptionId <String>]
   [<CommonParameters>]

Opis

Zwraca zasób konsolidatora dla danej nazwy w chmurze spring.

Przykłady

Przykład 1. Wyświetlanie listy wszystkich konsolidatorów we wdrożeniu aplikacji spring cloud

Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -DeploymentName "default"

Name
----
appconfig_08b18
postgresql_novnet
postgresql_203ca
eventhub_3ab5f

Wyświetlanie listy wszystkich konsolidatorów we wdrożeniu aplikacji spring cloud

Przykład 2. Pobieranie konsolidatora według nazwy

Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group  -Name postgresql_connection | Format-List

AuthInfo                     : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model
                               s.Api20221101Preview.SecretAuthInfo
ClientType                   : dotnet
Id                           : /subscriptions/00000000-0000-0000-0000-000000000000/re 
                               sourceGroups/servicelinker-test-group/providers/ 
                               Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/appconfiguration/deployments/default/providers 
                               /Microsoft.ServiceLinker/linkers/postgresql_connection     
Name                         : postgresql_connection
ProvisioningState            : Succeeded
Scope                        : 
SecretStoreKeyVaultId        :
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
TargetService                : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model 
                               s.Api20221101Preview.AzureResource
Type                         : microsoft.servicelinker/linkers
VNetSolutionType             : serviceEndpoint

Pobieranie konsolidatora według nazwy

Przykład 3. Pobieranie konsolidatora za pośrednictwem obiektu tożsamości

$identity = @{
ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/appconfiguration/deployments/default'
LinkerName = 'postgresql_connection'}

$identity | Get-AzServiceLinkerForSpringCloud  | Format-List

AuthInfo                     : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model
                               s.Api20221101Preview.SecretAuthInfo
ClientType                   : dotnet
Id                           : /subscriptions/00000000-0000-0000-0000-000000000000/re 
                               sourceGroups/servicelinker-test-group/providers/ 
                               Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/appconfiguration/deployments/default/providers 
                               /Microsoft.ServiceLinker/linkers/postgresql_connection     
Name                         : postgresql_connection
ProvisioningState            : Succeeded
Scope                        : 
SecretStoreKeyVaultId        :
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
TargetService                : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model 
                               s.Api20221101Preview.AzureResource
Type                         : microsoft.servicelinker/linkers
VNetSolutionType             : serviceEndpoint

Pobieranie konsolidatora według nazwy

Parametry

-AppName

Nazwa aplikacji spring cloud service, która ma być połączona.

Typ:String
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Poświadczenia, konto, dzierżawa i subskrypcja używane do komunikacji z platformą Azure.

Typ:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
wartość domyślna:None
Wymagane:False
Accept pipeline input:False
Accept wildcard characters:False

-DeploymentName

Nazwa wdrożenia aplikacji Spring Cloud, która ma być połączona.

Typ:String
Position:Named
wartość domyślna:"default"
Wymagane:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Parametr tożsamości Do konstruowania, zobacz sekcję UWAGI dla właściwości INPUTOBJECT i utwórz tabelę skrótów.

Typ:IServiceLinkerIdentity
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Nazwa zasobu konsolidatora.

Typ:String
Aliases:LinkerName
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Grupa zasobów, która ma być połączona.

Typ:String
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceUri

W pełni kwalifikowany identyfikator usługi Azure Resource Manager zasobu, który ma być połączony.

Typ:String
Position:Named
wartość domyślna:None
Wymagane:False
Accept pipeline input:False
Accept wildcard characters:False

-ServiceName

Nazwa usługi Spring Cloud, która ma być połączona.

Typ:String
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

Pobiera identyfikator subskrypcji, który jednoznacznie identyfikuje subskrypcję platformy Microsoft Azure. Identyfikator subskrypcji stanowi część identyfikatora URI dla każdego wywołania usługi.

Typ:String
Position:Named
wartość domyślna:(Get-AzContext).Subscription.Id
Wymagane:False
Accept pipeline input:False
Accept wildcard characters:False

Dane wejściowe

IServiceLinkerIdentity

Dane wyjściowe

ILinkerResource