How to consume Azure REST API App with Azure Active Directory authorization On
I have deployed an API App to Azure, but I am having problems creating API Client if Authentication (with AAD) is set to ON. When I try to generate service client (when Authentication is OFF), then client code is generated (it's done with Autorest) and code is working, but when I switch Authentication ON (and Action to take when request is not authenticated is set to Login with Azure Active Directory ), then 1) service call returned 401 Unauthorized (without redirecting to AAD login page) 2) Then I tried to generate service client once more (from Project's context menu -> Add -> REST API