Update azure store instance creation
@@ -29,9 +29,10 @@ class AzureStore(BaseStore):
def __init__(self, connection=None, **kwargs):
self._connection = connection
- self._account_name = kwargs.get('account_name')
- self._account_key = kwargs.get('account_key')
- self._connection_string = kwargs.get('connection_string')
+ self._account_name = kwargs.get('account_name') or kwargs.get('AZURE_ACCOUNT_NAME')
+ self._account_key = kwargs.get('account_key') or kwargs.get('AZURE_ACCOUNT_KEY')
+ self._connection_string = (
+ kwargs.get('connection_string') or kwargs.get('AZURE_CONNECTION_STRING'))
@property
def connection(self):
