I am using PnP PowerShell commandlets to create Site collection in SPO. I understand that we need to first connect to Tenant admin site before creating site collections as below
$tenantadminUrl = "https://tenantname-admin.sharepoint.com"
Connect-PnPOnline -url $tenantadminUrl -UseWebLogin
New-PnPTenantSite -Owner $item.Owner -TimeZone $item.TimeZone -Title $item.Title -Url $siteUrl -Template $item.Template -Lcid $item.Locale -Wait
for adminUrl, can we also run the above code if the url is "https://tenantname.sharepoint.com" i.e. without "-admin" part in the url?
Sample code of PnP PowerShell in Github uses without "-admin" part in its url(Link: https://github.com/SharePoint/PnP-PowerShell/blob/master/Samples/Provisioning.CreateSitesFromCsv/CreateSites.ps1)
$adminurl1 = "https://tenantname-admin.sharepoint.com"
$adminurl2 = "https://tenantname.sharepoint.com"
which of the above two urls is valid tenantAdmin Url?
Thanks,