Policies plan file is not detected. #378
Closed
karthikpkeie
started this conversation in
General
Replies: 1 comment
-
Sorry I've gone through Select-PacEnvironment.ps1 and found the file path of plan file which is refer while executing the Deploy-plan script. Hence, I passed the ideal Input folder path which is fixed the issue. policyPlanInputFile = "$($InputFolder)/plans-$PacEnvironmentSelector/policy-plan.json" Please ignore this query. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
I started looking into the EPAC framework and conducting POCs to get a better understanding of it. As a result, I have developed a pipeline with two steps, which I will describe below.
Stage 1 :${{ parameters.pacEnvironment }} -DefinitionsRootFolder $ (System.DefaultWorkingDirectory)/Definitions -devOpsType ado -outputFolder $(System.DefaultWorkingDirectory)/Policies$InputFolder ='$ (Pipeline.Workspace)/policiesplan/plans-epac-dev'${{ parameters.pacEnvironment }} -DefinitionsRootFolder $ (Pipeline.Workspace)/policiesplan -inputFolder $InputFolder
1.Building a policy plan (policy-plan.json) and roles plan (roles-plan.json) using below PS command.
2.Build-DeploymentPlans -PacEnvironmentSelector
3.Published both the plan as artifact.
Stage 2:
1.Downloaded the artifact at $(Pipeline.Workspace)/policiesplan/plans-epac-dev
2.Executed the below PS command for deployment which is giving warning message that Plan does not exist, skipping Policy resource deployment and the same case for roles plan deployment as well.
3.
4. Deploy-PolicyPlan -PacEnvironmentSelector
5. However, despite the script not recognizing the plan files, I checked and verified that both the policy and roles plan files are available at the input folder. Please assist us in resolving this problem.
6. Below are the list of folder & files for your reference.
7. FullName
/home/vsts/work/1/policiesplan/plans-epac-dev
/home/vsts/work/1/policiesplan/global-settings.jsonc
/home/vsts/work/1/policiesplan/plans-epac-dev/policy-plan.json
/home/vsts/work/1/policiesplan/plans-epac-dev/roles-plan.json
Beta Was this translation helpful? Give feedback.
All reactions