diff --git a/src/azure/storage/config.rs b/src/azure/storage/config.rs index ef6d75c..f962804 100644 --- a/src/azure/storage/config.rs +++ b/src/azure/storage/config.rs @@ -73,6 +73,9 @@ pub const AZURE_FEDERATED_TOKEN_FILE: &str = "AZURE_FEDERATED_TOKEN_FILE"; pub const AZURE_TENANT_ID: &str = "AZURE_TENANT_ID"; pub const AZURE_CLIENT_ID: &str = "AZURE_CLIENT_ID"; pub const AZURE_AUTHORITY_HOST: &str = "AZURE_AUTHORITY_HOST"; +const AZBLOB_ENDPOINT: &str = "AZBLOB_ENDPOINT"; +const AZBLOB_ACCOUNT_KEY: &str = "AZBLOB_ACCOUNT_KEY"; +const AZBLOB_ACCOUNT_NAME: &str = "AZBLOB_ACCOUNT_NAME"; const AZURE_PUBLIC_CLOUD: &str = "https://login.microsoftonline.com"; impl Config { @@ -97,6 +100,18 @@ impl Config { self.client_id = Some(v.to_string()); } + if let Some(v) = envs.get(AZBLOB_ENDPOINT) { + self.endpoint = Some(v.to_string()); + } + + if let Some(v) = envs.get(AZBLOB_ACCOUNT_KEY) { + self.account_key = Some(v.to_string()); + } + + if let Some(v) = envs.get(AZBLOB_ACCOUNT_NAME) { + self.account_name = Some(v.to_string()); + } + if let Some(v) = envs.get(AZURE_AUTHORITY_HOST) { self.authority_host = Some(v.to_string()); } else {