> For the complete documentation index, see [llms.txt](https://docs.sprinto.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinto.com/integrations/remove-integration-access/microsoft-azure.md).

# Microsoft Azure: Remove Sprinto Access

Remove the access Sprinto was given in Microsoft Azure. Covers every way Sprinto can be connected to Microsoft Azure and the steps to take in Microsoft Azure for each.

Use this guide to remove the access you gave Sprinto in Microsoft Azure. These steps are done in Microsoft Azure, not in Sprinto. To connect Microsoft Azure to Sprinto again later, see [Azure Integration](https://docs.sprinto.com/integrations/overview/azure-integration.md).

## Which connection method did you use?

Sprinto can be connected to Microsoft Azure in 4 ways. Find the method you used, then follow the steps in that section.

| Connection method                                                 | How to tell                                                                                                                                         |
| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Azure China (21Vianet)](#azure-china-21vianet)                   | Connected through the Azure ChinaCloud tile; the tenant uses the Azure China portal (`portal.azure.cn`).                                            |
| [Azure Government](#azure-government)                             | Connected through the Azure GovCloud tile; the tenant uses the Azure Government portal (`portal.azure.us`).                                         |
| [Management group (organization)](#management-group-organization) | Connected as an Azure management group: `sprinto-auditor-app` has Reader on the Tenant Root Group management group, inherited by all subscriptions. |
| [Single subscription](#single-subscription)                       | `sprinto-auditor-app` has the Reader role on one subscription (connected with the subscription PowerShell script or the manual steps).              |

***

## Azure China (21Vianet) <a href="#azure-china-21vianet" id="azure-china-21vianet"></a>

**Who must do this:** Owner, User Access Administrator or Role Based Access Control Administrator on the subscription or root management group, and at least Cloud Application Administrator in Microsoft Entra ID

**What gets removed:** Sprinto's Reader access, its client secret, the `sprinto-auditor-app` app registration and its service principal in your Azure China tenant.

### Steps

1. In the Azure China portal (`https://portal.azure.cn`), remove Reader where you granted it: **Subscriptions** → your subscription, or Management groups → **Tenant Root Group** if you connected a management group. Open **Access control (IAM)** → **Role assignments**, tick `sprinto-auditor-app` (role Reader), select **Remove**, then **Yes**.
2. Sign in to the Azure China Microsoft Entra admin center (`https://entra.microsoftonline.cn`) as at least a Cloud Application Administrator. Go to **Entra ID** → **App registrations**, open `sprinto-auditor-app` and check its Application (client) ID matches the one you gave Sprinto. Under **Certificates & secrets** → **Client secrets**, select the **Delete** icon next to `Sprinto Secret` (or `sprinto-secret`), then **Yes**.
3. On the app's Overview page select **Delete**, tick the box if one appears, then select **Delete**.
4. Go to **App registrations** → **Deleted applications**, select `sprinto-auditor-app`, select **Delete permanently**, then **Yes**.
5. Permanently delete its service principal (not shown in the admin center). In Microsoft Entra PowerShell run `Connect-Entra -Environment China -ClientId '<your app ID>' -TenantId '<tenant ID>' -Scopes 'Application.ReadWrite.All'`, then `$sp = Get-EntraDeletedServicePrincipal -Filter "DisplayName eq 'sprinto-auditor-app'"` and `Remove-EntraDeletedDirectoryObject -Id $sp.Id`.

### Confirm it's removed

`sprinto-auditor-app` is gone from App registrations (including Deleted applications) in the Azure China Entra admin center, `Get-EntraDeletedServicePrincipal -Filter "DisplayName eq 'sprinto-auditor-app'"` returns nothing, and no Reader assignment for it remains.

{% hint style="warning" %}
In Azure China, PowerShell sign-in needs an app registered in your own tenant: use its Application (client) ID for `<your app ID>` in step 5.
{% endhint %}

**Official guide:** [Azure China docs: Remove an application](https://docs.azure.cn/en-us/entra/identity-platform/howto-remove-app)

***

## Azure Government <a href="#azure-government" id="azure-government"></a>

**Who must do this:** Owner, User Access Administrator or Role Based Access Control Administrator on the subscription or root management group, and at least Cloud Application Administrator in Microsoft Entra ID

**What gets removed:** Sprinto's Reader access, its client secret, the `sprinto-auditor-app` app registration and its service principal in your Azure Government tenant.

### Steps

1. In the Azure Government portal (`https://portal.azure.us`), remove Reader where you granted it: **Subscriptions** → your subscription, or Management groups → **Tenant Root Group** if you connected a management group. Open **Access control (IAM)** → **Role assignments**, tick `sprinto-auditor-app` (role Reader), select **Remove**, then **Yes**.
2. In the Azure Government portal (`https://portal.azure.us`) → **Microsoft Entra ID** → **App registrations** → **All applications**, open `sprinto-auditor-app` (check its Application (client) ID matches the one you gave Sprinto). Under **Certificates & secrets** → **Client secrets**, delete the secret `Sprinto Secret` (or `sprinto-secret`).
3. On the app's Overview page select **Delete**, tick the box if one appears, then select **Delete**.
4. Go to **App registrations** → **Deleted applications**, select `sprinto-auditor-app`, choose **Delete permanently** and select **Yes**.
5. Permanently delete its service principal (not visible in the portal). In PowerShell run `Connect-MgGraph -Environment USGov -Scopes "Application.ReadWrite.All"`, then ``Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.us/v1.0/directory/deletedItems/microsoft.graph.servicePrincipal?`$filter=appId eq '<client ID>'"`` and `Remove-MgDirectoryDeletedItem -DirectoryObjectId <id from the result>`.

### Confirm it's removed

`sprinto-auditor-app` is gone from App registrations (All and Deleted applications) in the Azure Government portal and no Reader assignment for it remains.

**Official guide:** [Microsoft Learn](https://learn.microsoft.com/en-us/entra/identity-platform/howto-remove-app)

***

## Management group (organization) <a href="#management-group-organization" id="management-group-organization"></a>

**Who must do this:** Owner, User Access Administrator or Role Based Access Control Administrator on the Tenant Root Group management group (or a Global Administrator with elevated access) (to remove Reader), and at least Cloud Application Administrator in Microsoft Entra ID (to delete the app)

**What gets removed:** Sprinto's Reader access at the root management group, its client secret, the `sprinto-auditor-app` app registration and its service principal, permanently.

### Steps

1. In the Azure portal open **Management groups** → **Tenant Root Group** → **Access control (IAM)** → **Role assignments**. Tick `sprinto-auditor-app` (role Reader), select **Remove**, then **Yes**.
2. In the Microsoft Entra admin center → **Entra ID** → **App registrations** → **All applications**, open `sprinto-auditor-app` (check its Application (client) ID matches the one you gave Sprinto). Under **Certificates & secrets** → **Client secrets**, delete the secret `Sprinto Secret` (or `sprinto-secret`).
3. On the app's Overview page select **Delete**, tick the box if one appears, then select **Delete**.
4. Go to **App registrations** → **Deleted applications**, select `sprinto-auditor-app`, choose **Delete permanently** and select **Yes**.
5. Permanently delete its service principal (not visible in the portal). In PowerShell run `Connect-MgGraph -Scopes "Application.ReadWrite.All"`, then ``Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.servicePrincipal?`$filter=appId eq '<client ID>'"`` and `Remove-MgDirectoryDeletedItem -DirectoryObjectId <id from the result>`.
6. Optional: if you turned on elevated access for this setup and it's still on, go to **Microsoft Entra ID** → **Properties**, set Access management for Azure resources back to No and select **Save**. This doesn't affect reconnecting.

### Confirm it's removed

The Tenant Root Group's Role assignments show no `sprinto-auditor-app`, and the app is not under App registrations (All applications or Deleted applications).

**Official guide:** [Microsoft Learn](https://learn.microsoft.com/en-us/entra/identity-platform/howto-remove-app)

***

## Single subscription <a href="#single-subscription" id="single-subscription"></a>

**Who must do this:** Owner, User Access Administrator or Role Based Access Control Administrator on the subscription (to remove Reader), and at least Cloud Application Administrator in Microsoft Entra ID (to delete the app)

**What gets removed:** Sprinto's Reader access, its client secret, the `sprinto-auditor-app` app registration and its service principal, permanently.

### Steps

1. In the Azure portal open **Subscriptions** → the subscription you connected → **Access control (IAM)** → **Role assignments**. Tick `sprinto-auditor-app` (role Reader), select **Remove**, then **Yes**.
2. In the Microsoft Entra admin center → **Entra ID** → **App registrations** → **All applications**, open `sprinto-auditor-app` (check its Application (client) ID matches the one you gave Sprinto). Under **Certificates & secrets** → **Client secrets**, delete the secret `Sprinto Secret` (or `sprinto-secret`).
3. On the app's Overview page select **Delete**, tick the box if one appears, then select **Delete**.
4. Go to **App registrations** → **Deleted applications**, select `sprinto-auditor-app`, choose **Delete permanently** and select **Yes**.
5. Permanently delete its service principal (not visible in the portal). In PowerShell run `Connect-MgGraph -Scopes "Application.ReadWrite.All"`, then ``Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.servicePrincipal?`$filter=appId eq '<client ID>'"`` and `Remove-MgDirectoryDeletedItem -DirectoryObjectId <id from the result>`.

### Confirm it's removed

`sprinto-auditor-app` is not listed under App registrations (All applications or Deleted applications), and the subscription's Role assignments show no `sprinto-auditor-app` or 'Identity not found' entry.

**Official guide:** [Microsoft Learn](https://learn.microsoft.com/en-us/entra/identity-platform/howto-remove-app)


---

# 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.sprinto.com/integrations/remove-integration-access/microsoft-azure.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.
