Prerequisites
Create a service account and add it to a group that has the roles needed for your operations. Usually, this means adding it to at least the defaulteditors group.
You do not need to install the Nebius AI Cloud CLI. It is preinstalled on every Compute VM.
Specify the service account on VM creation
When you create a VM, specify the service account ID in the VM specifications:- CLI
- Terraform
Add the Alternatively, add the
--service-account-id parameter to the creation command:service_account_id parameter to the VM specification:/mnt/cloud-metadata/token.
Set up a profile for the service account on the VM
If you haven’t specified a service account during VM creation, you can configure a Nebius AI Cloud CLI profile for that service account:- Create an authorized key for the service account.
- Create a profile for the service account on your VM. Follow the instructions in How to set up the Nebius AI Cloud CLI.