Forum Discussion
Petri-X
Sep 30, 2025Bronze Contributor
Differences between PowerShell and Browser when upload file
Hi All, Anybody have noticed similar behavior? When uploading the file into the storage account that is working find. But if on the same workstation you try to do this using the PowerShell command: ...
Kidd_Ip
Oct 01, 2025MVP
How about this:
Use Azure AD Auth in PowerShell
Use your signed-in identity to create the context:
$strCTX = New-AzStorageContext -StorageAccountName $sa.StorageAccountName -UseConnectedAccount
This tells PowerShell to use your Azure AD identity, just like the browser does.