3 ファイル変更+13-1
この更新の概要
Microsoft Foundryを利用した際のClaude Codeの起動方法と環境変数の役割について詳細が追加されました。model-configではeffortLevelの設定値として許容される具体的なオプションと、session-onlyであるmaxの制限が明記されています。skillsにおいてはコマンド出力の置換処理が一度のみ実行されるという再帰的なスキャンの制限事項が補足されました。
@@ -158,6 +158,16 @@ For current and legacy model IDs, see [Models overview](https://platform.claude.
export ENABLE_PROMPT_CACHING_1H=1
```
### 5. Run Claude Code
With the environment variables set, start Claude Code from your project directory:
```bash
claude
```
Claude Code reads `CLAUDE_CODE_USE_FOUNDRY` and the other Foundry variables from the environment and connects to your Azure resource on the first prompt. Unlike Bedrock and Vertex AI, Foundry has no interactive setup wizard, so the environment variables in steps 3 and 4 are the only configuration path.
## Azure RBAC configuration
The `Azure AI User` and `Cognitive Services User` default roles include all required permissions for invoking Claude models.
@@ -202,7 +202,7 @@ You can change effort through any of the following:
- **In `/model`**: use left/right arrow keys to adjust the effort slider when selecting a model
- **`--effort` flag**: pass a level name to set it for a single session when launching Claude Code
- **Environment variable**: set `CLAUDE_CODE_EFFORT_LEVEL` to a level name or `auto`
- **Settings**: set `effortLevel` in your settings file
- **Settings**: set `effortLevel` to `low`, `medium`, `high`, or `xhigh` in your settings file. `max` is [session-only](#adjust-effort-level) and is not accepted here
- **Skill and subagent frontmatter**: set `effort` in a [skill](/en/skills#frontmatter-reference) or [subagent](/en/sub-agents#supported-frontmatter-fields) markdown file to override the effort level when that skill or subagent runs
The environment variable takes precedence over all other methods, then your configured level, then the model default. Frontmatter effort applies when that skill or subagent is active, overriding the session level but not the environment variable.
@@ -392,6 +392,8 @@ When this skill runs:
This is preprocessing, not something Claude executes. Claude only sees the final result.
Substitution runs once over the original file. Command output is inserted as plain text and is not re-scanned for further `` !`<command>` `` placeholders, so a command cannot emit a placeholder for a later pass to expand.
For multi-line commands, use a fenced code block opened with ` ```! ` instead of the inline form:
````markdown theme={null}