Add azure_resourcemanager_vmware crate#4095
Closed
cataggar wants to merge 3 commits into
Closed
Conversation
Generate the initial azure_resourcemanager_vmware crate from the Microsoft.AVS TypeSpec specification (2024-09-01 API version). The crate provides Rust client bindings for managing Azure VMware Solution resources including private clouds, clusters, datastores, and workload networks. Fixes Azure#2954
Add an example that lists all Azure VMware Solution private clouds in a subscription using the AVSClient and DeveloperToolsCredential. Also adds futures and tokio as dev-dependencies for the example.
The generated code used 'user_impersonation' as the auth scope which resolves to Microsoft Graph instead of Azure Management. Changed to 'https://management.azure.com/.default' to correctly authenticate against the ARM API. This is a workaround for a typespec-rust emitter bug that should be fixed upstream.
a3694f8 to
665ce71
Compare
Member
|
@antkmsft @jhendrixMSFT Are you aware of the issue with user_impersonation? "The typespec-rust emitter generates user_impersonation as the auth scope instead of https://management.azure.com/.default for ARM crates. A manual fix is included in this PR; the emitter should be updated upstream." |
Member
|
Yes it's a known issue tracked in Azure/typespec-azure#3883 |
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
Generate the initial
azure_resourcemanager_vmwarecrate from the Microsoft.AVS TypeSpec specification. This crate provides Rust client bindings for managing Azure VMware Solution resources.What's included
519c29aof azure-rest-api-specs)Cargo.tomlsdk/avs/ci.yml)list_private_cloudslisting all AVS private clouds in a subscriptionValidation
cargo build -p azure_resourcemanager_vmware✅cargo clippy -p azure_resourcemanager_vmware✅ (only dead_code warnings in generated code)cargo fmt -p azure_resourcemanager_vmware✅Known issues
user_impersonationas the auth scope instead ofhttps://management.azure.com/.defaultfor ARM crates. A manual fix is included in this PR; the emitter should be updated upstream.tspconfig.yamlin azure-rest-api-specs does not yet include Rust emitter configuration. The emitter options were provided via--emitter-optionsduring generation. A follow-up PR to azure-rest-api-specs will be needed.Fixes #2954