---
title: "Create Azure Credential"
method: POST
path: "/v1/credentials/azure"
tags: ["Cloud"]
---

# Create Azure Credential

`POST /v1/credentials/azure`

Create a new credential for Azure.

## Request body

- AddAzureCredentialRequest
  - `name` string, required — The name to give the created credential
  - `clientId` string, uuid, required — The ID of the application from which to import resource metadata for your subscriptions
  - `tenantId` string, uuid, required — The ID of the directory to be used during authentication
  - `clientSecret` string, required — The secret to be used for authentication
  - `linkType` 'global' | 'government' — The type of Azure environment the credential is for

## Response `201`

Created. Returns the newly created Azure credential.

- AzureCredentialObject
  - `credentialId` string, required — Azure credential ID
  - `type` 'azure', required
  - `params` object, required
    - `name` string, required — Name of the credential
    - `clientId` string, uuid, required — The ID of the application from which resource metadata was imported for your subscriptions
    - `tenantId` string, uuid, required — The ID of the directory that was used during authentication
    - `linkType` 'global' | 'government', required — The type of Azure environment the credential is for

## Other responses

- `409` — Conflict. Occurs when a credential with the given client ID already exists.

---

[API](https://skmtc.net/lucid/apis/lucid-rest-api.md) · [All operations](https://skmtc.net/lucid/apis/lucid-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lucid/lucid-rest-api/revisions/6a32cb9e1aa7/schema)
