Azure / Azure/ResourceModules

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

Open
#1,784 0 comments 0 reactions 0 assignees View on GitHub
[cat] testing [cat] utilities enhancement
Dominant language
PowerShell
Stars
737
Forks
436
Avg merge
10d 7h
Merged PRs (30d)
1

Description

### 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'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.