Skip to content

Commit 6976350

Browse files
authored
move cleanup tool. (Azure#4307)
* move cleanup tool. * move to /tools/cleanup * aAsaddas
1 parent fbba3f9 commit 6976350

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

sdk/keyvault/cleanup/CMakeLists.txt renamed to sdk/keyvault/tools/cleanup/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
99

1010
add_executable (
1111
cleanup-keyvault
12-
cleanup.cpp
12+
src/cleanup.cpp
1313
)
1414
create_per_service_target_build_for_sample(keyvault cleanup-keyvault)
1515

sdk/keyvault/tools/cleanup/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Microsoft Corporation. All rights reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

sdk/keyvault/tools/cleanup/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Get Environment Variable for Samples
2+
3+
This is an tool that helps cleanup key vault resources.
4+
It lists and then starts the delete process on keys secrets and certificates.
5+
Once that is done it will call purge on the deleted resources.
6+
While on large number of resources present in the key vault it might take a while , and be slower than deleting and recreating a key vault resource, it helps not having to reconfigure and update the connection settings.

0 commit comments

Comments
 (0)