Install the client and check the official site, this documentation:
https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-to-configure-managed-identities?pivots=qs-configure-cli-windows-vm#assign-a-user-assigned-managed-identity-during-the-creation-of-an-azure-vm
Hope this help.