Skip to content

fix: correct curl syntax errors in API examples#468

Closed
AnassKartit wants to merge 1128 commits intomicrosoft-foundry:mainfrom
AnassKartit:patch-1
Closed

fix: correct curl syntax errors in API examples#468
AnassKartit wants to merge 1128 commits intomicrosoft-foundry:mainfrom
AnassKartit:patch-1

Conversation

@AnassKartit
Copy link
Copy Markdown

Summary

Fixes curl syntax errors that would cause API example commands to fail.

Changes

  • -h-H (lowercase is help, uppercase is headers)
  • -f-F (lowercase is fail-silently, uppercase is form data)
  • Single quotes → double quotes around $AZURE_AI_AUTH_TOKEN to enable shell variable expansion
  • Removed trailing whitespace after line continuation backslashes

Impact

All curl examples in the affected file were broken and would not execute successfully. These fixes ensure users can copy-paste and run the examples as expected.

dharakumarmsft and others added 30 commits May 18, 2025 12:42
uncommented out
delete this file since its covered in 3ptool folder
delete this file since its already covered in 3p tool folder
Update Redteaming agent to go through FDP
…nguage-agents-fixes

Mikaels/language agents fixes
Fix missing JS files (looks like they were replaced)
Vijendra123 and others added 26 commits December 15, 2025 09:30
* update readme

* update readme

* update

* updat

* help testing gateway setup

---------

Co-authored-by: vtomar <vtomar@microsoft.com>
…foundry#422)

* Added mvnet testing template

added mvnet testing template

* updates

updates

* More updates

more updates
* removing unneeded header annotations

* update TS sample from azure repo

* add agent creation and chat quickstarts for TS

* add CreateAgent and ChatWithAgent samples for Azure agent interaction

---------

Co-authored-by: brandom-msft <brandom@microsoft.com>
* rename env vars in C# samples

* move Java samples to branded directory naming

* rename java env vars

* update environment variable names for consistency across TypeScript samples

* standardize environment variable names across Python samples
* Remove unused Azure.AI.Agents references in quickstart samples

* Refactor quickstarts to streamline environment variable usage and object creation
final version of managed vnet with regions, outbound rules, readme updates
* add test script for connection

* update

* validate

* add test

---------

Co-authored-by: vtomar <vtomar@microsoft.com>
…y#443)

Corrected the phrasing for registering the subscription with the preview feature in Azure Portal.
* add managed vnet for terraform

* update example

* update outputs and lifecycle

* update vm password and tags
Updated CODEOWNERS to change ownership from @azure-ai-foundry to @microsoft-foundry for various files.
…oundry#451)

* add troubleshooting guide

* add troubleshooting guide

* update

---------

Co-authored-by: vtomar <vtomar@microsoft.com>
* update hosted agent samples
Corrected the phrasing for registering the subscription with the preview feature in Azure Portal.

* minor fix

* add dotnet sample

* fix output saving errors

* refine samples and readme

* try to resolve conflicts

* use gpt-5 as default model
* Fix CMK Key Vault URI handling and docs

* .

* Update README to clarify 'location' parameter description
* updating A365 instructions

* Update samples/csharp/FoundryA365/readme.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update samples/csharp/FoundryA365/readme.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update samples/csharp/FoundryA365/readme.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update samples/csharp/FoundryA365/readme.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* updating names

* compile bicep

* updating model

* Update run-setup.yml

* Change git push reference to use GITHUB_REF_NAME

* adding model

* Refactor GitHub Actions workflow for Bicep processing

Updated GitHub Actions workflow to improve structure and permissions. Added steps for Bicep file processing and automatic commits.

* Update run-setup.yml

* Change git add command to add all files

* Automatic fixes

* updates

* Automatic fixes

* Update run-setup.yml

* Automatic fixes

* updating file

* template

* Automatic fixes

* updating model

* updating basic setup

* update2

* Automatic fixes

* Add GitHub Actions workflow for Bicep setup

This workflow automates the setup of Bicep files and commits changes back to the branch after building them.

* updates templates rbac

* updating templates

* updating templates

* updating workflow

* updating model quota

* Automatic fixes

* updating model quota

* Automatic fixes

---------

Co-authored-by: foundry-samples automation <foundry-samples@noreply.github.com>
* chnages for pmi

* add mi

* update

* update

* update

* update azure ai url

---------

Co-authored-by: vtomar <vtomar@microsoft.com>
* adding APIM PMI

* update

* Removing unneeded comment

* update policy

---------

Co-authored-by: Nicholas Barreca <nbarreca@microsoft.com>
* few more changes

* few more changes

---------

Co-authored-by: vtomar <vtomar@microsoft.com>
- Change -h to -H for header flags (lowercase is help, uppercase is headers)
- Change -f to -F for form data flags in file upload example
- Use double quotes for Bearer token to enable variable expansion
- Remove trailing whitespace after line continuation backslashes
@AnassKartit AnassKartit requested a review from a team as a code owner January 19, 2026 16:17
Copy link
Copy Markdown
Contributor

@sdgilley sdgilley left a comment

Choose a reason for hiding this comment

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

Auto-approved by content maintenance automation

This PR has been automatically validated and approved because:

  • No deleted files are referenced in documentation
  • No renamed files are referenced in documentation
  • No deleted cells/snippets in modified files that are referenced in docs

If you notice any issues, please add a comment and we'll review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.