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

App registration error 'unrecognized arguments: --available-to-other-tenants false' #82

Open
a-goo opened this issue Jun 23, 2022 · 1 comment

Comments

@a-goo
Copy link

a-goo commented Jun 23, 2022

Describe the bug
Running the app registration gives an error: unrecognized arguments: --available-to-other-tenants false

To Reproduce
Steps to reproduce the behavior:

  1. From https://provisiongenie.com/deploymentguide/1-registerapp/
  2. Logged in to https://portal.azure.com/#cloudshell/
  3. Run the script ./Create-AadAppRegistration.ps1
  4. See error

PS /home/andrew/ProvisionGenie/Deployment/Scripts> ./Create-AadAppRegistration.ps1
Active Subscription is bde94792-7a97-4c4d-bbcd-07c4f67bf39b (Development & Test)
WARNING: This command or command group has been migrated to Microsoft Graph API. Please carefully review all breaking changes introduced during this migration: https://docs.microsoft.com/cli/azure/microsoft-graph-migration
Creating AzureAD application
WARNING: This command or command group has been migrated to Microsoft Graph API. Please carefully review all breaking changes introduced during this migration: https://docs.microsoft.com/cli/azure/microsoft-graph-migration
ERROR: unrecognized arguments: --available-to-other-tenants false

Examples from AI knowledge base:
az ad app create --display-name mytestapp --optional-claims @manifest.json
Create an application with optional claims

az ad app create --display-name mytestapp --identifier-uris https://mytestapp.websites.net --app-roles @manifest.json
Create an application with a role

https://docs.microsoft.com/en-US/cli/azure/ad/app#az_ad_app_create
Read more about the command in reference docs
Creating service principal
This command or command group has been migrated to Microsoft Graph API. Please carefully review all breaking changes introduced during this migration: https://docs.microsoft.com/cli/azure/microsoft-graph-migration
argument --id: expected one argument

Examples from AI knowledge base:
az ad sp create --id 00000000-0000-0000-0000-000000000000
Create a service principal. (autogenerated)

https://docs.microsoft.com/en-US/cli/azure/ad/sp#az_ad_sp_create
Read more about the command in reference docs
PS /home/andrew/ProvisionGenie/Deployment/Scripts>


This possibly results in the permissions step on this page: https://provisiongenie.com/deploymentguide/2-importsolution/ "Select the ProvisionGenieApp (it's the app that you registered with the script in the previous step)" being unable to be completed. The app is not in the AAD.

https://provisiongenie.com/deploymentguide/2-importsolution/

  1. Create an application user

    Open the Power Platform admin center
    Select the environment that you want to use for ProvisionGenie
    Select Settings
    Select Users + permissions
    Select application users
    Select New app user
    Select Add an app
    Select the ProvisionGenieApp (it's the app that you registered with the script in the previous step) <--- unable to find app
    Select Add

@a-goo
Copy link
Author

a-goo commented Jun 23, 2022

Removed "--available-to-other-tenants false" and the script ran with no additional errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant