Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Lockbox
  • Getting started
    • All tutorials
    • Syncing with Managed Service for Kubernetes secrets
    • Storing Apache Airflow™ connections and variables in Yandex Lockbox
    • Building a CI/CD pipeline in GitLab using serverless products
    • Secure storage of GitLab CI passwords as Yandex Lockbox secrets
    • Loading data from Yandex Direct to a Yandex Managed Service for ClickHouse® data mart using Yandex Cloud Functions, Yandex Object Storage, and Yandex Data Transfer
    • Deploying a fault-tolerant architecture with preemptible VMs
    • Creating an interactive serverless application using WebSocket
    • Automatically copying objects from one Object Storage bucket to another
      • Overview
      • Management console, CLI, and API
      • Terraform
    • Using a secret in a PySpark job to connect to Yandex Managed Service for PostgreSQL
  • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Tutorials
  2. Secure password transmission to an initialization script
  3. Overview

Securely providing a password to an initialization script

Written by
Yandex Cloud
Updated at September 21, 2026
View in Markdown

You can use an initialization script when creating a Windows VM. Such a script may contain the administrator’s and other users’ logins and passwords. To protect sensitive data, use Yandex Lockbox features and Yandex Key Management Service keys rather than specifying the credentials directly 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 then deploy your infrastructure using the Yandex Cloud Terraform provider.

Was the article helpful?

Previous
Automatically copying objects from one Object Storage bucket to another
Next
Management console, CLI, and API
© 2026 Direct Cursus Technology L.L.C.