remove_controlplane.sh
Sammanfattning
Tar bort kontrollplanet, inklusive den virtuella distributionsdatorn och SAP-biblioteket. Det är viktigt att ta bort terraform-distribuerade artefakter med Terraform för att säkerställa att borttagningarna görs korrekt.
Syntax
remove_controlplane.sh [-d or --deployer_parameter_file ] <String> [-l or --library_parameter_file ] <String>
Description
Tar bort SAP-kontrollplanet, inklusive den virtuella distributionsdatorn och SAP-biblioteket.
Exempel
Exempel 1
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
export ARM_CLIENT_ID="<appId>"
export ARM_CLIENT_SECRET="<password>"
export ARM_TENANT_ID="<tenantId>"
export env_code="MGMT"
export region_code="WEEU"
export vnet_code="DEP01"
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
az logout
az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
sudo ${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/remove_controlplane.sh.sh \
--deployer_parameter_file "${CONFIG_REPO_PATH}/DEPLOYER/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars" \
--library_parameter_file "${CONFIG_REPO_PATH}/LIBRARY/${env_code}-${region_code}-SAP_LIBRARY/${env_code}-${region_code}-SAP_LIBRARY.tfvars"
Exempel 2
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
export ARM_CLIENT_ID="<appId>"
export ARM_CLIENT_SECRET="<password>"
export ARM_TENANT_ID="<tenantId>"
export env_code="MGMT"
export region_code="WEEU"
export vnet_code="DEP01"
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
az logout
az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
sudo ${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/remove_controlplane.sh.sh \
--deployer_parameter_file "${CONFIG_REPO_PATH}/DEPLOYER/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars" \
--library_parameter_file "${CONFIG_REPO_PATH}/LIBRARY/${env_code}-${region_code}-SAP_LIBRARY/${env_code}-${region_code}-SAP_LIBRARY.tfvars"
--subscription xxxxxxxxxxx
--storage_account mgmtweeutfstate###
Parameters
--deployer_parameter_file
Anger parameterfilen för den virtuella distributionsdatorn. Mer information finns i Konfigurera kontrollplanet.
Type: String
Aliases: `-d`
Required: True
--library_parameter_file
Anger parameterfilen för SAP-biblioteket. Mer information finns i Konfigurera kontrollplanet.
Type: String
Aliases: `-l`
Required: True
--subscription
Anger den prenumeration som innehåller SAP-biblioteket. Mer information finns i Konfigurera kontrollplanet.
Type: String
Aliases: `-l`
Required: True
--storage_account
Anger lagringskontonamnet för lagringskontot tfstate
i SAP-biblioteket. Mer information finns i Konfigurera kontrollplanet.
Type: String
Aliases: `-l`
Required: True
--help
Visar hjälp för skriptet.
Type: SwitchParameter
Aliases: `-h`
Required: False
OBS!
v0.9 – Ursprunglig version
Copyright (c) Microsoft Corporation. Licensierad under MIT-licensen.
Relaterade länkar
GitHub-lagringsplats: SAP i Azure Deployment Automation Framework