I try to create a SharePoint group-based modern teamsite by powershell, but get an error. What I am doing wrong?
Connect-PnPOnline -ManagedIdentity -Url $adminCenterURL
New-PnPSite -Type TeamSite -Title "someName" -Alias "someName" -Owner $owners -Lcid 1043 -TimeZone UTCPLUS0100_AMSTERDAM_BERLIN_BERN_ROME_STOCKHOLM_VIENNA
ERROR: The remote server returned an error: (401) Unauthorized.
When I remove parameter -TimeZone it works fine.