Skip to content

Commit cde92be

Browse files
authored
[hosted-agents]docs: add troubleshooting section for ARM64 local Docker builds (#416)
1 parent 6d90cbc commit cde92be

9 files changed

Lines changed: 195 additions & 31 deletions

File tree

samples/csharp/hosted-agents/AgentWithHostedMCP/README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2-
2+
33
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4-
4+
55
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6-
6+
77
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
88

99
# What this sample demonstrates
1010

11-
This sample demonstrates how to use a Hosted Model Context Protocol (MCP) server with a
11+
This sample demonstrates how to use a Hosted Model Context Protocol (MCP) server with a
1212
[Microsoft Agent Framework](https://learn.microsoft.com/en-us/agent-framework/overview/agent-framework-overview#ai-agents) AI agent and
13-
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
13+
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
1414
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
1515

1616
## How It Works
@@ -56,6 +56,7 @@ Set the following environment variables:
5656
- `AZURE_OPENAI_DEPLOYMENT_NAME` - The deployment name for your chat model (optional, defaults to `gpt-4o-mini`)
5757

5858
**PowerShell:**
59+
5960
```powershell
6061
# Replace with your Azure OpenAI endpoint
6162
$env:AZURE_OPENAI_ENDPOINT="https://your-openai-resource.openai.azure.com/"
@@ -86,3 +87,21 @@ Try asking questions about Microsoft documentation and technologies to see the M
8687
### Deploying the Agent to Microsoft Foundry
8788

8889
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
90+
91+
## Troubleshooting
92+
93+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
94+
95+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
96+
97+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
98+
99+
**Fix for local builds**
100+
101+
Add this line at the top of your `Dockerfile`:
102+
103+
```dockerfile
104+
FROM --platform=linux/amd64 python:3.12-slim
105+
```
106+
107+
This forces the image to be built for the required `amd64` architecture.

samples/csharp/hosted-agents/AgentWithTextSearchRag/README.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2-
2+
33
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4-
4+
55
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6-
6+
77
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
88

99
# What this sample demonstrates
1010

11-
This sample demonstrates how to use the TextSearchProvider to add retrieval augmented generation (RAG) capabilities to a
11+
This sample demonstrates how to use the TextSearchProvider to add retrieval augmented generation (RAG) capabilities to a
1212
[Microsoft Agent Framework](https://learn.microsoft.com/en-us/agent-framework/overview/agent-framework-overview#ai-agents) AI agent and
13-
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
13+
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
1414
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
1515

1616
## How It Works
@@ -56,6 +56,7 @@ Set the following environment variables:
5656
- `AZURE_OPENAI_DEPLOYMENT_NAME` - The deployment name for your chat model (optional, defaults to `gpt-4o-mini`)
5757

5858
**PowerShell:**
59+
5960
```powershell
6061
# Replace with your Azure OpenAI endpoint
6162
$env:AZURE_OPENAI_ENDPOINT="https://your-openai-resource.openai.azure.com/"
@@ -82,10 +83,29 @@ You can interact with the agent using:
8283
- Any OpenAI Responses compatible client by sending requests to `http://localhost:8080/`
8384

8485
Try asking questions about:
86+
8587
- Contoso return policy
8688
- Shipping information
8789
- Product care instructions
8890

8991
### Deploying the Agent to Microsoft Foundry
9092

91-
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
93+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
94+
95+
## Troubleshooting
96+
97+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
98+
99+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
100+
101+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
102+
103+
**Fix for local builds**
104+
105+
Add this line at the top of your `Dockerfile`:
106+
107+
```dockerfile
108+
FROM --platform=linux/amd64 python:3.12-slim
109+
```
110+
111+
This forces the image to be built for the required `amd64` architecture.

samples/csharp/hosted-agents/AgentsInWorkflows/README.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2-
2+
33
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4-
4+
55
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6-
6+
77
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
88

99
# What this sample demonstrates
1010

11-
This sample demonstrates how to use AI agents as executors within a workflow, hosted using
12-
[Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
11+
This sample demonstrates how to use AI agents as executors within a workflow, hosted using
12+
[Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
1313
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
1414

1515
## How It Works
@@ -23,6 +23,7 @@ This sample demonstrates the integration of AI agents within a workflow pipeline
2323
3. **English Agent** - Takes the Spanish translation and translates it back to English
2424

2525
The agents are connected sequentially in a workflow, creating a translation chain that demonstrates:
26+
2627
- How AI-powered agents can be seamlessly integrated into workflow pipelines
2728
- Sequential execution patterns where each agent's output becomes the next agent's input
2829
- Composable agent architectures for multi-step processing
@@ -56,6 +57,7 @@ Set the following environment variables:
5657
- `AZURE_OPENAI_DEPLOYMENT_NAME` - The deployment name for your chat model (optional, defaults to `gpt-4o-mini`)
5758

5859
**PowerShell:**
60+
5961
```powershell
6062
# Replace with your Azure OpenAI endpoint
6163
$env:AZURE_OPENAI_ENDPOINT="https://your-openai-resource.openai.azure.com/"
@@ -85,4 +87,22 @@ Try providing text in English to see it translated through the workflow chain (E
8587

8688
### Deploying the Agent to Microsoft Foundry
8789

88-
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
90+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
91+
92+
## Troubleshooting
93+
94+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
95+
96+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
97+
98+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
99+
100+
**Fix for local builds**
101+
102+
Add this line at the top of your `Dockerfile`:
103+
104+
```dockerfile
105+
FROM --platform=linux/amd64 python:3.12-slim
106+
```
107+
108+
This forces the image to be built for the required `amd64` architecture.

samples/python/hosted-agents/agent_with_hosted_mcp/README.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2-
2+
33
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4-
4+
55
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6-
6+
77
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
88

99
# What this sample demonstrates
1010

11-
This sample demonstrates how to use a Hosted Model Context Protocol (MCP) server with a
11+
This sample demonstrates how to use a Hosted Model Context Protocol (MCP) server with a
1212
[Microsoft Agent Framework](https://learn.microsoft.com/en-us/agent-framework/overview/agent-framework-overview#ai-agents) AI agent and
1313
host it using [Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
1414
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
@@ -91,4 +91,22 @@ curl -sS -H "Content-Type: application/json" -X POST http://localhost:8088/respo
9191

9292
### Deploying the Agent to Microsoft Foundry
9393

94-
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
94+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
95+
96+
## Troubleshooting
97+
98+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
99+
100+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
101+
102+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
103+
104+
**Fix for local builds**
105+
106+
Add this line at the top of your `Dockerfile`:
107+
108+
```dockerfile
109+
FROM --platform=linux/amd64 python:3.12-slim
110+
```
111+
112+
This forces the image to be built for the required `amd64` architecture.

samples/python/hosted-agents/agent_with_text_search_rag/README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2-
2+
33
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4-
4+
55
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6-
6+
77
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
88

99
# What this sample demonstrates
@@ -91,4 +91,22 @@ curl -sS -H "Content-Type: application/json" -X POST http://localhost:8088/respo
9191

9292
### Deploying the Agent to Microsoft Foundry
9393

94-
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
94+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
95+
96+
## Troubleshooting
97+
98+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
99+
100+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
101+
102+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
103+
104+
**Fix for local builds**
105+
106+
Add this line at the top of your `Dockerfile`:
107+
108+
```dockerfile
109+
FROM --platform=linux/amd64 python:3.12-slim
110+
```
111+
112+
This forces the image to be built for the required `amd64` architecture.

samples/python/hosted-agents/agents_in_workflow/README.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
**IMPORTANT!** All samples and other resources made available in this GitHub repository ("samples") are designed to assist in accelerating development of agents, solutions, and agent workflows for various scenarios. Review all provided resources and carefully test output behavior in the context of your use case. AI responses may be inaccurate and AI actions should be monitored with human oversight. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
2-
2+
33
Agents, solutions, or other output you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any sample, you are acknowledging that any output created using those samples are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct.
4-
4+
55
Third-party samples contained in this folder are subject to their own designated terms, and they have not been tested or verified by Microsoft or its affiliates.
6-
6+
77
Microsoft has no responsibility to you or others with respect to any of these samples or any resulting output.
88

99
# What this sample demonstrates
1010

11-
This sample demonstrates how to use AI agents as executors within a workflow, hosted using
11+
This sample demonstrates how to use AI agents as executors within a workflow, hosted using
1212
[Azure AI AgentServer SDK](https://learn.microsoft.com/en-us/dotnet/api/overview/azure/ai.agentserver.agentframework-readme) and
1313
deploy it to Microsoft Foundry using the Azure Developer CLI [ai agent](https://aka.ms/azdaiagent/docs) extension.
1414

@@ -89,4 +89,22 @@ curl -sS -H "Content-Type: application/json" -X POST http://localhost:8088/respo
8989

9090
### Deploying the Agent to Microsoft Foundry
9191

92-
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
92+
To deploy your agent to Microsoft Foundry, follow the comprehensive deployment guide at https://aka.ms/azdaiagent/docs
93+
94+
## Troubleshooting
95+
96+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
97+
98+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
99+
100+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
101+
102+
**Fix for local builds**
103+
104+
Add this line at the top of your `Dockerfile`:
105+
106+
```dockerfile
107+
FROM --platform=linux/amd64 python:3.12-slim
108+
```
109+
110+
This forces the image to be built for the required `amd64` architecture.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Troubleshooting
2+
3+
### Images built on Apple Silicon or other ARM64 machines do not work on our service
4+
5+
We **recommend using `azd` cloud build**, which always builds images with the correct architecture.
6+
7+
If you choose to **build locally**, and your machine is **not `linux/amd64`** (for example, an Apple Silicon Mac), the image will **not be compatible with our service**, causing runtime failures.
8+
9+
**Fix for local builds**
10+
11+
Add this line at the top of your `Dockerfile`:
12+
13+
```dockerfile
14+
FROM --platform=linux/amd64 python:3.12-slim
15+
```
16+
17+
This forces the image to be built for the required `amd64` architecture.

0 commit comments

Comments
 (0)