Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cli/azd/extensions/azure.ai.models/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Release History


## 0.0.5-preview (2026-03-24)

- Improved error handling for 403 (Forbidden) during `custom create` upload, with guidance on required roles and links to prerequisites and RBAC documentation (#7278)

## 0.0.4-preview (2026-03-17)

- Added async model registration with server-side validation and polling support
Expand Down
2 changes: 1 addition & 1 deletion cli/azd/extensions/azure.ai.models/extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace: ai.models
displayName: Foundry Custom Models (Preview)
description: Extension for managing custom models in Azure AI Foundry. (Preview)
usage: azd ai models <command> [options]
version: 0.0.4-preview
version: 0.0.5-preview
language: go
capabilities:
- custom-commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@ func runCustomCreate(ctx context.Context, parentFlags *customFlags, flags *custo
fmt.Printf(" azd ai models custom create --name %s --version <next-version> ...\n", flags.Name)
return fmt.Errorf("model version already exists")
}
if strings.Contains(err.Error(), "403") {
fmt.Println()
color.Red("✗ Permission denied: you do not have the required role to upload custom models.")
fmt.Println()
color.Yellow("Ensure you have the appropriate role assigned for this Azure AI Foundry project.")
fmt.Println()
fmt.Println(" Prerequisites:")
fmt.Println(" https://learn.microsoft.com/en-us/azure/foundry/how-to/fireworks/import-custom-models?tabs=rest-api#prerequisites")
fmt.Println()
fmt.Println(" Role-based access control (RBAC) details:")
fmt.Println(" https://learn.microsoft.com/en-us/azure/foundry/concepts/rbac-foundry")
return fmt.Errorf("insufficient permissions (403)")
}
return fmt.Errorf("failed to get upload location: %w", err)
}

Expand Down
2 changes: 1 addition & 1 deletion cli/azd/extensions/azure.ai.models/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.4-preview
0.0.5-preview
Loading