Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Network Load Balancer
  • Getting started
    • All guides
      • Information about current network load balancers
      • Creating a load balancer
      • Creating an internal load balancer
      • Stopping and starting a load balancer
      • Changing load balancer settings
      • Moving a VM to a target group in a new availability zone
      • Deleting a load balancer
      • Checking target health statuses
      • Adding a listener
      • Deleting a listener
        • Allowing and denying zonal shift
        • Enabling and disabling availability zones
    • Viewing service resource operations
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Disabling availability zones
  • Examples
  • Enabling availability zones
  • Check availability zone lock settings
  1. Step-by-step guides
  2. Network load balancers
  3. Managing availability zones
  4. Enabling and disabling availability zones

Enabling and disabling availability zones

Written by
Yandex Cloud
Updated at July 29, 2025
  • Disabling availability zones
    • Examples
  • Enabling availability zones
  • Check availability zone lock settings

If an availability zone is under testing or maintenance or has technical problems, you can block traffic distribution to that zone. This will ensure your services stay operational. When appropriate, you can run a command to resume traffic to the blocked zone or it will be restored automatically by timeout.

You can enable and disable availability zones one by one or as a comma-separated list.

Disabling availability zonesDisabling availability zones

CLI

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the description of the availability zone disable command for a network load balancer:

    yc load-balancer network-load-balancer disable-zones --help
    
  2. Get a list of all network load balancers in the default folder:

    yc load-balancer network-load-balancer list
    

    Result:

    +----------------------+-------------+-------------+----------+----------------+------------------------+--------+
    |          ID          |     NAME    |  REGION ID  |   TYPE   | LISTENER COUNT | ATTACHED TARGET GROUPS | STATUS |
    +----------------------+-------------+-------------+----------+----------------+------------------------+--------+
    | ds70q425egoe******** | my-balancer | ru-central1 | EXTERNAL |              1 | enpakget56sr********   | ACTIVE |
    |                      |             |             |          |                | enpakf7vhj2l********   |        |
    | fw7fh46bnsge******** | my-nlb2     | ru-central1 | EXTERNAL |              1 | sn5u68knmswe********   | ACTIVE |
    +----------------------+-------------+-------------+----------+----------------+------------------------+--------+
    
  3. Disable one or more availability zones using the following command:

    yc load-balancer network-load-balancer disable-zones \
      <load_balancer_name_or_ID> \
      --zones=<zone_1_ID>,[<zone_2_ID>] \
      --duration=<duration>
    

    Where:

    • --zones: Availability zone IDs.
    • --duration: Duration, from 1m to 72h. No value stands for unlimited duration. If zones are provided as a list, they all will be disabled for the specified period.

Note

You cannot run the zone disable command more often than once every two minutes.

ExamplesExamples

Disabling two availability zonesDisabling two availability zones

CLI

To disable two zones for a load balancer, list them separated by commas:

yc load-balancer network-load-balancer disable-zones ds70q425egoe******** \
  --zones=ru-central1-b,ru-central1-d

Result:

id: ds70q425egoe********
...
disable_zone_statuses:
  - zone_id: ru-central1-b
  - zone_id: ru-central1-d

Disabling an availability zone for 30 minutesDisabling an availability zone for 30 minutes

CLI

To disable a single availability zone for 30 minutes, use the --duration parameter:

yc load-balancer network-load-balancer disable-zones ds70q425egoe******** \
  --zones=ru-central1-b \
  --duration=30m

Result:

id: ds70q425egoe********
...
disable_zone_statuses:
  - zone_id: ru-central1-b
    disabled_until: "2025-06-06T04:10:02.679608678Z"

You can extend the zone lock by running the above command with the --duration parameter once again for the same zone.

Enabling availability zonesEnabling availability zones

CLI

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the description of the availability zone enable command for a network load balancer:

    yc load-balancer network-load-balancer enable-zones --help
    
  2. Get a list of all network load balancers in the default folder:

    yc load-balancer network-load-balancer list
    

    Result:

    +----------------------+-------------+-------------+----------+----------------+------------------------+--------+
    |          ID          |     NAME    |  REGION ID  |   TYPE   | LISTENER COUNT | ATTACHED TARGET GROUPS | STATUS |
    +----------------------+-------------+-------------+----------+----------------+------------------------+--------+
    | ds70q425egoe******** | my-balancer | ru-central1 | EXTERNAL |              1 | enpakget56sr********   | ACTIVE |
    |                      |             |             |          |                | enpakf7vhj2l********   |        |
    | fw7fh46bnsge******** | my-nlb2     | ru-central1 | EXTERNAL |              1 | sn5u68knmswe********   | ACTIVE |
    +----------------------+-------------+-------------+----------+----------------+------------------------+--------+
    
  3. Enable one or more availability zones:

    yc load-balancer network-load-balancer enable-zones \
      <load_balancer_name_or_ID> \
      --zones=<zone_1_ID>,[<zone_2_ID>]
    

    Result:

    id: ds70q425egoe********
    ...
    allow_zonal_shift: false
    disable_zone_statuses:
    

Check availability zone lock settingsCheck availability zone lock settings

CLI

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

To check if there are any disabled zones and whether a lock period is set, run the following command:

yc load-balancer network-load-balancer get \
  <load_balancer_name_or_ID>

Result:

id: ds70q425egoe********
...
disable_zone_statuses:
  - zone_id: ru-central1-b
  - zone_id: ru-central1-d
    disabled_until: "2025-06-06T04:10:02.679608678Z"

Was the article helpful?

Previous
Allowing and denying zonal shift
Next
Information about current target groups
© 2025 Direct Cursus Technology L.L.C.