• Daniel Boardman
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I'm using an admin account and using an org setup as "Dev Hub".  

When creating the scratch org:

sfdx force:org:create -f project-scratch-def.json -a AbcScratchOrg

I receive this error message: 

ERROR running force:org:create:  We couldn't create this sandbox or scratch org because the associated Dev Hub isn't authorized. Authorize the Dev Hub and try again.

I've ensured the org is indeed configured as Dev Hub and that the admin user in visual studio code is set:

Sfdx force:config:set defaultdevhubusername=<devhubusername> --global

User-added image

Any ideas/help on what might be the issue would be much appreciated.
 
I'm using an admin account and using an org setup as "Dev Hub".  

When creating the scratch org:

sfdx force:org:create -f project-scratch-def.json -a AbcScratchOrg

I receive this error message: 

ERROR running force:org:create:  We couldn't create this sandbox or scratch org because the associated Dev Hub isn't authorized. Authorize the Dev Hub and try again.

I've ensured the org is indeed configured as Dev Hub and that the admin user in visual studio code is set:

Sfdx force:config:set defaultdevhubusername=<devhubusername> --global

User-added image

Any ideas/help on what might be the issue would be much appreciated.