Skip to content

Add validations for UAMI requirement#8122

Merged
saanikaguptamicrosoft merged 1 commit into
Azure:foundry-training-devfrom
saanikaguptamicrosoft:saanika/uami
May 9, 2026
Merged

Add validations for UAMI requirement#8122
saanikaguptamicrosoft merged 1 commit into
Azure:foundry-training-devfrom
saanikaguptamicrosoft:saanika/uami

Conversation

@saanikaguptamicrosoft
Copy link
Copy Markdown
Collaborator

@saanikaguptamicrosoft saanikaguptamicrosoft commented May 9, 2026

Notes

  • Foundry training jobs require a UAMI on the project for submit operation. This PR surfaces it early as a warning during init/override, and blocks submit upfront when we know the project lacks one.
  • Env caching strategy:
    • Caches result in AZURE_AI_TRAINING_HAS_UAMI to avoid an ARM call on every submit.
    • Lazy-resolves when missing
    • Tolerates ARM failures (proceeds without blocking).

Testing

  • If UAMI is missing during init flow
image
  • If UAMI is missing during azd env override flow
image
  • If AZURE_AI_TRAINING_HAS_UAMI is not already set, Submit call makes a call to ARM API and set it
image image
  • After setting AZURE_AI_TRAINING_HAS_UAMI as false, the Submit call fails upfront with right messaging
image

@saanikaguptamicrosoft saanikaguptamicrosoft merged commit fe0611a into Azure:foundry-training-dev May 9, 2026
1 of 2 checks passed
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.

2 participants