ResourceModules icon indicating copy to clipboard operation
ResourceModules copied to clipboard

[Feature Request]: Support resource removal as a feature of the 'Test-ModuleLocally' script

Open ahmadabdalla opened this issue 3 years ago • 0 comments

Description

Currently the test module locally scripts supports:

  • Pester test
  • Validation test
  • Deployment test

And the 'resource removal' is a process our CI platform performs when it deploys a module. However if we are doing these deployments locally, we have to manually go into the portal and delete the resources or I would have to run the removal script locally.

In addition, the 'Get-DependencyResourceNameList.ps1' also performs token replacement logic, that is no longer needed by the pipelines as the token replacement stage replaces tokens for both the parameter files and the dependency files. We can for example remove this logic and enable resource removal via the 'Test-ModuleLocally' script, and retire the token replacement logic in the 'Get-DependencyResourceNameList.ps1'

ahmadabdalla avatar Aug 14 '22 21:08 ahmadabdalla