Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func newInitCommand(rootFlags rootFlagsDefinition) *cobra.Command {
cmd.Flags().StringVarP(&flags.subscriptionId, "subscription", "s", "",
"Azure subscription ID")

cmd.Flags().StringVarP(&flags.projectEndpoint, "project-endpoint", "e", "",
cmd.Flags().StringVar(&flags.projectEndpoint, "project-endpoint", "",
"Azure AI Foundry project endpoint URL (e.g., https://account.services.ai.azure.com/api/projects/project-name)")

cmd.Flags().StringVarP(&flags.src, "working-directory", "w", "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func newOperationCommand() *cobra.Command {

cmd.PersistentFlags().StringVarP(&flags.subscriptionId, "subscription", "s", "",
"Azure subscription ID (enables implicit init if environment not configured)")
cmd.PersistentFlags().StringVarP(&flags.projectEndpoint, "project-endpoint", "e", "",
cmd.PersistentFlags().StringVar(&flags.projectEndpoint, "project-endpoint", "",
"Azure AI Foundry project endpoint URL (e.g., https://account.services.ai.azure.com/api/projects/project-name)")

cmd.AddCommand(newOperationSubmitCommand())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func newCustomCommand() *cobra.Command {

customCmd.PersistentFlags().StringVarP(&flags.subscriptionId, "subscription", "s", "",
"Azure subscription ID")
customCmd.PersistentFlags().StringVarP(&flags.projectEndpoint, "project-endpoint", "e", "",
customCmd.PersistentFlags().StringVar(&flags.projectEndpoint, "project-endpoint", "",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't remove -e, we have some dependency on UI, as UI show the command, which user copy paste, currently, UI is showing -e, change will break the flow.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@achauhan-scc can we change the UI? Then after the UI is changed we can push this PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please ref the UI you are talking about? I can update that too.

Copy link
Contributor

@rajeshkamal5050 rajeshkamal5050 Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is on the foundry portal @achauhan-scc is working on getting it updated and rolled out.

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rajeshkamal5050 for the screenshot. @achauhan-scc — once the Foundry portal UI update is rolled out, we can merge this PR. Can you give us a rough timeline for when the UI change will ship? We'll hold this PR until then.

"Azure AI Foundry project endpoint URL (e.g., https://account.services.ai.azure.com/api/projects/project-name)")

customCmd.AddCommand(newCustomCreateCommand(flags))
Expand Down
2 changes: 1 addition & 1 deletion cli/azd/extensions/azure.ai.models/internal/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The init command will:
cmd.Flags().StringVarP(&flags.subscriptionId, "subscription", "s", "",
"Azure subscription ID")

cmd.Flags().StringVarP(&flags.projectEndpoint, "project-endpoint", "e", "",
cmd.Flags().StringVar(&flags.projectEndpoint, "project-endpoint", "",
"Azure AI Foundry project endpoint URL (e.g., https://account.services.ai.azure.com/api/projects/project-name)")

cmd.Flags().StringVarP(&flags.projectResourceId, "project-resource-id", "p", "",
Expand Down
Loading