Secure password transmission to an initialization script
Written by
Updated at May 28, 2026
You can use an initialization script when creating a VM based on a Windows image. Such a script may contain system user passwords To protect sensitive data, use Yandex Lockbox tools and Yandex Key Management Service keys instead of explicitly specifying settings in the script.
In this tutorial, you will create a Windows VM using an initialization script which retrieves usernames and passwords from Yandex Lockbox.
You can create a Windows VM while protecting sensitive information in the initialization script using one of the following tools:
- Management console, CLI, API: Create your infrastructure step by step from the Yandex Cloud management console, CLI, or API.
- Terraform: Streamline creating and managing your resources with the infrastructure as code (IaC) approach. Download a Terraform configuration example from the GitHub repository and deploy your infrastructure using the Yandex Cloud Terraform provider.