Generating an app password in the Azure portal

blusyblues 1 Reputation point
2021-04-28T03:06:39.187+00:00

Hi - looking for some help on app password setup.

Right now I can create and generate an app password using the command line as follows:

az ad sp create-for-rbac -n "myappname" --years 2

I am wondering if I can create the equivalent from inside the Azure portal. I have tried the following steps:

  • Create app
  • Create client secret
  • Setup an endpoint using the EXPOSE API menu option.

But I think I'm missing something because the app password I get from the client secret screen does not work. But if I run the command line shown above, the password generated there works. So I'm thinking that command does something that I'm missing when I try to set things up manually in the Azure portal.

Thanks!

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
208 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,563 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Patchfox 3,786 Reputation points
    2021-04-28T04:46:12.253+00:00

    What authorization (Role) did you give the app? By default, the "az ad sp create" command gives contributor rights to the subscription. Which is probably why your authentication works with the command