When using Foundry resources, errors will occur during deployment.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
When using AddAzureAIFoundry, running aspire deploy will fail.
```
var builder = DistributedApplication.CreateBuilder(args);
builder.AddDockerComposeEnvironment("env");
var foundry = builder.AddAzureAIFoundry("foundry");
builder.Build().Run();
```
21:54:39 (provision-foundry-roles) → Deploying foundry-roles
21:54:39 (provision-foundry-roles) ✗ Failed to provision foundry-roles: Deployment failed: An Azure principal parameter was not supplied a value. Ensure you are using an environment that supports
role assignments, for example AddAzureContainerAppEnvironment. (0.0s)
21:54:39 (provision-foundry-roles) ✗ [ERR] Step 'provision-foundry-roles' failed.
21:54:39 (provision-foundry-roles) ✗ Step 'provision-foundry-roles' failed: An Azure principal parameter was not supplied a value. Ensure you are using an environment that supports role assignments,
for example AddAzureContainerAppEnvironment.
21:54:39 (pipeline-execution) ✗ [ERR] Step 'provision-foundry-roles' failed: An Azure principal parameter was not supplied a value. Ensure you are using an environment that supports role assignments,
for example AddAzureContainerAppEnvironment.
21:54:39 (pipeline-execution) ✗ Failed
------------------------------------------------------------
✓ 15/18 steps succeeded • ⚠ 1 warning • ✗ 2 failed • Total time: 45.51s
Steps Summary:
45.48s ✗ pipeline-execution
29.27s ✓ provision-foundry
14.93s ✓ create-provisioning-context
9.69s ✓ docker-compose-up-env
2.37s ✓ fetch-resource-groups
1.88s ✓ fetch-tenant
1.20s ✓ validate-azure-login
1.14s ✓ fetch-subscription
33.31ms ✓ publish-env
32.71ms ✗ provision-foundry-roles — Failed to provision foundry-roles: Deployment failed: An Azure principal parameter was not supplied a value. Ensure you are using an environment that
supports role assignments, for example AddAzureContainerAppEnvironment.
15.14ms ⚠ publish-azurece7c2
8.60ms ✓ deploy-prereq
1.93ms ✓ process-parameters
1.46ms ✓ prepare-env
1.37ms ✓ publish-prereq
1.10ms ✓ print-env-dashboard-summary
0.51ms ✓ publish
0.45ms ✓ build
✗ PIPELINE FAILED
### Expected Behavior
_No response_
### Steps To Reproduce
_No response_
### Exceptions (if any)
_No response_
### .NET Version info
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.