Remove_region.sh

Synopsis

Removes the control plane, including the deployer VM and the SAP library. It is important to remove the terraform deployed artifacts using Terraform to ensure that the removals are done correctly.

Syntax


remove_region.sh  [-d or --deployer_parameter_file ] <String> [-l or --library_parameter_file ] <String>

Description

Removes the SAP control plane, including the deployer VM and the SAP library.

Examples

Example 1

${DEPLOYMENT_REPO_PATH}/deploy/scripts/remove_region.sh                                                         \
        --deployer_parameter_file DEPLOYER/MGMT-WEEU-DEP00-INFRASTRUCTURE/MGMT-WEEU-DEP00-INFRASTRUCTURE.tfvars  \
        --library_parameter_file LIBRARY/MGMT-WEEU-SAP_LIBRARY/MGMT-WEEU-SAP_LIBRARY.tfvars                      

Example 2

${DEPLOYMENT_REPO_PATH}/deploy/scripts/remove_region.sh                                                          \
        --deployer_parameter_file DEPLOYER/MGMT-WEEU-DEP00-INFRASTRUCTURE/MGMT-WEEU-DEP00-INFRASTRUCTURE.tfvars  \
        --library_parameter_file LIBRARY/MGMT-WEEU-SAP_LIBRARY/MGMT-WEEU-SAP_LIBRARY.tfvars                      \
        --subscription xxxxxxxxxxx
        --storage_account mgmtweeutfstate###

Parameters

--deployer_parameter_file

Sets the parameter file for the deployer VM. For more information, see Configuring the control plane.

Type: String
Aliases: `-d`

Required: True

--library_parameter_file

Sets the parameter file for the SAP library. For more information, see Configuring the control plane.

Type: String
Aliases: `-l`

Required: True

--subscription

Sets the subscription that contains the SAP library. For more information, see Configuring the control plane.

Type: String
Aliases: `-l`
Required: True

--storage_account

Sets the storage account name of the tfstate storage account in SAP library. For more information, see Configuring the control plane.

Type: String
Aliases: `-l`
Required: True

--help

Shows help for the script.

Type: SwitchParameter
Aliases: `-h`

Required: False

Notes

v0.9 - Initial version

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

GitHub repository: SAP on Azure Deployment Automation Framework