Cannot upload custom image: Err: argument COMMAND: invalid choice: 'create' (choose from 'read', 'delete')

I’ve built a Windows Image using Cloudbase Tools (https://github.com/cloudbase/windows-openstack-imaging-tools ). Now I’m trying to upload the Windows images in MAAS server. but facing issues as belows

cmurugan@maas-testing:~$ sudo maas mcci boot-resource create name=custom/win2019std architecture=amd64/generic filetype=ddtgz content@=/home/cmurugan/Downloads/win-image-maas.raw.tgz
usage: maas mcci boot-resource [-h] COMMAND ...

Manage a boot resource.

optional arguments:
  -h, --help  show this help message and exit

drill down:
  COMMAND
    read      Read a boot resource
    delete    Delete a boot resource

argument COMMAND: invalid choice: 'create' (choose from 'read', 'delete')

Please help me on this

The MAAS CLI uses plural nouns when interacting with multiple objects or creating a new one. It uses singular nouns when interacting with an individual one. You need to use the plural form, boot-resources

maas mcci boot-resources create name=custom/win2019std architecture=amd64/generic filetype=ddtgz content@=/home/cmurugan/Downloads/win-image-maas.raw.tgz

@ltrager, Thank you. you made it worked.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.