Authorization Permission Mismatch when trying to connect to Azure Container

What is the problem you are having with rclone?

I tried for 2,5 hours, but I can't get rclone to work with Azure Container storage.

When using the web UI, I can see that rclone is able to read the container name "test" without me ever specifying it. So, that's good. It works partially. But trying to load anything else seems to fail, see logs:

AuthorizationPermissionMismatch: This request is not authorized to perform this operation using this permission.

I tried a lot from this documentation Microsoft Azure Blob Storage, but the result stays the same. I can't actually do anything in the container. I tried once with a SAS-URL and once with a key for the storage account. I'm not an Azure expert and overwhelmend with the documentation. :confused:

Run the command 'rclone version' and share the full output of the command.

rclone v1.69.0

  • os/version: arch 25.0.0 (64 bit)
  • os/kernel: 6.12.11-1-MANJARO (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.4
  • go/linking: dynamic
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Microsoft Azure Blob Storage

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[aztest]
type = azureblob
key = XXX
account = XXX
env_auth = true

[azure-testing]
type = azureblob
account = XXX
env_auth = true
sas_url = XXX

Log from web ui

2025/02/28 10:29:08 NOTICE: Web GUI exists. Update skipped.
2025/02/28 10:29:08 NOTICE: Serving Web GUI
2025/02/28 10:29:08 NOTICE: Serving remote control on http://127.0.0.1:5572/
2025/02/28 10:31:05 ERROR : : error listing: GET https://backupexperimental.blob.core.windows.net/test
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:bdcfea47-c01e-0070-1ac3-8991a9000000
Time:2025-02-28T09:31:05.0437045Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 10:31:05 ERROR : rc: "operations/list": error: error in ListJSON: GET https://backupexperimental.blob.core.windows.net/test
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:bdcfea47-c01e-0070-1ac3-8991a9000000
Time:2025-02-28T09:31:05.0437045Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 10:34:54 ERROR : : error listing: GET https://backupexperimental.blob.core.windows.net/test
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:4ea1e447-c01e-0094-1cc4-899f37000000
Time:2025-02-28T09:34:54.1390563Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 10:34:54 ERROR : rc: "operations/list": error: error in ListJSON: GET https://backupexperimental.blob.core.windows.net/test
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:4ea1e447-c01e-0094-1cc4-899f37000000
Time:2025-02-28T09:34:54.1390563Z</Message></Error>

welcome to the forum,

have you searched the forum?

Yes.

I did not find a solution for this.

I found this, which is close and has the same error, but I did not execute the mount command at all: Azure blob storage with read-only container still write file to cache causing permission errors

can test without rclone, using microsoft official tool.

I used this command, which worked and listed the file I put in the container:

az storage blob list --container-name test --account-name backupexperimental --sas-token "------" --output table
Name             Blob Type    Blob Tier    Length    Content Type              Last Modified              Snapshot
---------------  -----------  -----------  --------  ------------------------  -------------------------  ----------
zzzzzz.yyy.xxxx  BlockBlob    Hot          1008      application/octet-stream  2025-02-28T09:12:33+00:00

And those commands both fail with my configuration:

rclone copy /home/alex/Desktop/xy.pdf aztest:test -v
rclone copy /home/alex/Desktop/xy.pdf azure-testing:test -v
2025/02/28 14:27:52 ERROR : Mapsui.Eto.slnf: Failed to set modification time: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:bb2f4ee8-f01e-0009-23e4-896d8d000000
Time:2025-02-28T13:27:52.3418907Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:27:52 ERROR : Attempt 1/3 failed with 1 errors and: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:bb2f4ee8-f01e-0009-23e4-896d8d000000
Time:2025-02-28T13:27:52.3418907Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:27:52 ERROR : Mapsui.Eto.slnf: Failed to set modification time: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:bb2f4f1b-f01e-0009-42e4-896d8d000000
Time:2025-02-28T13:27:52.4036636Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:27:52 ERROR : Attempt 2/3 failed with 1 errors and: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:bb2f4f1b-f01e-0009-42e4-896d8d000000
Time:2025-02-28T13:27:52.4036636Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:27:52 ERROR : Mapsui.Eto.slnf: Failed to set modification time: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:bb2f4f35-f01e-0009-5be4-896d8d000000
Time:2025-02-28T13:27:52.4654704Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:27:52 ERROR : Attempt 3/3 failed with 1 errors and: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:bb2f4f35-f01e-0009-5be4-896d8d000000
Time:2025-02-28T13:27:52.4654704Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:27:52 INFO  : 
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.1s

2025/02/28 14:27:52 NOTICE: Failed to copy: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:bb2f4f35-f01e-0009-5be4-896d8d000000
Time:2025-02-28T13:27:52.4654704Z</Message></Error>
--------------------------------------------------------------------------------

the two commands are not the same.
az is listing.
rclone is copying.


for a deeper look at the api calls, --dump=headers

2025/02/28 14:36:48 NOTICE: Automatically setting -vv as --dump is enabled
2025/02/28 14:36:48 DEBUG : rclone: Version "v1.69.0" starting with parameters ["rclone" "copy" "/home/alex/Desktop/tmpmapsui/Mapsui/Mapsui.Eto.slnf" "aztest:test" "--dump=headers"]
2025/02/28 14:36:48 DEBUG : Creating backend with remote "/home/alex/Desktop/tmpmapsui/Mapsui/Mapsui.Eto.slnf"
2025/02/28 14:36:48 DEBUG : Using config file from "/home/alex/.config/rclone/rclone.conf"
2025/02/28 14:36:48 DEBUG : fs cache: renaming child cache item "/home/alex/Desktop/tmpmapsui/Mapsui/Mapsui.Eto.slnf" to be canonical for parent "/home/alex/Desktop/tmpmapsui/Mapsui"
2025/02/28 14:36:48 DEBUG : Creating backend with remote "aztest:test"
2025/02/28 14:36:48 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/02/28 14:36:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:48 DEBUG : HTTP REQUEST (req 0xc0000fd040)
2025/02/28 14:36:48 DEBUG : GET /metadata/identity/oauth2/token HTTP/1.1
Host: 169.254.169.254
User-Agent: rclone/v1.69.0
Accept-Encoding: gzip

2025/02/28 14:36:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:49 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:49 DEBUG : HTTP RESPONSE (req 0xc0000fd040)
2025/02/28 14:36:49 DEBUG : Error: context deadline exceeded
2025/02/28 14:36:49 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : HTTP REQUEST (req 0xc0000fcc80)
2025/02/28 14:36:50 DEBUG : HEAD /test/Mapsui.Eto.slnf HTTP/1.1
Host: backupexperimental.blob.core.windows.net
User-Agent: rclone/v1.69.0
Accept: application/xml
Authorization: XXXX
x-ms-version: 2024-11-04

2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : HTTP RESPONSE (req 0xc0000fcc80)
2025/02/28 14:36:50 DEBUG : HTTP/1.1 200 OK
Content-Length: 1008
Accept-Ranges: bytes
Content-Md5: v6Y8IHH3g93lkZA4ZS2T1g==
Content-Type: application/octet-stream
Date: Fri, 28 Feb 2025 13:36:50 GMT
Etag: "0x8DD57D809593790"
Last-Modified: Fri, 28 Feb 2025 09:12:33 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Access-Tier: Hot
X-Ms-Access-Tier-Inferred: true
X-Ms-Blob-Type: BlockBlob
X-Ms-Creation-Time: Fri, 28 Feb 2025 09:12:33 GMT
X-Ms-Lease-State: available
X-Ms-Lease-Status: unlocked
X-Ms-Request-Id: c53c4393-801e-0085-63e5-890583000000
X-Ms-Server-Encrypted: true
X-Ms-Version: 2024-11-04

2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : Mapsui.Eto.slnf: Modification times differ by 4145h5m23.10748466s: 2024-09-08 18:07:09.89251534 +0200 CEST, 2025-02-28 09:12:33 +0000 GMT
2025/02/28 14:36:50 DEBUG : Mapsui.Eto.slnf: md5 = bfa63c2071f783dde5919038652d93d6 OK
2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : HTTP REQUEST (req 0xc00045d680)
2025/02/28 14:36:50 DEBUG : PUT /test/Mapsui.Eto.slnf?comp=metadata HTTP/1.1
Host: backupexperimental.blob.core.windows.net
User-Agent: rclone/v1.69.0
Content-Length: 0
Accept: application/xml
Authorization: XXXX
x-ms-meta-mtime: 2024-09-08T18:07:09.892515340+02:00
x-ms-version: 2024-11-04
Accept-Encoding: gzip

2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : HTTP RESPONSE (req 0xc00045d680)
2025/02/28 14:36:50 DEBUG : HTTP/1.1 403 This request is not authorized to perform this operation using this permission.
Content-Length: 279
Content-Type: application/xml
Date: Fri, 28 Feb 2025 13:36:50 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Error-Code: AuthorizationPermissionMismatch
X-Ms-Request-Id: c53c4399-801e-0085-64e5-890583000000
X-Ms-Version: 2024-11-04

2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 ERROR : Mapsui.Eto.slnf: Failed to set modification time: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:c53c4399-801e-0085-64e5-890583000000
Time:2025-02-28T13:36:50.4585783Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:36:50 DEBUG : Mapsui.Eto.slnf: Unchanged skipping
2025/02/28 14:36:50 ERROR : Attempt 1/3 failed with 1 errors and: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:c53c4399-801e-0085-64e5-890583000000
Time:2025-02-28T13:36:50.4585783Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : HTTP REQUEST (req 0xc000fb8140)
2025/02/28 14:36:50 DEBUG : HEAD /test/Mapsui.Eto.slnf HTTP/1.1
Host: backupexperimental.blob.core.windows.net
User-Agent: rclone/v1.69.0
Accept: application/xml
Authorization: XXXX
x-ms-version: 2024-11-04

2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : HTTP RESPONSE (req 0xc000fb8140)
2025/02/28 14:36:50 DEBUG : HTTP/1.1 200 OK
Content-Length: 1008
Accept-Ranges: bytes
Content-Md5: v6Y8IHH3g93lkZA4ZS2T1g==
Content-Type: application/octet-stream
Date: Fri, 28 Feb 2025 13:36:50 GMT
Etag: "0x8DD57D809593790"
Last-Modified: Fri, 28 Feb 2025 09:12:33 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Access-Tier: Hot
X-Ms-Access-Tier-Inferred: true
X-Ms-Blob-Type: BlockBlob
X-Ms-Creation-Time: Fri, 28 Feb 2025 09:12:33 GMT
X-Ms-Lease-State: available
X-Ms-Lease-Status: unlocked
X-Ms-Request-Id: c53c439c-801e-0085-67e5-890583000000
X-Ms-Server-Encrypted: true
X-Ms-Version: 2024-11-04

2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : Mapsui.Eto.slnf: Modification times differ by 4145h5m23.10748466s: 2024-09-08 18:07:09.89251534 +0200 CEST, 2025-02-28 09:12:33 +0000 GMT
2025/02/28 14:36:50 DEBUG : Mapsui.Eto.slnf: md5 = bfa63c2071f783dde5919038652d93d6 OK
2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : HTTP REQUEST (req 0xc000916280)
2025/02/28 14:36:50 DEBUG : PUT /test/Mapsui.Eto.slnf?comp=metadata HTTP/1.1
Host: backupexperimental.blob.core.windows.net
User-Agent: rclone/v1.69.0
Content-Length: 0
Accept: application/xml
Authorization: XXXX
x-ms-meta-mtime: 2024-09-08T18:07:09.892515340+02:00
x-ms-version: 2024-11-04
Accept-Encoding: gzip

2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : HTTP RESPONSE (req 0xc000916280)
2025/02/28 14:36:50 DEBUG : HTTP/1.1 403 This request is not authorized to perform this operation using this permission.
Content-Length: 279
Content-Type: application/xml
Date: Fri, 28 Feb 2025 13:36:50 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Error-Code: AuthorizationPermissionMismatch
X-Ms-Request-Id: c53c43a4-801e-0085-6fe5-890583000000
X-Ms-Version: 2024-11-04

2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 ERROR : Mapsui.Eto.slnf: Failed to set modification time: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:c53c43a4-801e-0085-6fe5-890583000000
Time:2025-02-28T13:36:50.5228353Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:36:50 DEBUG : Mapsui.Eto.slnf: Unchanged skipping
2025/02/28 14:36:50 ERROR : Attempt 2/3 failed with 1 errors and: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:c53c43a4-801e-0085-6fe5-890583000000
Time:2025-02-28T13:36:50.5228353Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : HTTP REQUEST (req 0xc000fb8500)
2025/02/28 14:36:50 DEBUG : HEAD /test/Mapsui.Eto.slnf HTTP/1.1
Host: backupexperimental.blob.core.windows.net
User-Agent: rclone/v1.69.0
Accept: application/xml
Authorization: XXXX
x-ms-version: 2024-11-04

2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : HTTP RESPONSE (req 0xc000fb8500)
2025/02/28 14:36:50 DEBUG : HTTP/1.1 200 OK
Content-Length: 1008
Accept-Ranges: bytes
Content-Md5: v6Y8IHH3g93lkZA4ZS2T1g==
Content-Type: application/octet-stream
Date: Fri, 28 Feb 2025 13:36:50 GMT
Etag: "0x8DD57D809593790"
Last-Modified: Fri, 28 Feb 2025 09:12:33 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Access-Tier: Hot
X-Ms-Access-Tier-Inferred: true
X-Ms-Blob-Type: BlockBlob
X-Ms-Creation-Time: Fri, 28 Feb 2025 09:12:33 GMT
X-Ms-Lease-State: available
X-Ms-Lease-Status: unlocked
X-Ms-Request-Id: c53c43a9-801e-0085-74e5-890583000000
X-Ms-Server-Encrypted: true
X-Ms-Version: 2024-11-04

2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : Mapsui.Eto.slnf: Modification times differ by 4145h5m23.10748466s: 2024-09-08 18:07:09.89251534 +0200 CEST, 2025-02-28 09:12:33 +0000 GMT
2025/02/28 14:36:50 DEBUG : Mapsui.Eto.slnf: md5 = bfa63c2071f783dde5919038652d93d6 OK
2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : HTTP REQUEST (req 0xc000fb88c0)
2025/02/28 14:36:50 DEBUG : PUT /test/Mapsui.Eto.slnf?comp=metadata HTTP/1.1
Host: backupexperimental.blob.core.windows.net
User-Agent: rclone/v1.69.0
Content-Length: 0
Accept: application/xml
Authorization: XXXX
x-ms-meta-mtime: 2024-09-08T18:07:09.892515340+02:00
x-ms-version: 2024-11-04
Accept-Encoding: gzip

2025/02/28 14:36:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 DEBUG : HTTP RESPONSE (req 0xc000fb88c0)
2025/02/28 14:36:50 DEBUG : HTTP/1.1 403 This request is not authorized to perform this operation using this permission.
Content-Length: 279
Content-Type: application/xml
Date: Fri, 28 Feb 2025 13:36:50 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Error-Code: AuthorizationPermissionMismatch
X-Ms-Request-Id: c53c43ac-801e-0085-77e5-890583000000
X-Ms-Version: 2024-11-04

2025/02/28 14:36:50 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/28 14:36:50 ERROR : Mapsui.Eto.slnf: Failed to set modification time: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:c53c43ac-801e-0085-77e5-890583000000
Time:2025-02-28T13:36:50.5815611Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:36:50 DEBUG : Mapsui.Eto.slnf: Unchanged skipping
2025/02/28 14:36:50 ERROR : Attempt 3/3 failed with 1 errors and: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:c53c43ac-801e-0085-77e5-890583000000
Time:2025-02-28T13:36:50.5815611Z</Message></Error>
--------------------------------------------------------------------------------
2025/02/28 14:36:50 INFO  : 
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.1s

2025/02/28 14:36:50 DEBUG : 7 go routines active
2025/02/28 14:36:50 NOTICE: Failed to copy: PUT https://backupexperimental.blob.core.windows.net/test/Mapsui.Eto.slnf
--------------------------------------------------------------------------------
RESPONSE 403: 403 This request is not authorized to perform this operation using this permission.
ERROR CODE: AuthorizationPermissionMismatch
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:c53c43ac-801e-0085-77e5-890583000000
Time:2025-02-28T13:36:50.5815611Z</Message></Error>
--------------------------------------------------------------------------------

I found out that something does not work when using the SAS token with az command, but also not when using auth-mode login...

az storage blob upload --account-name backupexperimental --container-name test --name blobname --file "/home/alex/Desktop/xy.pdf"

// this works



az storage blob upload --account-name backupexperimental --container-name test --name blobname --file "/home/alex/Desktop/xy.pdf" --sas-token "---"

This request is not authorized to perform this operation using this resource type.
RequestId:9666bacf-b01e-0027-43ec-893f9a000000
Time:2025-02-28T14:23:56.7417969Z
ErrorCode:AuthorizationResourceTypeMismatch



az storage blob upload --account-name backupexperimental --container-name test --name blobname --file "/home/alex/Desktop/xy.pdf" --auth-mode login

You do not have the required permissions needed to perform this operation.
Depending on your operation, you may need to be assigned one of the following roles:
    "Storage Blob Data Owner"
    "Storage Blob Data Contributor"
    "Storage Blob Data Reader"
    "Storage Queue Data Contributor"
    "Storage Queue Data Reader"
    "Storage Table Data Contributor"
    "Storage Table Data Reader"

If you want to use the old authentication method and allow querying for the right account key, please use the "--auth-mode" parameter and "key" value.

Wow, I think, I got it...

It looks like the field "Allowed IP addresses" in the Azure blob SAS settings is not optional and has to have a value. I expected it to allow any, if kept empty, which was fine for me, as it's only experimenting at the moment...

My bad...