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

Ensure logAnalyticsWorkspaceId parameter is present in Aspire manifest. #3296

Merged
merged 3 commits into from
Mar 31, 2024

Conversation

mitchdenny
Copy link
Member

@mitchdenny mitchdenny commented Mar 30, 2024

Fixes #3133 and #3273

To fix this I've added an argument to the AddAzureApplicationInsights(...) extension methods that allows it to take an IResourceBuilder<AzureLogAnalyticsWorkspaceResource> and uses a reference to that resource to populate the logAnalyticsWorkspaceId parameter in the manifest.

If this value is not passed in we still ensure that the parameter is in the manifest so that it can be supplied by AZD.

Microsoft Reviewers: Open in CodeFlow

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 30, 2024
@mitchdenny mitchdenny self-assigned this Mar 30, 2024
@mitchdenny mitchdenny added this to the preview 5 (Apr) milestone Mar 30, 2024
@mitchdenny
Copy link
Member Author

@joperezr we will want to back port this one to preview 5.

@davidfowl
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@davidfowl
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@davidfowl
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mitchdenny mitchdenny merged commit b684d11 into main Mar 31, 2024
8 checks passed
@mitchdenny mitchdenny deleted the mitchdenny/fix-3133 branch March 31, 2024 00:45
@mitchdenny
Copy link
Member Author

/backport to release/8.0-preview5

Copy link
Contributor

Started backporting to release/8.0-preview5: https://github.com/dotnet/aspire/actions/runs/8494527436

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AppInsights resource does not define logAnalyticsWorkspaceId as a parameter
2 participants