Azure-Player / azure.datafactory.tools

Tools for deploying Data Factory (v2) in Microsoft Azure
https://azureplayer.net/adftools
MIT License
209 stars 69 forks source link

Force Flag is not a parameter for Remove-AdfObject #311

Closed glen-edwards-jackson closed 1 year ago

glen-edwards-jackson commented 1 year ago

Describe the bug Deleting a credential is passing in a Force parameter but that parameter generates:

Exception: /home/runner/.local/share/powershell/Modules/azure.datafactory.tools/1.4.0/private/Remove-AdfObject.ps1:125 Line | 125 | throw $ErrorMessage | ~~~~~~~ | A parameter cannot be found that matches parameter name 'Force'. Error: Process completed with exit code 1.

https://github.com/Azure-Player/azure.datafactory.tools/blob/master/private/Remove-AdfObjectRestAPI.ps1#L6 Has only three parameters and Force is not one of them.

This is called by the following which is passing a Force parameter https://github.com/Azure-Player/azure.datafactory.tools/blob/master/private/Remove-AdfObject.ps1#L82