Prerequisites
- Make sure you are in a group that has the
adminrole within your tenant or project; for example, the defaultadminsgroup. You can check this in the Administration → IAM section of the web console. - 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 default
editorsgroup.
Specifying 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.
Setting 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.