You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecate -e short flag for --project-endpoint in AI extensions (#7313)
* Test aks
* Remove -e short flag from --project-endpoint in AI extensions
The azure.ai.models and azure.ai.finetune extensions were using -e as
a shorthand for --project-endpoint, which conflicts with azd's global
-e for --environment. This collision caused #7271 when azd tried to
parse -e globally and received a URL instead of an environment name.
Drop the -e shorthand entirely from --project-endpoint. Users can still
pass the full --project-endpoint flag. The -p shorthand was not usable
as a replacement because init commands already use -p for
--project-resource-id.
Closes#7308Closes#7309
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: retry transient CI failures
* fix: remove leftover -e shorthand references from error messages and docs
Clean up error messages, validation text, design spec, and installation
guide that still referenced the removed (-e) shorthand for
--project-endpoint.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: add missing color import in detect_confirm_apphost.go
* fix: address wbreza review — revert unrelated apphost changes, update remaining -e references in docs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: retry transient CI failures
* fix: deprecate -e shorthand instead of removing it
Keep -e working for backward compatibility with existing portal
CLI commands and user workflows. Mark it as deprecated via
pflag's ShorthandDeprecated so users see a warning nudging them
to --project-endpoint. Full removal planned after April 2025.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: update deprecation date and add models CHANGELOG entry
- Update ShorthandDeprecated messages from 'April 2025' to 'a future release'
- Add -e deprecation entry to azure.ai.models CHANGELOG
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
// Environment not configured - check if we have flags for implicit init
172
172
ifprojectEndpoint==""||subscriptionId=="" {
173
-
returnfmt.Errorf("required environment variables not set. Either run 'azd ai finetuning init' or provide both --subscription (-s) and --project-endpoint (-e) flags")
173
+
returnfmt.Errorf("required environment variables not set. Either run 'azd ai finetuning init' or provide both --subscription (-s) and --project-endpoint flags")
Copy file name to clipboardExpand all lines: cli/azd/extensions/azure.ai.models/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
4
4
## 0.0.5-preview (2026-03-24)
5
5
6
+
- Deprecated `-e` shorthand for `--project-endpoint`; use the full flag name instead
6
7
- Improved error handling for 403 (Forbidden) during `custom create` upload, with guidance on required roles and links to prerequisites and RBAC documentation (#7278)
Copy file name to clipboardExpand all lines: cli/azd/extensions/azure.ai.models/docs/installation-guide.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,32 +77,32 @@ azd auth login
77
77
78
78
## Step 5: Use Custom Model Commands
79
79
80
-
You can use the custom model commands by providing `--project-endpoint (-e)` and `--subscription (-s)` flags directly.
80
+
You can use the custom model commands by providing `--project-endpoint` and `--subscription (-s)` flags directly.
81
81
82
82
### 5.1 List Custom Models
83
83
84
84
```bash
85
-
azd ai models custom list -e<project_endpoint> -s <subscription_id>
85
+
azd ai models custom list --project-endpoint<project_endpoint> -s <subscription_id>
86
86
```
87
87
88
88
**Example:**
89
89
90
90
```bash
91
-
azd ai models custom list -e"https://my-account.services.ai.azure.com/api/projects/my-project" -s "8861a79b-1234-5678-abcd-1234567890ab"
91
+
azd ai models custom list --project-endpoint"https://my-account.services.ai.azure.com/api/projects/my-project" -s "8861a79b-1234-5678-abcd-1234567890ab"
0 commit comments