Remove-AzureRmAutomationConnection
Removes an Automation connection.
Syntax
Remove-AzureRmAutomationConnection
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-Name] <String>
[-Force]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Description
The Remove-AzureRmAutomationConnection cmdlet removes a connection from Azure Automation.
Examples
Example 1: Remove a connection
PS C:\>Remove-AzureRmAutomationConnection -AutomationAccountName "Contoso17" -Name "ContosoConnection" -ResourceGroupName "ResourceGroup01"
This command removes a certificate named ContosoConnection in the Automation account named Contoso17.
Required Parameters
-AutomationAccountName
Specifies the name of the automation account for which this cmdlet removes a connection.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
-Name
Specifies the name of the connection that this cmdlet removes.
| 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 removes a connection.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
Optional Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-Force
ps_force
| Type: | SwitchParameter |
| Position: | 3 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |