The first command assigns a hash table of field values to the $FieldValue variable.
The second command creates an Azure connection named Connection12 in the Automation account named AutomationAccount01.
The command uses the connection field values in $FieldValues.
Example 2: Create a connection for ConnectionTypeName=AzureServicePrincipal
The command creates an Azure connection named Connection13 in the Automation account named AutomationAccount01 using $RunAsAccountConnectionFieldValues and ConnectionTypeName=AzureServicePrincipal.
This ConnectionTypeName=AzureServicePrincipal is mainly used for Azure Run As Account.
Example 3: Create a connection for ConnectionTypeName=AzureClassicCertificate
The command creates an Azure connection named Connection14 in the Automation account named AutomationAccount01 using $ClassicRunAsAccountConnectionFieldValues and ConnectionTypeName=AzureClassicCertificate.
This ConnectionTypeName=AzureClassicCertificate is mainly used for Azure Classic Run As Account.
Parameters
-AutomationAccountName
Specifies the name of the Automation account for which this cmdlet creates a connection.
Specifies a hash table that contains key/value pairs.
The keys represent the connection fields for the specified connection type.
The values represent the specific values of each connection field for the connection instance.
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.