I'm using this code to try to check successful connectivity to azure using python sdk
tgt_container_url = f'https://{storage_acct_name}.blob.core.windows.net/{container_name}'
sas_url = f"{tgt_container_url}?{sas_key}"
blob_client = BlobClient.from_blob_url(sas_url)
snapshot_blob = blob_client.create_snapshot()
print(snapshot_blob.get('snapshot'))
I receive the below error:
azure.core.exceptions.HttpResponseError:
Operation returned an invalid status 'Server failed to authenticate the request.
Make sure the value of Authorization header is formed correctly including the signature.'
Any suggestions would be great. thanks.