---
title: "Set Credentials for Azure"
method: POST
path: "/azure/setup/credentials"
tags: ["Accounts"]
---

# Set Credentials for Azure

`POST /azure/setup/credentials`

Link a Spot account to an Azure Cloud account. 
 Enter the expiration date of your Azure client secret. Spot can remind you to update before the credentials expire. 
 If your client secret expires, your Azure subscription will disconnect from Spot and prevent Spot from managing your resources.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref

## Request body

- object
  - `clientId` string, required — Set the application ID
  - `clientSecret` string, required — Set the key secret
  - `tenantId` string, required — Set the directory ID
  - `subscriptionId` string, required — Set the subscription ID
  - `expirationDate` string, date-time, required — Set the key secret expiration date

## Response `200`

Set Cloud Credentials For Azure Response

- object
  - `request` object — Original request properties
    - `id` string — Unique ID associated with this request
    - `url` string — The URL that was used for the request
    - `method` string — The HTTP **METHOD** used for the request
    - `timestamp` string — When the request was received by Spot
  - `response` object — Response package that includes, status, type and any relevant data.
    - `status` object
      - `code` integer — HTTP status code assigned to this response
      - `message` string — HTTP status message for the respective status code

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
