azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Remove-AzureAutomationModule doesn't remove Connection Type

Open SherifTalaat opened this issue 11 years ago • 2 comments

When you run the New-AzureAutomationModule cmdlet to import a module to Azure automation, It will extract the activities and connection type (if any) for that module. But, when you run Remove-AzureAutomationModule cmdlet, it removes only the activities and keep the connection type as it. The connection type with out the module is useless and it should be deleted too as part of the removal process.

Regards, Sherif Talaat PowerShell MVP

SherifTalaat avatar Jun 29 '15 22:06 SherifTalaat

@SherifTalaat Thank you for the report, assigning to the Automation team for investigation

markcowl avatar Jun 29 '15 23:06 markcowl

Connection types as not useless without modules, although modules are our main reason for them. We are adding a Remove-AzureAutomationConnectionType cmdlet to the ASM and ARM modules in the next release that will allow you to remove connection types if you don't want them anymore.

JAL9302 avatar Aug 25 '15 19:08 JAL9302