Hello team, I'm wondering to do edr send-report to...
# community-support
r
Hello team, I'm wondering to do edr send-report to azure container using Azure service principal, confused on azure connection string credentials to use for that and how to structure it, Appreciate if there's any pointers that help, thanks https://docs.elementary-data.com/oss/guides/share-observability-report/host-on-azure
m
Hey what I ended up doing was generating the report using` edr report` and then had a python script to get the html report and upload it to the blob client using managed identity. It was simpler and more secure than using connection string
🙌 1
drop corrupt happy 1
Copy code
content_settings = ContentSettings(content_type='text/html')
with open(file_path, "rb") as data:
     elementary_blob_client.upload_blob(
                                            data,
                                            overwrite=True,                                  content_settings=content_settings
                                        )