Repository navigation
[Cognitive Services] az cognitiveservices account create: Refine BYO AKS preflight and provisioning - #34408
Conversation
|
Thank you for your contribution jessie zhu (@jessiezhu-m)! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
🟢 Approval recommended
The BYO AKS preflight and managed-identity validation updates have no active review issues.
No open issues 🎉
What changed in this PR
Refines BYO AKS preflight checks for az cognitiveservices account create, following the initial support added in #34303 and aligning validation with updated onboarding requirements.
Changes:
- Adds Azure CNI Pod Subnet support and kubelet identity validation while removing selected AKS readiness, capacity, SSH, and supplied-Storage checks.
- Simplifies managed-identity role validation and reuse to accept inherited built-in roles, and defers caller authorization to ARM operations.
- Streamlines verbose logging, removes the Compute client dependency, and updates regression tests.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/test_agent_hosting_preparation.py |
Updates coverage for revised preflight checks, inherited roles, and conflict handling. |
src/azure-cli/azure/cli/command_modules/cognitiveservices/_client_factory.py |
Removes the unused Compute management client. |
src/azure-cli/azure/cli/command_modules/cognitiveservices/_agent_hosting.py |
Reuses qualifying inherited roles while retaining exact conflict verification. |
src/azure-cli/azure/cli/command_modules/cognitiveservices/_agent_hosting_preflight.py |
Revises AKS, Storage, and role checks and simplifies diagnostic output. |
Review effort: Balanced
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
f328cf8 to
28f8f3b
Compare
|
Yong Zhang (@yonzhan) The breaking change is not related to this pr, I've updated the branch. Could you help rerun the check? |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…test Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
az cognitiveservices account create: Refine BYO AKS preflight checksaz cognitiveservices account create: Refine BYO AKS preflight and provisioning
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Yong Zhang (@yonzhan) could your team help review this pr? We target to catch up the upcoming 12/1 release. |
|
@act-identity-squad will help with |
🤖 PR Validation — ️✔️ All clear
Related command
az cognitiveservices account createDescription
Refine BYO AKS preflight validation and dependency provisioning for
az cognitiveservices account create(follow-up to #34303):objectId, and remove capacity, SSH, andSucceeded-state preflight checks.atScope(), without pre-checking caller write permissions.ValidationErrorwith a documentation link, and streamline provisioning logs to use short resource names.Testing Guide
pytest(test_agent_hosting.py,test_agent_hosting_preparation.py): passed (74 passed, 130 subtests passed).azdev style cognitiveservices: passed (PylintandFlake8).History Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.