## Connect to the deployer VM
After the control plane is deployed, the Terraform state is stored by using the remote back-end `azurerm`. All secrets for connecting to the deployer VM are available in a key vault in the deployer's resource group.
To connect to your deployer VM:
1. Sign in to the [Azure portal](https://portal.azure.com).
1. Select or search for **Key vaults**.
1. On the **Key vault** page, find the deployer key vault. The name starts with `LAB[REGION]DEP05user`. Filter by **Resource group** or **Location**, if necessary.
1. On the **Settings** section in the left pane, select **Secrets**.
1. Find and select the secret that contains **sshkey**. It might look like `LAB-[REGION]-DEP05-sshkey`.
1. On the secret's page, select the current version. Then, copy the secret value.
1. Open a plain text editor. Copy in the secret value.
1. Save the file where you keep SSH keys. For example, use `C:\\Users\\<your-username>\\.ssh`.
1. Save the file. If you're prompted to **Save as type**, select **All files** if **SSH** isn't an option. For example, use `deployer.ssh`.
1. Connect to the deployer VM through any SSH client, such as Visual Studio Code. Use the public IP address you noted earlier and the SSH key you downloaded. For instructions on how to connect to the deployer by using Visual Studio Code, see [Connect to the deployer by using Visual Studio Code](tools-configuration.md#configure-visual-studio-code). If you're using PuTTY, convert the SSH key file first by using PuTTYGen.
> [!NOTE]
>The default username is *azureadm*.
>
> Ensure that the file you use to save the SSH key can save the file by using the correct format, that is, without carriage return (CR) characters. Use Visual Studio Code or Notepad++.
After you're connected to the deployer VM, you can download the SAP software by using the Bill of Materials (BOM).
## Connect to the deployer VM when you're not using a public IP
For deployments without public IP connectivity, direct connectivity over the internet isn't allowed. In these cases, you can use an Azure Bastion jump box or you can perform the next step from a computer that has connectivity to the Azure virtual network.
The following example uses Azure Bastion.
To connect to the deployer:
1. Sign in to the [Azure portal](https://portal.azure.com).
1. Go to the resource group that contains the deployer VM.
1. Connect to the VM by using Azure Bastion.
1. The default username is **azureadm**.
1. Select **SSH Private Key from Azure Key Vault**.
1. Select the subscription that contains the control plane.
1. Select the deployer key vault.
1. From the list of secrets, select the secret that ends with **-sshkey**.
1. Connect to the VM.
The rest of the tasks must be executed on the deployer.
## Secure the control plane
The control plane is the most critical part of the SAP automation framework. It's important to secure the control plane. The following steps help you secure the control plane.
You should update the control plane `tfvars` file to enable private endpoints and to block public access to the storage accounts and key vaults.
1. To copy the control plane configuration files to the deployer VM, you can use the `sync_deployer.sh` script. Sign in to the deployer VM and update the following command to use your Terraform state storage account name. Then, run the following script:
>[!NOTE]
>Ensure that you're logged on by using a user account that has the required permissions to create application registrations. For more information about app registrations, see [Create an app registration](/cli/azure/ad/app#az-ad-app-create).
>
Copy down the output details. Make sure to save the values for `App registration ID` and `App registration password`.
The output maps to the following parameters. You use these parameters in later steps, with automation commands.
| Parameter input name | Output name |
| ------------------------- | --------------------------------- |
| `app_registration_app_id` | `App registration ID` |
| `webapp_client_secret` | `App registration password` |
## View configuration files
1. Open Visual Studio Code from Cloud Shell.