[Fabric E2E Sample] Adding CI pipelines #1013
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of PR
Purpose
Added the following CI pipelines
$FABRIC_WORKSPACE_NAME-$PR_ID
doesn’t exist.$FABRIC_CUSTOM_POOL_NAME
if it doesn't exist. Assign it to the workspace.fabric/fabric_environment/spark_pool_settings.yml
file of the feature branch.feature-$PR-ID
if it doesn't exist.$FABRIC_CONNECTION_NAME-$PR_ID
if it doesn't exist.feature-$PR-ID
storage containerFABRIC_WORKSPACE_NAME
will be the feature workspaceFABRIC_WORKSPACE_NAME-$PR_ID
Added a setup repository script
$GIT_DIRECTORY_NAME/fabric/workspace
instead.Does this introduce a breaking change? If yes, details on what can break
No.
Author pre-publish checklist
Validation steps
To test the pipelines, you need to have your git repositories to be a certain way. Here are steps on how to set it up.
Generate your Azure Devops Credentials then add the following env variables
GIT_USERNAME
andGIT_TOKEN
. Other than that make sure, these env variables are also set:GIT_ORGANIZATION_NAME
GIT_PROJECT_NAME
GIT_REPOSITORY_NAME
GIT_BRANCH_NAME
GIT_DIRECTORY_NAME
Run the
scripts/setup_repository.py
This would add all the necessary files to theGIT_DIRECTORY_NAME
path in the Azure DevOps repo. This will also create thefabric/workspace
folder where the fabric workspace will be synced. The file structure should look like this (minus thefabric/workspace
part which would be generated later):Either:
Create the variable group. Here are the required values:
WORKING_DIR
: Folder path where you committed your repository. Same asGIT_DIRECTORY_NAME
in the env variablesSUBSCRIPTION_ID
: Same as theSUBSCRIPTION_ID
in the env variablesRESOURCE_GROUP_NAME
: Same as theRESOURCE_GROUP_NAME
in the env variablesSTORAGE_ACCOUNT_NAME
: Created storage account nameSTORAGE_ACCOUNT_ROLE_DEFINITION_ID
(Role definition id given to fabric workspace to access storage account)STORAGE_CONTAINER_NAME
: Default is ”main”KEYVAULT_NAME
: Created key vault nameORGANIZATIONAL_NAME
: Same as theGIT_ORGANIZATION_NAME
in the env variablesPROJECT_NAME
: Same as theGIT_PROJECT_NAME
in the env variablesREPO_NAME
: Same as theGIT_REPOSITORY_NAME
in the env variablesFABRIC_WORKSPACE_GROUP_ADMIN
: Principal Id of the Group Admin for the workspace and cloud connectionFABRIC_WORKSPACE_NAME
: Created workspace nameFABRIC_CAPACITY_NAME
: Created capacity nameFABRIC_ENVIRONMENT_NAME
: Created environment nameFABRIC_LAKEHOUSE_NAME
: Created lakehouse nameFABRIC_SHORTCUT_NAME
: Default is “sc-adls-main”FABRIC_CUSTOM_POOL_NAME
: Created custom pool name.FABRIC_CONNECTION_NAME
: Created ADLS Cloud Connection name.Modify the following values in the pipelines and commit it.
Setup the pipeline then run it.
Known issue:
Issues Closed or Referenced