...
Code Block |
---|
language | py |
---|
theme | DJango |
---|
title | Azure Connection Configuration |
---|
linenumbers | true |
---|
|
def get_default_azure_def():
return """{"account":"eagleaccount","application_id":"application-id","application_secret":"BASE64ENCODEDAPPSECRET==","tenant_id":"tenant-id"}""" |
Distributing to multiple accounts/containers
To distribute to multiple accounts the configuration string can be an array:
Code Block |
---|
language | js |
---|
theme | DJango |
---|
title | Configuration Example - Push To Multiple Containers |
---|
linenumbers | true |
---|
|
[
{"account":"eagleaccount1","application_id":"application-id1","application_secret":"BASE64ENCODEDAPPSECRET==","tenant_id":"tenant-id", "container_name": "container1", "target_dir": "mydropbox"},
{"account":"eagleaccount2","application_id":"application-id2","application_secret":"BASE64ENCODEDAPPSECRET==","tenant_id":"tenant-id", "container_name": "container2", "target_dir": "mydropbox"}
] |
In the above example the target_dir is optional.
If the extract has to be distributed to more than one container within same account, an array of containers can be specified:
Code Block |
---|
language | js |
---|
theme | DJango |
---|
title | Configuration Example - Push To Several Containers, Same Account |
---|
linenumbers | true |
---|
|
[
{"account":"eagleaccount1","application_id":"application-id1","application_secret":"BASE64ENCODEDAPPSECRET==","tenant_id":"tenant-id",
"containers" : [
{"container_name": "container1", "target_dir": "mydropbox1"},
{"container_name": "container2", "target_dir": "mydropbox2"},
]
] |