---
title: "Create Azure key"
method: POST
path: "/business/azure-keys"
tags: ["Azure Keys"]
---

# Create Azure key

`POST /business/azure-keys`

## Request

- Base URL: `https://asm.cloud.tenable.com/api/1.0`
- URL: `https://asm.cloud.tenable.com/api/1.0/business/azure-keys`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/tenable/apis/attack-surface-management/docs/business/azure-keys/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new Microsoft Azure key in the business of the current user.

## Request body

- object
  - `name` string, required: A name for the Azure key.
  - `tenant_id` string, required: The Microsoft Azure tenant ID.
  - `client_id` string, required: The Microsoft Azure client ID.
  - `client_secret` string, required: The Microsoft Azure client secret value.

## Response `200`

Returned if Tenable Attack Surface Management successfully created the Microsoft Azure key.

- object
  - `id` number: The ID of the newly created Microsoft Azure key.

## Other responses

- `401`: Returned if you do not have permissions to create a Microsoft Azure key.
- `404`: Returned if no name was provided for the new Azure key.
- `500`: Returned if an internal error occurred in Tenable Attack Surface Management.

---

[API](https://skmtc.dev/tenable/apis/attack-surface-management.md) - [All operations](https://skmtc.dev/tenable/apis/attack-surface-management/llms.txt) - [OpenAPI document](https://skmtc.dev/tenable/apis/attack-surface-management/revisions/465c06285e48?raw)
