Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuickStart: Power Pipelines #27

Open
3 of 11 tasks
leighatami opened this issue Aug 24, 2023 · 10 comments
Open
3 of 11 tasks

QuickStart: Power Pipelines #27

leighatami opened this issue Aug 24, 2023 · 10 comments
Assignees
Milestone

Comments

@leighatami
Copy link
Contributor

leighatami commented Aug 24, 2023

As a Terraform user, I want to be able to write a single terraform module that can configure Power Pipelines to manage Power Platform resources the same using tooling/processes that I use to manage Azure resources.

resource "powerplatform_environment" "pipelines_env" {

}

resource "powerplatform_application_package" "pipelines_app" {
  environment_id = pipelines_env.id
  package_name= "Power Pipelines"
}

resource "powerplatform_environment" "dev_env" {
  managed = true
}
resource "powerplatform_environment" "uat_env" {
  managed = true
}
resource "powerplatform_environment" "production_env" {
  managed = true
}

optional datasources for environment application packages

Tasks

@leighatami leighatami assigned acoates-ms and coatsy and unassigned acoates-ms Aug 24, 2023
@coatsy
Copy link

coatsy commented Sep 11, 2023

Created Tenant CRM597124.onmicrosoft.com
See @coatsy for creds

@coatsy
Copy link

coatsy commented Sep 11, 2023

Added 3 environments and enabled Managed Environments:

  • Trial (Sandbox)
  • United States
  • Open Access
  • Managed Environment Settings
    • No Limits
    • Warm Solution Checking
    • Insights by weekly email
    • Empty Maker Content and Learn More URL

Environments

Name Environment URL EnvironmentID OrgID
Hack-Dev https://org4bfeba3b.crm.dynamics.com/ 56007ae9-5a41-ebf0-bfaa-f4ad8caace00 872ee4f7-b850-ee11-94d0-6045bd003909
Hack-Prod https://org451f2a10.crm.dynamics.com/ df8881d4-a5a8-ef39-a878-83e52ac48a05 7de989a9-b750-ee11-94d2-002248282d26
Hack-Pipelines https://orga5935abc.crm.dynamics.com/ 9def7db0-52d0-ed5a-a7c7-8f2d294c391b 34c43275-ba50-ee11-94d0-0022481e2807

@coatsy
Copy link

coatsy commented Sep 11, 2023

Docs to setup pipelines in PP Environments: https://learn.microsoft.com/en-us/power-platform/alm/set-up-pipelines

@coatsy
Copy link

coatsy commented Sep 11, 2023

  • Installed Pipelines app in Hack-Pipelines per https://learn.microsoft.com/en-us/power-platform/alm/set-up-pipelines#install-the-pipelines-application-in-your-host-environment
  • Ran the Deployment Pipelines application in the Hack-Pipelines Environment
  • Added Hack-Dev environment as a Development Environment
  • Added Hack-Prod as a Target Environment
  • Added a Pipeline called Hack Standard Pipeline and enabled AI-generated deployment notes
  • Added Hack-Dev to the pipeline as an existing development environment
  • Added a new deployment stage called Hack-Dev-Prod
    • Target environment: Hack-Prod
    • No previous deployment stage
    • No pre-deployment step required

@coatsy
Copy link

coatsy commented Sep 11, 2023

  • Added SharePoint site "HackDocs" with 2 document libraries - "HackDocs-Dev" and "HackDocs-Prod"
  • Created a solution - Hack-Solution in the Hack-Dev environment including
    • Custom Connector to Azure OpenAI - uses Key1 in Dev environment
    • Environment Variable Env-Hack-AI-Deployment - set to "chat-gpt-35-16k" in dev environment
    • Environment Variable called HackDocsStore that contains the SharePoint URL for a site
    • Chatbot "HackChat" that calls a flow for fallback that calls the Azure OpenAI service using the deployment name in the EnvHack variable

@coatsy
Copy link

coatsy commented Sep 12, 2023

Tried to create a deployment of Hack-Solution from Hack-Dev to Hack-Prod -
image
image
image

@coatsy
Copy link

coatsy commented Sep 12, 2023

Created an empty solution in the Hack-Dev environment - Hack-Solution-Simple
Successfully created a deployment from Hack-Dev to Hack-Prod
image

@mattdot mattdot assigned eduardodfmex and unassigned coatsy Oct 12, 2023
@eduardodfmex
Copy link
Contributor

Power Pipelines need managed environment microsoft/terraform-provider-power-platform#104 and the environment application microsoft/terraform-provider-power-platform#101 , currently we are working on both resources.

With that we can create the TF script.

@leighatami leighatami added this to the GA milestone Nov 7, 2023
@mattdot mattdot assigned mattdot and unassigned eduardodfmex Mar 20, 2024
@mattdot mattdot transferred this issue from microsoft/terraform-provider-power-platform Mar 20, 2024
@mattdot mattdot changed the title Power Pipelines Guide QuickStart: Power Pipelines Mar 20, 2024
@mattdot
Copy link
Member

mattdot commented May 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants