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

[QUERY] How to set UserAssignedManagedIdentity to a VM that is created using new Azure SDK ( Azure.ResourceManager.Compute ) #44044

Closed
juanvicfer opened this issue May 15, 2024 · 2 comments
Assignees
Labels
Compute - VM customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@juanvicfer
Copy link

Library name and version

Azure.ResourceManager.Compute 1.4.0

Query/Question

I have an app that runs in a pool of VirtualMachines that are created using a C# App using new Azure .NET SDK ( Azure.ResourceManager.Compute ). I want to assign a UserAssignedManageIdentity to the VMs. I know how to do it using Azure's web interface and using old fluent SDK ( WithExistingUserAssignedManagedServiceIdentity ), but I haven't found how to do it using the new library.

Environment

Windows 10 .NET Framework 4.7.2

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 15, 2024
@jsquire jsquire modified the milestone: 2024-05 May 15, 2024
@jsquire jsquire added Compute - VM Mgmt This issue is related to a management-plane library. needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels May 15, 2024
@jsquire
Copy link
Member

jsquire commented May 15, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@juanvicfer
Copy link
Author

I found it. Setting VirtualMachineData.Identity made it work. Thanks for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute - VM customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

5 participants