Releases: Azure/data-factory-export-action
GitHub Action for Azure Data Factory Export
GitHub Action for Azure Data Factory Export
Improvements:
- #3 - Use of GitHub file (GITHUB_OUTPUT) in place of the deprecated set-output command
GitHub Action for Azure Data Factory Export
Changelog
- ADF utilities package installation, removing the need to have the
package.json
on the repository.
GitHub Action for Azure Data Factory Export
Bug fixes
- File path validation for
arm-template-directory
input parameter.
GitHub Action for Azure Data Factory Export
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
-
Ensure your Data Factory is connected with a Git repository. For more info, see Connect to a Git repository and Bicep & ARM Template formats.
-
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.