For some reason I deleted so called brand entity at my gcloud console. Now I want to create new one using the command in the console:
gcloud alpha iap oauth-brands create --application_title='EmojiRave' --support_email='[email protected]'
But the console returns me back : INVALID_ARGUMENT: Request contains an invalid argument.
- I've used different formats (using brackets and without them)
- I've checked whether I have enough permissions to do it (I use owner account, so it's enough permissions)
I'm desperate.
Overall, my suggestion is to update the OAuth Consent Screen via GCP Console.
First, it's not possible to delete the OAuth Consent Screen (Brand) once created. This can be seen from @DaImTo's answer, and the lack of delete option in both
gcloud
command and in the console.I also tested your command on my Cloud Shell and it works fine as well. I've checked the documentation with regards
gcloud alpha iap oauth-brands
and it is currently in ALPHA state. It may change without prior notice and it may not be stable or work to all users. If you still want to use the CLI and request to be allow-listed regarding this command, my suggestion is to contact sales, as instructed on the issue tracker you've made.