Maria
02/24/2021, 6:49 AMfrom prefect.tasks.azure.blobstorage import (
BlobStorageDownload
)
storage = BlobStorageDownload(azure_credentials_secret="AZURE_DEMO",
container="mycontainer")
storage.run(blob_name="demo")
I'm getting
ValueError: Local Secret "AZURE_DEMO" was not found.
I tried setting AZURE_DEMO in config.toml but getting same result. What am I doing wrong?ale
02/24/2021, 7:51 AMMaria
02/25/2021, 6:48 AMuse_local_secrets = true (or false);
but cannot get env var to work: I don't see them in prefect.context.get("secrets", {})
, again regardless of the use_local_secrets. Tried defining them both as user env var and system env var.Maria
02/25/2021, 6:54 AMale
02/25/2021, 8:19 AM=
.
I believe that for using such secrets with --env
you have to upgrade Prefect to the latest version as mentioned here https://github.com/PrefectHQ/prefect/pull/4160Maria
02/25/2021, 9:28 PM