Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

The default Azure publishing configuration should be specified in dynamic/pyrules/custom/env.py as a get_default_azure_def() function, for example:

Azure Connection Configuration
def get_default_azure_def():
    return """{"account":"eagleaccount","key":"BASE64ENCODEDAPPKEY=="}"""


To define the default container name, add a get_default_azure_container_name() function to dynamic/pyrules/custom/env.py:

Default Azure Container Name Definition
def get_default_azure_container_name():
    return 'eagleml'

*Optional. To define target virtual directory in container, add a get_default_azure_target_dir() function to dynamic/pyrules/custom/env.py. The directory should be without trailing and leading back slashes:

Default Azure Container virtual directory Path Definition
def get_default_azure_target_dir():
    return 'dropdir/eagleml'

*Optional. To define timeout for publishing to Azure, add get_azure_timeout() function to dynamic/pyrules/custom/env.py. The timeout parameter is expressed in seconds.

Timeout Definition
def get_azure_timeout():
    return 600


In order for the result of the extract to be delivered to Azure the following parameter should be defined in the RTR:

Task Parameter - Azure Delivery
<taskParameter>
    <name>TargetSinkType</name>
    <value>azureblob</value>
</taskParameter>

Azure Oauth Authentication

The default Azure publishing configuration should be specified in dynamic/pyrules/custom/env.py as a get_default_azure_def() function, for example:

Azure Connection Configuration
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:

Configuration Example - Push To Multiple Containers
[
    {"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:

Configuration Example - Push To Several Containers, Same Account
[
    {"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"},
             ]
]


  • No labels