acqio / rules_microsoft_azure

This repository contains rules for interacting with Microsoft Azure.
Apache License 2.0
6 stars 3 forks source link

Create resource_name parameter in az_datafactory #13

Closed jflima closed 4 years ago

jflima commented 4 years ago

Currently in az_datafactory, resource name is the same as target name. In this case we should either:

Ideally, we'd prefer to have a single BUILD file from which we can build all targets needed (DEV, ENG, PROD) an set the same names corresponding artifacts in DEV and PROD Data Factory. We then suggest a new parameter resource_name in az_datafactory that would be the name of the artifact in ADF, as follows:

az_datafactory(
    name = "dev_pipeline",
    resource_name = env_properties.get("PIPELINE_NAME")
    config = ":config",
    factory_name = env_properties.get("DATA_FACTORY_NAME"),
    resource = "pipeline",
    resource_group = env_properties.get("RESOURCE_GROUP"),
    template = ":pipeline.json",
)