Forum Discussion

Petri-X's avatar
Petri-X
Bronze Contributor
Sep 30, 2025

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: Set-AzStorageBlobContent the if fails to: ErrorCode: AuthorizationPermissionMismatch

Here is also the longer trace:

$sa = get-azstorageAccount -ResourceGroupName RG01 -Name storage01
$strCTX = New-AzStorageContext -StorageAccountName $sa.StorageAccountName
$strCTX | Set-AzStorageBlobContent -File C:\temp\test.txt -Container delate -Blob test.txt -Verbose

VERBOSE: Performing the operation "Set" on target "test.txt".
Set-AzStorageBlobContent: This request is not authorized to perform this operation using this permission. HTTP Status Code: 403 - HTTP Error Message: This request is not authorized to perform this operation using this permission.
ErrorCode: AuthorizationPermissionMismatch
ErrorMessage: This request is not authorized to perform this operation using this permission.
RequestId: 3150eeb6-761e-0096-2edd-56e8bc000000
Time: Tue, 30 Sep 2025 10:25:51 GMT
VERBOSE: Transfer Summary
--------------------------------
Total:  1.
Successful: 0.
Failed: 1.


Some thing which makes this a bit more odd, is, when I'm looking for the roles and their data accesses, they both looks like following:

 

 

 

 

 

 

So I'm not even sure how I do have access to that SA.

No RepliesBe the first to reply

Resources