> 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-de/praventionstools/cloud-scan/azure/bad-tenant.md).

# "Bad-Tenant"-Fehler

Die `FALSCHER MANDANT` Der Fehler tritt auf, wenn die Azure-Einrichtung des Cloud-Scans auf einem anderen Mandanten ausgeführt wird als dem, den Sie autorisiert haben.

## Ursache

Wenn das automatische Skript für den Azure Cloud-Scan ausgeführt wird, kann der folgende Fehler auftreten:

`FALSCHER MANDANT - Stoïk Cloud Scanner-Anwendung nicht gefunden, bitte beachten Sie diesen Link für weitere Informationen`

Dieser Fehler tritt auf, wenn der **Die Stoïk-Anwendung wurde in Ihrer Azure-Umgebung nicht korrekt registriert**. Der Hauptgrund ist, dass bei der ersten Einrichtungsphase und beim Ausführen des Skripts eine andere Umgebung ausgewählt wurde.

## Beispiel

Das folgende Beispiel veranschaulicht eine problematische Einrichtung:

{% stepper %}
{% step %}

### Wählen Sie den Anbieter aus

Der Benutzer wählt den Anbieter `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 %}

### Wählen Sie das Konto

Der Benutzer wählt sein `xavier@bar.test` Konto, das dem Mandanten zugeordnet ist `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 %}

### Fordern Sie die Anwendungsregistrierung an

Die Stoïk Cloud Scanner-Anwendung fordert die Registrierung beim Mandanten an `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 %}

### Führen Sie das Skript auf einem anderen Mandanten aus

Der Benutzer versucht, das Skript auf dem Mandanten auszuführen `foo.test` (oben rechts im Bild angezeigt). Da die Stoïk Cloud Scanner-Anwendung auf einem anderen Mandanten (`bar.test`) autorisiert wurde, kann das Skript die erforderlichen Rollen nicht auf `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 %}

## Lösung

* Führen Sie das Skript auf demselben Azure-Mandanten aus, der bei der Autorisierung der Stoïk-Anwendung verwendet wurde (der in Schritt 2 oben ausgewählte Mandant).
* Wenn Sie unsicher sind, welcher Mandant verwendet wurde:
  * Trennen Sie die Verbindung zu allen Ihren Konten auf <https://portal.azure.com>.
  * Starten Sie dann die Installation des Tools in Stoïk Protect erneut.

{% hint style="info" %}
Wenn das Problem weiterhin besteht, wenden Sie sich an Stoïk unter <protect@stoik.io> für weitere Unterstützung.
{% 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-de/praventionstools/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.
