mgmt eng, keep premium samples in place#48226
Draft
XiaofeiCao wants to merge 2 commits intoAzure:mainfrom
Draft
Conversation
github-merge-queue bot
pushed a commit
to microsoft/typespec
that referenced
this pull request
Mar 6, 2026
- emitter part for Azure/azure-sdk-for-java#47621 - autorest PR: Azure/autorest.java#3298 - sdk repo PR: Azure/azure-sdk-for-java#48226 - sync SDK PR looks good: Azure/azure-sdk-for-java#48179 ## Summary Replace `AzureResourceManager` with SDK-specific `XXManager` as the entry point in Fluent Premium samples. Previously, premium samples were generated with `AzureResourceManager` as the entry type and then moved to `sdk/resourcemanager/azure-resourcemanager/samples` by the downstream `generate.py` script. This change makes premium samples use the corresponding `XXManager` (e.g., `ComputeManager`, `StorageManager`) directly, so samples can stay in their own SDK location. ### Before vs After ```java // Before: premium sample used AzureResourceManager void sampleMethod(com.azure.resourcemanager.AzureResourceManager azure) { azure.storageAccounts().manager().serviceClient().getStorageAccounts().list(); } // After: premium sample uses SDK-specific manager void sampleMethod(com.azure.resourcemanager.storage.StorageManager manager) { manager.serviceClient().getStorageAccounts().list(); } ``` Will update `generate.py` when this got shipped.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
azure-resourcemanager#47621This PR does:
unreleasedentry in version_client.txt and useunreleasedversion in azure-resourcemanagerThe changes include both Swagger and TypeSpec generation. Tested locally for both.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines