Edit

Share via


Update-AzContainerAppConnectedEnvDapr

update a Dapr Component in a connected environment.

Syntax

UpdateExpanded (Default)

Update-AzContainerAppConnectedEnvDapr
    -ConnectedEnvironmentName <String>
    -Name <String>
    -ResourceGroupName <String>
    [-SubscriptionId <String>]
    [-ComponentType <String>]
    [-IgnoreError]
    [-InitTimeout <String>]
    [-Metadata <IDaprMetadata[]>]
    [-Scope <String[]>]
    [-Secret <ISecret[]>]
    [-SecretStoreComponent <String>]
    [-Version <String>]
    [-DefaultProfile <PSObject>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

UpdateViaIdentityConnectedEnvironmentExpanded

Update-AzContainerAppConnectedEnvDapr
    -Name <String>
    -ConnectedEnvironmentInputObject <IAppIdentity>
    [-ComponentType <String>]
    [-IgnoreError]
    [-InitTimeout <String>]
    [-Metadata <IDaprMetadata[]>]
    [-Scope <String[]>]
    [-Secret <ISecret[]>]
    [-SecretStoreComponent <String>]
    [-Version <String>]
    [-DefaultProfile <PSObject>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

UpdateViaIdentityExpanded

Update-AzContainerAppConnectedEnvDapr
    -InputObject <IAppIdentity>
    [-ComponentType <String>]
    [-IgnoreError]
    [-InitTimeout <String>]
    [-Metadata <IDaprMetadata[]>]
    [-Scope <String[]>]
    [-Secret <ISecret[]>]
    [-SecretStoreComponent <String>]
    [-Version <String>]
    [-DefaultProfile <PSObject>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

update a Dapr Component in a connected environment.

Examples

Example 1: Create a Dapr Component in a connected environment.

$secretObject = New-AzContainerAppSecretObject -Name "masterkey" -Value "keyvalue"
$daprMetaData = New-AzContainerAppDaprMetadataObject -Name "masterkey" -Value "masterkey"

Update-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Name azps-connectedenvdapr -ComponentType "state.azure.cosmosdb" -Version v2 -IgnoreError:$false -InitTimeout 60s -Secret $secretObject -Metadata $daprMetaData
Name                  ComponentType        IgnoreError InitTimeout ResourceGroupName   Version
----                  -------------        ----------- ----------- -----------------   -------
azps-connectedenvdapr state.azure.cosmosdb False       60s         azps_test_group_app v2

Create a Dapr Component in a connected environment.

Example 2: Create a Dapr Component in a connected environment.

$secretObject = New-AzContainerAppSecretObject -Name "masterkey" -Value "keyvalue"
$daprMetaData = New-AzContainerAppDaprMetadataObject -Name "masterkey" -Value "masterkey"
$connectedenv = Get-AzContainerAppConnectedEnv -ResourceGroupName azps_test_group_app -Name azps-connectedenv

Update-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentInputObject $connectedenv -Name azps-connectedenvdapr -ComponentType "state.azure.cosmosdb" -Version v2 -IgnoreError:$false -InitTimeout 60s -Secret $secretObject -Metadata $daprMetaData
Name                  ComponentType        IgnoreError InitTimeout ResourceGroupName   Version
----                  -------------        ----------- ----------- -----------------   -------
azps-connectedenvdapr state.azure.cosmosdb False       60s         azps_test_group_app v2

Create a Dapr Component in a connected environment.

Example 3: Create a Dapr Component in a connected environment.

$secretObject = New-AzContainerAppSecretObject -Name "masterkey" -Value "keyvalue"
$daprMetaData = New-AzContainerAppDaprMetadataObject -Name "masterkey" -Value "masterkey"
$connectedenvdapr = Get-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Name azps-connectedenvdapr

Update-AzContainerAppConnectedEnvDapr -InputObject $connectedenvdapr -ComponentType "state.azure.cosmosdb" -Version v2 -IgnoreError:$false -InitTimeout 60s -Secret $secretObject -Metadata $daprMetaData
Name                  ComponentType        IgnoreError InitTimeout ResourceGroupName   Version
----                  -------------        ----------- ----------- -----------------   -------
azps-connectedenvdapr state.azure.cosmosdb False       60s         azps_test_group_app v2

Create a Dapr Component in a connected environment.

Parameters

-ComponentType

Component type

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ConnectedEnvironmentInputObject

Identity Parameter

Parameter properties

Type:IAppIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateViaIdentityConnectedEnvironmentExpanded
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ConnectedEnvironmentName

Name of the connected environment.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

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

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-IgnoreError

Boolean describing if the component errors are ignores

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InitTimeout

Initialization timeout

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Identity Parameter

Parameter properties

Type:IAppIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateViaIdentityExpanded
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Metadata

Component metadata

Parameter properties

Type:

IDaprMetadata[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Name of the Dapr Component.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:DaprName

Parameter sets

UpdateExpanded
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
UpdateViaIdentityConnectedEnvironmentExpanded
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroupName

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Scope

Names of container apps that can use this Dapr component

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Secret

Collection of secrets used by a Dapr component

Parameter properties

Type:

ISecret[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SecretStoreComponent

Name of a Dapr component to retrieve component secrets from

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

The ID of the target subscription.

Parameter properties

Type:String
Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Version

Component version

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

IAppIdentity

Outputs

IDaprComponent