Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Releases: Azure/data-factory-export-action

GitHub Action for Azure Data Factory Export

12 Jun 20:09
6410949
Compare
Choose a tag to compare
  • bump node container version to 18.20.3-buster-slim

GitHub Action for Azure Data Factory Export

19 Dec 11:01
f62efee
Compare
Choose a tag to compare

Improvements:

  • #3 - Use of GitHub file (GITHUB_OUTPUT) in place of the deprecated set-output command

GitHub Action for Azure Data Factory Export

24 Sep 20:46
Compare
Choose a tag to compare

Changelog

  • ADF utilities package installation, removing the need to have the package.json on the repository.

GitHub Action for Azure Data Factory Export

23 Sep 19:21
Compare
Choose a tag to compare

Bug fixes

  • File path validation for arm-template-directory input parameter.

GitHub Action for Azure Data Factory Export

17 Sep 13:49
Compare
Choose a tag to compare

GitHub Action that exports all the Azure Data Factory resources stored in your Git repository to an ARM Template using the Azure Data Factory utilities package.

Prerequisites

  1. Ensure your Data Factory is connected with a Git repository. For more info, see Connect to a Git repository and Bicep & ARM Template formats.

  2. Ensure the following package.json file exists in the same directory that contains your Data Factory resources in the Git repository:

    {
      "scripts":{
        "build":"node node_modules/@microsoft/azure-data-factory-utilities/lib/index"
      },
      "dependencies":{
        "@microsoft/azure-data-factory-utilities":"^0.1.5"
      }
    }

Example Usage

steps:
  - name: Export ARM Template
    id: export
    uses: Azure/[email protected]
    # path: ./mydir [optional]
    # id: <data factory resource ID> [optional]

  - name: Publish ARM template
    uses: actions/upload-artifact@v2
    with:
      name: my-artifact
      path: ${{ steps.export.outputs.arm-template-directory }}
      if-no-files-found: error

Note: The action creates an armTemplate subdirectory dynamically and exports the ARM Template (ARMTemplateForFactory.json) inside it.

Inputs

  • path (optional): Directory that contains all Data Factory resources. Defaults to ./ directory.

  • id (optional): Data Factory resource ID. Defaults to /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup/providers/Microsoft.DataFactory/factories/dataFactory.

Outputs

  • arm-template-directory: Directory where the generated ARM template is stored.