Set-AzureRmAutomationConnectionFieldValue
Modifies the value of a field in an Automation connection.
Syntax
Set-AzureRmAutomationConnectionFieldValue
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-Name] <String>
-ConnectionFieldName <String>
-Value <Object>
[<CommonParameters>]
Description
The Set-AzureRmAutomationConnectionFieldValue cmdlet modifies the value of a field in a connection in Azure Automation.
Examples
Example 1: Change a field value in a connection
PS C:\>Set-AzureRmAutomationConnectionFieldValue -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.
Required 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 |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
-ConnectionFieldName
Specifies a name for the field that this cmdlet modifies.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| 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 |
| Accept pipeline input: | True (ByPropertyName) |
| 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 |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
-Value
Specifies a value to modify in the connection field.
| Type: | Object |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
Outputs
Microsoft.Azure.Commands.Automation.Model.Connection