Images of device types are not taken from the Azure Storage Account but from the local directory #18644
Replies: 1 comment
-
Issue resolved. Container must have 'anonymous access level' for blobs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I changed the media directories definition in configuration.py to start using Azure Storage Account (django-storages[azure] and azure-identity installed) to deal with the images of the devices (media/image-attachments) and device types (media/devicetype-images). It is working for the device images (image-attachments directory), but not for the device type images, it shows a broken link with the name of the file. So, I chose the image again and found out Netbox stored the image of the device type in the local folder. As expected the local folder of the device images are empry, since they are taken from the Storage Account. Is it a bug or I did something wrong? I did not change the static files, but only the media definition.
configuration.py
STORAGES = {
"default": {
"BACKEND": "storages.backends.azure_storage.AzureStorage",
"OPTIONS": {
"token_credential": DefaultAzureCredential(),
"account_name": "na",
"azure_container": "mt",
},
},
}
Beta Was this translation helpful? Give feedback.
All reactions