adding project-endpoint to init command #6596
Merged
+174
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds support for specifying a project endpoint URL to the
initcommand in the Azure AI Foundry Fine Tuning extension. Users can now initialize their environment using either an ARM project resource ID or a project endpoint URL, improving flexibility and usability. The update includes new flag options, endpoint parsing, and logic to resolve project details from the endpoint.New project endpoint support:
--project-endpoint(-e) flag to theinitcommand, allowing users to specify the Azure AI Foundry project endpoint URL as an alternative to the ARM resource ID. [1] [2]parseProjectEndpointandfindProjectByEndpointfunctions to extract account and project names from the endpoint URL, search for the corresponding resources in Azure, and retrieve project details.Flag and parameter changes:
--projectflag to--project-resource-id(-p) and updated its description for clarity. Added new flags for--subscription(-s),--project-endpoint(-e), and changed--environmentshort flag from-eto-n.Other updates:
0.0.12-previewinextension.yaml,CHANGELOG.md, andversion.txt. [1] [2] [3]init.goto support the new endpoint-based workflow, including environment variable assignments and command argument construction. [1] [2]