Add Application Insights Configuration #551
Open
+451
−0
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.
This pull request introduces a new resource for managing Application Insights configuration for Copilot in the Power Platform. The key changes include the addition of new Terraform configuration files, updates to the provider implementation, and the creation of new service files for handling the Copilot Studio Application Insights resource.
Addresses #541
New Resource Addition
examples/resources/powerplatform_copilot_studio_application_insights/resource.tf
: Added Terraform configuration for the newpowerplatform_copilot_studio_application_insights
resource.examples/resources/powerplatform_copilot_studio_application_insights/variables.tf
: Defined variables forenvironment_id
,bot_id
, andapplication_insights_connection_string
.Provider Implementation Updates
internal/provider/provider.go
:copilot_studio_application_insights
service.Service Implementation
internal/services/copilot_studio_application_insights/api_copilot_studio_application_insights.go
: Implemented API client methods for interacting with the Copilot Studio Application Insights endpoints.internal/services/copilot_studio_application_insights/dto.go
: Defined data transfer objects (DTOs) for handling the data structures related to Copilot Studio Application Insights.internal/services/copilot_studio_application_insights/models.go
: Created resource models and conversion functions for the new resource.internal/services/copilot_studio_application_insights/resource_copilot_studio_application_insights.go
: Implemented the resource schema, CRUD operations, and import state functionality for the new resource.DTO Enhancements
internal/services/environment/dto.go
: AddedRuntimeEndpointsDto
toEnvironmentPropertiesDto
and defined the structure ofRuntimeEndpointsDto
. [1] [2]