Skip to content

Add csharp customizations for Monitor migration#43812

Merged
ArthurMa1978 merged 51 commits into
Azure:mainfrom
ArcturusZhang:monitor-mpg-migration
Jun 30, 2026
Merged

Add csharp customizations for Monitor migration#43812
ArthurMa1978 merged 51 commits into
Azure:mainfrom
ArcturusZhang:monitor-mpg-migration

Conversation

@ArcturusZhang

Copy link
Copy Markdown
Member

Summary

  • Add C# management emitter configuration for Monitor TypeSpec.
  • Add C# customizations needed by the Azure.ResourceManager.Monitor TypeSpec migration.
  • Align several generated C# names with the shipped AutoRest-based SDK surface.

Notes

  • SDK generation with the current checked-in mgmt generator dependency state still hits the known ModelReaderWriterContextDefinition initializer crash; see SDK migration logs for details.
  • These spec customizations are intended for the Monitor MPG migration and do not complete SDK ApiCompat mitigation by themselves.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the Monitor Monitor, Monitor Ingestion, Monitor Query label Jun 8, 2026
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.

Comment generated by summarize-checks workflow run.

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

API Change Check

APIView identified API level changes in this PR and created the following API reviews

Language API Review for Package
Go sdk/resourcemanager/monitor/armmonitor
Java com.azure.resourcemanager:azure-resourcemanager-monitor
Python azure-mgmt-monitor
TypeSpec DataCollectionApi
TypeSpec PrivateLinkScopesApi
JavaScript @azure/arm-monitor
Swagger Microsoft.Insights-Insights

Comment generated by After APIView workflow run.

ArcturusZhang and others added 22 commits June 11, 2026 14:56
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use named legacy extension operations and C# client names so data collection rule associations and diagnostic settings keep the GA Azure.ResourceManager.Monitor resource names.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add CSharp customizations for resource data, collection, action group, notification, data collection, autoscale, and scheduled query rule names to preserve more of the shipped Azure.ResourceManager.Monitor API surface.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add additional CSharp names and alternate types for Monitor resource data, notification, autoscale, data collection, and scheduled query rule compatibility.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Model private link resources with PrivateLinks over the PrivateLinkScope parent instead of declaring PrivateLinkResource as a child ARM resource.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add csharp to AlertSeverity clientName decorators so generated values use Zero through Four.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ArcturusZhang and others added 3 commits June 24, 2026 11:55
Apply TypeSpec formatting and address warn-as-error diagnostics from the Monitor validation pipeline.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep DataCollectionApi TypeSpec and generated swagger output in sync for TypeSpec validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add intentional Monitor CSharp compatibility names to the Monitor spellcheck word list.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ArcturusZhang ArcturusZhang marked this pull request as ready for review June 24, 2026 08:04
@github-actions github-actions Bot added ARMReview WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Jun 24, 2026

@ravimeda ravimeda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARM API Review

Posting findings from the ARM API Reviewer agent (critic-verified, 1 iteration, converged) against commit 774bcfe. See the inline comment for the Warning finding. A second finding (an [EXISTING] cross-file suppression suggestion) is posted as a top-level PR comment because the cited lines fall outside this PR's diff.

@ravimeda

Copy link
Copy Markdown
Member

[EXISTING] 🔵 Suggestion [typespec-review §4.1] FIXME placeholder suppression reasons on constructs this PR edits

Locations:

  • specification/monitor/resource-manager/Microsoft.Insights/Insights/PrivateLinkScopesApi/PrivateLinkResource.tsp — lines 25-26 and 36-38 (the get / listByPrivateLinkScope operations)
  • specification/monitor/resource-manager/Microsoft.Insights/Insights/DataCollectionApi/DataCollectionRuleAssociationProxyOnlyResource.tsp — line 26 (the ExtensionOperations alias) and line 72 (the create operation)

Classification reasoning: Pre-existing — identical FIXME placeholders exist on the base commit; not introduced by this PR. Flagged because this PR edits the very constructs these suppressions are attached to.

Issue: These suppression reasons read "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details". Section 4.1 states suppression reasons MUST NOT contain FIXME / TODO / TBD placeholder text. (The untouched-model FIXME at DataCollectionRuleAssociationProxyOnlyResource.tsp line 16 is also pre-existing.)

Suggested fix: Since these operations/aliases are being modified anyway, consider replacing the FIXME placeholders with real technical justifications for the no-legacy-usage / invalid-parameter-rename / operation-missing-api-version suppressions.

Posted as a top-level comment because the cited suppression lines fall outside this PR's diff hunks and span two files.

@ravimeda ravimeda added ARMChangesRequested and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Jun 24, 2026
ArcturusZhang and others added 11 commits June 25, 2026 14:11
Add Monitor-specific CSharp client names for generic NSP, metrics, incident, and data collection generated surfaces requested in SDK review.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Map remaining Monitor identity properties to common ManagedServiceIdentity for CSharp.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename generated alert rule incident model to the shipped MonitorIncident name for CSharp compatibility.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Map resource IDs, URIs, and Azure locations to SDK-friendly CSharp types.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add CSharp client names for remaining generic Monitor models and NSP parent types from SDK review.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Expand NSP operation names and add Monitor context to NSP data and incident receiver CSharp names.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add CSharp client names for remaining review feedback on Monitor model naming.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mark metrics list GET operations pageable for CSharp to match the shipped SDK surface.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ArthurMa1978 ArthurMa1978 added Approved-Avocado PublishToCustomers Acknowledgement the changes will be published to Azure customers. ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review labels Jun 30, 2026
@ArthurMa1978

Copy link
Copy Markdown
Member

This PR updates the settings for the .NET SDK release.

@ArthurMa1978 ArthurMa1978 merged commit f9b172d into Azure:main Jun 30, 2026
95 of 97 checks passed
@ArcturusZhang ArcturusZhang deleted the monitor-mpg-migration branch June 30, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved-Avocado ARMAutoSignedOff-IncrementalTSP ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review Monitor Monitor, Monitor Ingestion, Monitor Query PublishToCustomers Acknowledgement the changes will be published to Azure customers. resource-manager RPaaS TypeSpec Authored with TypeSpec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants