New-​Azure​Automation​Connection

Creates a connection in Automation.

Syntax

New-AzureAutomationConnection
   -AutomationAccountName <String>
   -ConnectionFieldValues <IDictionary>
   -ConnectionTypeName <String>
   [-Description <String>]
   -Name <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

The New-AzureAutomationConnection cmdlet creates a connection in Microsoft Azure Automation.

Required Parameters

-AutomationAccountName

Specifies the name of the Automation account the connection will be stored in.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ConnectionFieldValues

Specifies a hash table that contains key/value pairs. The keys represent the connection fields on the specified connection type. The values represent the specific values to store for each connection field for the connection instance.

Type:IDictionary
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ConnectionTypeName

Specifies the name of the connection type.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies a name for the connection.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Description

Specifies a description for the credential.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.Automation.Model.Connection