Now, My system configuration is App service, Vnet and ExpressRoute.
I try to attach Blob Storage to this system.
In python, App service generates text file as debug log, I will upload text file to Blob Storage.
However, the following error log was output. Please tell me some items to fix.In addition, in the BlobStorage, text file is generated. but this file has no word. So, I think that App service can not overwrite it.
2024-02-04 11:30:58.600 Uncaught app exception
Traceback (most recent call last):
File "/tmp/8dc24840453a39b/antenv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "/tmp/8dc24840453a39b/Webapp.py", line 166, in <module>
blob_log.blob_upload('start!!')
File "/tmp/8dc24840453a39b/src/logger.py", line 54, in blob_upload
blob_client.upload_blob(data,overwrite=True)
File "/tmp/8dc24840453a39b/antenv/lib/python3.11/site-packages/azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/8dc24840453a39b/antenv/lib/python3.11/site-packages/azure/storage/blob/_blob_client.py", line 765, in upload_blob
return upload_block_blob(**options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/8dc24840453a39b/antenv/lib/python3.11/site-packages/azure/storage/blob/_upload_helpers.py", line 195, in upload_block_blob
process_storage_error(error)
File "/tmp/8dc24840453a39b/antenv/lib/python3.11/site-packages/azure/storage/blob/_shared/response_handlers.py", line 184, in process_storage_error
exec("raise error from None") # pylint: disable=exec-used # nosec
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 1, in <module>
azure.core.exceptions.HttpResponseError: This request is not authorized to perform this operation.
RequestId:fb615f86-301e-0019-6a5d-57b7c2000000
Time:2024-02-04T11:30:58.5870124Z
ErrorCode:AuthorizationFailure
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationFailure</Code><Message>This request is not authorized to perform this operation.
RequestId:fb615f86-301e-0019-6a5d-57b7c2000000
Time:2024-02-04T11:30:58.5870124Z</Message></Error>