> For the complete documentation index, see [llms.txt](https://docs.stoik.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoik.io/help/help-nl/preventietools/cloud-scan/azure/bad-tenant.md).

# Fout 'Bad Tenant'

De `VERKEERDE TENANT` de fout verschijnt wanneer de Azure-configuratie van de Cloud-scan wordt uitgevoerd op een andere tenant dan degene die u hebt geautoriseerd.

## Oorzaak

Wanneer het automatische script voor de Azure Cloud-scan wordt uitgevoerd, kan de volgende fout verschijnen:

`VERKEERDE TENANT - Stoïk Cloud Scanner-toepassing niet gevonden, zie deze link voor meer informatie`

Deze fout treedt op wanneer de **Stoïk-toepassing niet correct is geregistreerd in uw Azure-omgeving**. De belangrijkste reden is dat tijdens de eerste stap van de configuratie een andere omgeving is geselecteerd dan toen het script werd uitgevoerd.

## Voorbeeld

Het onderstaande voorbeeld illustreert een problematische configuratie:

{% stepper %}
{% step %}

### Selecteer de provider

De gebruiker selecteert de provider `Microsoft Azure`.

<figure><img src="https://content.gitbook.com/content/aDGGQ49Oui29Ft0kJjSm/blobs/NWPK4gXD1wKs8U1vuOPE/image%20png%20Oct%2003%202024%2009%2016%2002%204325%20AM.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Kies het account

De gebruiker selecteert zijn `xavier@bar.test` account dat is gekoppeld aan de tenant `bar.test`.

<figure><img src="https://content.gitbook.com/content/aDGGQ49Oui29Ft0kJjSm/blobs/IJMiaLxdwfQvqyMiueVz/image%20png%20Oct%2003%202024%2009%2014%2025%204762%20AM.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Vraag de app-registratie aan

De Stoïk Cloud Scanner-toepassing vraagt om registratie op de tenant `bar.test`.

<figure><img src="https://content.gitbook.com/content/aDGGQ49Oui29Ft0kJjSm/blobs/V2k0lLoguK5BYclSqEXW/image%20png%20Oct%2003%202024%2009%2021%2042%203314%20AM.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Voer het script uit op een andere tenant

De gebruiker probeert het script uit te voeren op de tenant `foo.test` (weergegeven rechtsboven in de afbeelding). Omdat de Stoïk Cloud Scanner-toepassing is geautoriseerd op een andere tenant (`bar.test`), kan het script de benodigde rollen niet toewijzen op `foo.test`.

<figure><img src="https://content.gitbook.com/content/aDGGQ49Oui29Ft0kJjSm/blobs/9xq9gyyZ3EhqYwuXS0B8/image%20png%20Oct%2003%202024%2009%2034%2044%202548%20AM.png" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Oplossing

* Voer het script uit op dezelfde Azure-tenant die werd gebruikt bij het autoriseren van de Stoïk-toepassing (de tenant die in stap 2 hierboven is geselecteerd).
* Als u niet zeker weet welke tenant is gebruikt:
  * Meld u af bij al uw accounts op <https://portal.azure.com>.
  * Start daarna de installatie van de tool opnieuw op Stoïk Protect.

{% hint style="info" %}
Als het probleem aanhoudt, neem dan contact op met Stoïk via <protect@stoik.io> voor verdere hulp.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stoik.io/help/help-nl/preventietools/cloud-scan/azure/bad-tenant.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
