Yuki Kang Thanks for posting your question in Microsoft Q&A. I tried this in my APIM instance and found that Get-AzApiManagementUser
(with -Debug) makes User - List By Service Rest API call by passing the parameters in filter attribute such as $filter=email eq '******@contoso.com'
. However, I suspect this is not encoded correctly in CLI whereas it works correctly when tested directly in User - List By Service Rest API call.
So, I encoded the value like $encodedEmail=[System.Web.HttpUtility]::UrlEncode("******@contoso.com")
and called Get-AzApiManagementUser -Context $apimContext -Email $encodedEmail
and it provided the results.
I opened an issue #22050 in GitHub for the product team to review further. I suggest you tracking the item on the issue. I hope this helps and let me know if you have any questions.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.