編集

次の方法で共有


Set-AzAutomationConnectionFieldValue

Modifies the value of a field in an Automation connection.

Syntax

Set-AzAutomationConnectionFieldValue
   [-Name] <String>
   -ConnectionFieldName <String>
   -Value <Object>
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Set-AzAutomationConnectionFieldValue cmdlet modifies the value of a field in a connection in Azure Automation.

Examples

Example 1: Change a field value in a connection

Set-AzAutomationConnectionFieldValue -Name "ContosoConnection" -ConnectionFieldName "SubscriptionID" -Value "b53ec456-3494-4847-8f2b-180901c51050" -ResourceGroupName "ResourceGroup01" -AutomationAccountName "AutomationAccount01"

This command changes the subscription ID for the Azure connection named ContosoConnection in the Automation account named AutomationAccount01.

Parameters

-AutomationAccountName

Specifies the name of the Automation account for which this cmdlet modifies a field in a connection.

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

-ConnectionFieldName

Specifies a name for the field that this cmdlet modifies.

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

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies a name for the connection for which this cmdlet modifies a field.

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

-ResourceGroupName

Specifies the name of the resource group for which this cmdlet modifies a field in a connection.

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

-Value

Specifies a value to modify in the connection field.

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

Inputs

String

Object

Outputs

Connection