For the complete documentation index, see llms.txt. This page is also available as Markdown.

"Bad Tenant" error

When running the automatic script for Azure Cloud scan, the following error may appear:

BAD TENANT - Stoïk Cloud Scanner application not found, please see this link for more information

This error occurs when the Stoïk application has not been registered correctly on your Azure environment. The main reason is that a different environment was selected during the first stage of setup and when the script was run.

Example

The example below illustrates a problematic setup:

1

Select the provider

The user selects the provider Microsoft Azure.

2

Choose the account

The user selects their xavier@bar.test account associated with the tenant bar.test.

3

Application registration request

The Stoïk Cloud Scanner application asks to register on the tenant bar.test.

4

Script run on a different tenant

The user tries to run the script on the tenant foo.test (shown at the top right of the image). Because the Stoïk Cloud Scanner application was authorized on a different tenant (bar.test), the script cannot assign the necessary roles on foo.test.

Solutions

  • Run the script on the same Azure tenant that was used when authorizing the Stoïk application (the tenant selected in step 2 above).

  • If you are unsure which tenant was used:

    • Disconnect from all your accounts on https://portal.azure.com.

    • Then restart the installation of the tool on Stoïk Protect.

If the issue persists, contact Stoïk at protect@stoik.io for further assistance.

Last updated

Was this helpful?