Bagikan melalui


remove_controlplane.sh

Sinopsis

Menghapus sarana kontrol, termasuk Mesin Virtual penyebar dan pustaka SAP. Penting untuk menghapus artefak yang disebarkan terraform menggunakan Terraform untuk memastikan bahwa penghapusan dilakukan dengan benar.

Sintaks


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

Deskripsi

Menghapus sarana kontrol SAP, termasuk Mesin Virtual penyebar dan pustaka SAP.

Contoh

Contoh 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"
              

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

Parameter

--deployer_parameter_file

Atur file parameter untuk Mesin Virtual penyebar. Untuk informasi selengkapnya, lihat Mengonfigurasi bidang kontrol.

Type: String
Aliases: `-d`

Required: True

--library_parameter_file

Mengatur file parameter untuk pustaka SAP. Untuk informasi selengkapnya, lihat Mengonfigurasi bidang kontrol.

Type: String
Aliases: `-l`

Required: True

--subscription

Mengatur langganan yang berisi pustaka SAP. Untuk informasi selengkapnya, lihat Mengonfigurasi bidang kontrol.

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

--storage_account

Mengatur nama akun penyimpanan dari akun penyimpanan tfstate di pustaka SAP. Untuk informasi selengkapnya, lihat Mengonfigurasi bidang kontrol.

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

--help

Menunjukkan bantuan untuk skrip.

Type: SwitchParameter
Aliases: `-h`

Required: False

Catatan

v0.9 - Versi awal

Hak Cipta (c) Microsoft Corporation. Dilisensikan di bawah lisensi MIT.

Repositori GitHub: SAP di Azure Deployment Automation Framework