你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzContainerAppConnectedEnvDapr

Get a dapr component.

Syntax

Get-AzContainerAppConnectedEnvDapr
   -ConnectedEnvironmentName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzContainerAppConnectedEnvDapr
   -ConnectedEnvironmentName <String>
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzContainerAppConnectedEnvDapr
   -Name <String>
   -ConnectedEnvironmentInputObject <IAppIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzContainerAppConnectedEnvDapr
   -InputObject <IAppIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Get a dapr component.

Examples

Example 1: List dapr component by connected env name.

Get-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app

Name                  ComponentType        IgnoreError InitTimeout ResourceGroupName   Version
----                  -------------        ----------- ----------- -----------------   -------
azps-connectedenvdapr state.azure.cosmosdb False       50s         azps_test_group_app v1

List dapr component by connected env name.

Example 2: Get a dapr component by name.

Get-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Name azps-connectedenvdapr

Name                  ComponentType        IgnoreError InitTimeout ResourceGroupName   Version
----                  -------------        ----------- ----------- -----------------   -------
azps-connectedenvdapr state.azure.cosmosdb False       50s         azps_test_group_app v1

Get a dapr component by name.

Example 3: Get a dapr component.

$connectedenv = Get-AzContainerAppConnectedEnv -ResourceGroupName azps_test_group_app -Name azps-connectedenv
Get-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentInputObject $connectedenv -Name azps-connectedenvdapr

Name                  ComponentType        IgnoreError InitTimeout ResourceGroupName   Version
----                  -------------        ----------- ----------- -----------------   -------
azps-connectedenvdapr state.azure.cosmosdb False       50s         azps_test_group_app v1

Get a dapr component.

Parameters

-ConnectedEnvironmentInputObject

Identity Parameter

Type:IAppIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ConnectedEnvironmentName

Name of the connected environment.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter

Type:IAppIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Name of the Dapr Component.

Type:String
Aliases:DaprName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group. The name is case insensitive.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The ID of the target subscription.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IAppIdentity

Outputs

IDaprComponent