# Add Azure Cloud Provider

Platform9 is able to build upstream Kubernetes clusters using Azure Cloud native services such as Azure Instance, Load Balancers and Block Storage.

Before you can create a new cloud provider for Microsoft Azure in Platform9 Managed Kubernetes (PMK), you must satisfy some prerequisites. Refer to [auto$](https://github.com/platform9/pcd-docs-gitbook/blob/main/kubernetes/azure-prerequisites/README.md) for more info.

Follow the steps given below to create a new Azure cloud provider in PMK.

1. Navigate to Infrastructure > Cloud Providers > Add New Cloud Provider.
2. Click Azure under Cloud Provider Type.
3. Enter the following Azure credentials.

| Field           | Description                                                  |
| --------------- | ------------------------------------------------------------ |
| Name            | Name of your choice to be given to the cloud provider        |
| Tenant ID       | Tenant ID of the service principal                           |
| Client ID       | Client ID of the service principal                           |
| Client Secret   | Client secret of the service principal                       |
| Subscription ID | ID of the subscription that the service principal belongs to |

4. Click Save.

The Microsoft Azure cloud provider is now created successfully. You can now use it to create one or more Kubernetes clusters on this Azure account.

## Test Azure Cloud Providers

To ensure clusters can be created by a given cloud provider Platform9 has built a mechanism to test connectivity and validate the credentials.

{% hint style="info" %}
**Note**

You must be a Platform9 administrator to perform this operation.
{% endhint %}

You can test an Azure cloud provider to ensure the credentials used by that cloud provider will be able to deploy a cluster.

Follow the steps below to test an Azure cloud provider.

1. Navigate to Infrastructure > Cloud Providers.
2. Select the Azure Cloud Provider whose credentials you want to test.
3. Click Edit Cloud Provider button.
4. Below the Credentials details are three cards that validate access to Azure; Region Access.

{% hint style="warning" %}
**Important**

If no Regions are available the provided credentials are invalid or have an incorrect IAM Policy.
{% endhint %}

## Delete Azure Cloud Provider

You can delete an existing Azure cloud provider, when you no longer require it.

{% hint style="warning" %}
**Attention**

**Warning:** Once a cloud provider is deleted, all virtual resources associated with the cloud provider are no longer accessible from Platform9.
{% endhint %}

You must be an administrator to perform this operation.

Follow the steps given below to delete a cloud provider.

1. Navigate to Infrastructure - > Cloud Providers.
2. Select the Cloud Provider to delete.
3. Clic k Delete Cloud Provider button.
4. Veri fy your selection to delete the cloud provider.

## Edit Azure Cloud Providers

Azure Cloud Providers **cannot** be edited. This will be supported in a future release.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/managed-kubernetes/5.8/azure-prerequisites/add-azure-cloud-provider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
