> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Azure

> Weave を Microsoft Azure OpenAI サービスと統合する

Weights & Biases (W\&B) Weave は Microsoft Azure OpenAI サービスと連携し、チームが Azure AI アプリケーションを最適化するのを支援します。このページでは、Weave で Azure OpenAI への Call のトラッキングを開始する方法を説明し、より高度なワークフローに役立つ追加リソースを紹介します。

<Tip>
  最新のチュートリアルについては、[Weights & Biases on Microsoft Azure](https://wandb.ai/site/partners/azure) をご覧ください。
</Tip>

<h2 id="get-started">
  はじめに
</h2>

Weave で Azure OpenAI の Call のトラッキングを開始するには、トラッキングする関数を `weave.op` でデコレートします。デコレートすると、Weave は関数への各 Call の入力、出力、メタデータを自動的に取得します。

```python lines theme={"system"}
@weave.op()
def call_azure_chat(model_id: str, messages: list, max_tokens: int = 1000, temperature: float = 0.5):
    response = client.chat.completions.create(
        model=model_id,
        messages=messages,
        max_tokens=max_tokens,
        temperature=temperature
    )
    return {"status": "success", "response": response.choices[0].message.content}

```

<h2 id="learn-more">
  詳細情報
</h2>

以下のセクションでは、Weave で Azure を使用する際の高度なトピックについて説明します。

<h3 id="use-the-azure-ai-model-inference-api-with-weave">
  Azure AI Model Inference API を Weave で使用する
</h3>

[Azure AI Model Inference API を Weave で使用して Azure のモデルに関する知見を得る方法](https://forge.coreweave.com/wandb/byyoung3/ML-NEWS2/reports/A-guide-to-using-the-Azure-AI-model-inference-API--Vmlldzo4OTY1MjEy#tutorial:-implementing-azure-ai-model-inference-api-with-w\&b-weave-)を学びます。

<h3 id="trace-azure-openai-models-with-weave">
  Weave で Azure OpenAI モデルをトレースする
</h3>

[Weave で Azure OpenAI モデルをトレースする方法](https://forge.coreweave.com/wandb/a-sh0ts/azure-weave-cookbook/reports/How-to-use-Azure-OpenAI-and-Azure-AI-Studio-with-W-B-Weave--Vmlldzo4MTI0NDgy)について説明しています。


## Related topics

- [Bring your own bucket (BYOB)](/ja/products/wandb/platform/hosting/data-security/secure-storage-connector.md)
