Error Creating Modern Team site - Current site is not a tenant administration site

I'm using the flow action Create Modern SharePoint site
to create a site as TeamSiteWithoutGroup.
When it run I get the error
Current site is not a tenant administration site.

I'm using an Admin API key for auth due to MFA authentication and this works for other action like setting the description of site using Update Site Properties action.

Any ideas?
Thanks,
Gavin

Hello Gavin! To create sites, you need to use a custom credential API key, it is required by SharePoint security settings. In the case of MFA, you need to create the key using an app password.

Hi Evgeniy,
also resolved this with a support ticket.
This is with a new Office 365 tenancy using the security defaults, so App passwords are disabled and for the sake of just this action I'm not switching the security defaults off.

I ended up using the out of the send http to sharepoint action and using REST api to create the modern site. - Create Modern SharePoint Sites using REST | Microsoft Learn

Thanks,
Gavin

Hello Gavin! Thank you for sharing results of the case. I passed your reply to developers, perhaps they will be able to find out how to avoid using the custom credential API key.