Prerequisites
-
Make sure you are in a group that has at least the
editorrole within your tenant; for example, the defaulteditorsgroup. You can check this in the Administration → IAM section of the web console. - Install and initialize the Nebius AI Cloud CLI.
-
Install jq to extract IDs and tokens from the JSON data returned by the Nebius AI Cloud CLI:
Create a network and a subnet
Each network must contain at least one subnet. To create a network and a subnet within it, run the following command:- CLI
Add resources to a network or subnet
When you create resources by using the Nebius AI Cloud CLI, set the network or subnet by using parameters withnetwork-id or subnet-id in them. For example:
- When you create a Compute virtual machine, add the
--network-interfaces "[{\"subnet_id\": \"$NB_SUBNET_ID\"}]"parameter. - When you create a Managed Service for Kubernetes® cluster, add the
--control-plane-subnet-id $NB_SUBNET_IDparameter. - When you create a Managed Service for PostgreSQL® cluster, add the
--network-id $NB_NETWORK_IDparameter.
Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.