> For the complete documentation index, see [llms.txt](https://docs.kangal.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kangal.dev/tr/entegrasyonlar/azure.md).

# Azure

Azure entegrasyonu, Azure Resource Manager üzerinden erişilebilen abonelikleri listeler. Kimlik doğrulama hazır access token veya uygulama kaydı kimlik bilgileriyle yapılır.

## Senkronizasyon nasıl çalışır?

`access_token` verilmişse doğrudan kullanılır. Aksi halde `tenant_id`, `client_id` ve `client_secret` ile client credentials token'ı alınır. Ardından şu çağrı yapılır:

```
GET {management_base_url}/subscriptions?api-version=2020-01-01
```

Client credentials akışı `https://management.azure.com/.default` scope'unu ister.

## Yapılandırma

| Tür    | Alan                  | Açıklama                                    |
| ------ | --------------------- | ------------------------------------------- |
| Config | `tenant_id`           | Uygulama kaydıyla giriş için tenant ID      |
| Config | `client_id`           | Uygulama kaydının client ID değeri          |
| Config | `management_base_url` | Varsayılan `https://management.azure.com`   |
| Secret | `client_secret`       | Uygulama kaydıyla giriş için client secret  |
| Secret | `access_token`        | Alternatif olarak doğrudan ARM access token |

`access_token` tek başına yeterlidir. Bu değer yoksa `tenant_id`, `client_id` ve `client_secret` değerlerini birlikte girin. Kangal seçilen credential grubunu sync başladığında doğrular.

## Dönen metadata

`auth_type`, `subscription_count` ve `subscriptions` alanları döner. Her abonelik kaydı `subscription_id`, `display_name`, `state` ve `tenant_id` içerir. `auth_type` değeri `access_token` veya `client_credentials` olur.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.kangal.dev/tr/entegrasyonlar/azure.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
