-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add config_clean.sh as a way to clean up MLZ resources #159
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything worked as designed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake, it looks like the cleanup script is deleting all the resources, including the hub and T0. That is not the intended behavior, right?
INFO: deleting rg-mlz-tf-mlz1618577267...
INFO: deleting rg-tf-sacahub-mlz1618577267...
INFO: deleting rg-tf-tier0-mlz1618577267...
INFO: deleting rg-tf-tier1-mlz1618577267...
INFO: deleting rg-tf-tier2-mlz1618577267...
INFO: deleting rg-saca-mlz1618577267...
INFO: deleting rg-t0-mlz1618577267...
INFO: deleting rg-t1-mlz1618577267...
INFO: deleting rg-t2-mlz1618577267...
INFO: deleting service principal sp-mlz-tf-mlz1618577267...
Removing role assignments
INFO: purging key vault mlzkvmlz1618577267d8f20d...
INFO: Complete! Resources for mlz1618577267 deleted!
@brooke-hamilton you're right, let me update how MLZ Configuration resources are tagged. |
This should be fixed @brooke-hamilton |
When I deployed everything to the same sub, this worked exactly as described. This scenario did not work:
src/deploy.sh -s {my_mlz_configuration_subscription_id} \
-h {my_hub_network_subscription_id} \
-0 {my_identity_network_subscription_id} \
-1 {my_operations_network_subscription_id} \
-2 {my_shared_services_network_subscription_id} \
-z {my_mlz_environment_name}
src/scripts/config/config_clean.sh src/generated-configurations/jbh002.mlzconfig
INFO: deleting mlz-config-jbh002...
Resource group 'mlz-config-jbh002' could not be found. |
That makes sense. I'll update to use the correct subscription. Thanks! |
Description
Provide a mechanism to clean up all the resources created by Mission LZ to support a deployment.
Issue reference
The issue this PR will close: #4, #150
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:
shellcheck
.vscode/extensions.json
.)