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

copilot_studio_application_insights resource #541

Open
10 tasks
mattdot opened this issue Dec 11, 2024 · 1 comment
Open
10 tasks

copilot_studio_application_insights resource #541

mattdot opened this issue Dec 11, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request resource terraform resource
Milestone

Comments

@mattdot
Copy link
Member

mattdot commented Dec 11, 2024

Description

Add the ability to configure application insights for a Copilot Studio environment.

Resource

The Copilot Studio API enpoint is available in the the BAPI environment get under runtimeEndpoints/microsoft.PowerVirtualAgents

API:
https://{pva_endpoint}/api/botmanagement/2022-01-15/environments/{environment_id}/bots/{bot_id}/applicationinsightsconfiguration

{
"appInsightsConnectionString": "",
"includeSensitiveInformation": true,
"includeActivities": true,
"includeActions": true,
"networkIsolation": "PublicNetwork",
"errors": null
}

Potential Terraform Configuration

# Sample Terraform config that describes how the new resource might look.

resource "powerplatform_copilot_studio_application_insights" {
  environment_id = "{GUID}"
  bot_id = "{GUID}"
  connection_string = "InstrumentationKey={GUID};IngestionEndpoint=https://westus2-2.in.applicationinsights.azure.com/;LiveEndpoint=https://westus2.livediagnostics.monitor.azure.com/;ApplicationId={GUID}"

// optionally configure other settings?
}

Definition of Done

  • Data Transfer Objects (dtos)
  • Data Client functions
  • Resource Implementation
  • Resource Added to Provider
  • Unit Tests for Happy Path
  • Unit Tests for error path
  • Acceptance Tests
  • Example in the /examples folder
  • Schema Documentation in code
  • Updated auto-generated provider docs with make docs

Contributions

Do you plan to raise a PR to address this issue? YES / NO?

See the contributing guide for more information about what's expected for contributions.

@mattdot mattdot added enhancement New feature or request resource terraform resource labels Dec 11, 2024
@mattdot mattdot added this to the P0 milestone Dec 11, 2024
@mattdot
Copy link
Member Author

mattdot commented Dec 11, 2024

This is also something we could potentially support temporarily with a REST call if we don't feel like it's something that belongs in the provider. Challenge would be getting the PVA / CPS endpoint since we don't expose that from the environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request resource terraform resource
Projects
None yet
Development

No branches or pull requests

2 participants