Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Copilot] Add authorization interface for managed resources #1260

Merged
merged 6 commits into from
Jun 7, 2024

Conversation

encimita
Copy link
Contributor

@encimita encimita commented Jun 4, 2024

Summary

Adds a new function to AzureOpenAI.Codeunit.al that allows partners approved for the private preview program to use the Microsoft managed AI resources.

Reworked some of the logic in AOAIAuthorization.Codeunit.al to more clearly distinguish between the three authorization cases that we have today (first party, managed, self-managed), and created an enum to store that information.

Polish logic to disallow background calls to Azure OpenAI. The previous logic wanted to express that calls in the background are allowed if it's the partner's own AOAI resource (the partner decides in that case), but not if it's using Microsoft managed resources.

Note: the logic at the moment does not verify that the partner AOAI deployment exists and is valid in the case of Managed resources. This is because we are currently in private preview, so the selected partners are already allowlisted. We will add the verification logic when we move to public preview.

Work Item(s)

Fixes AB#537361
Fixes AB#527684

@encimita encimita requested a review from a team as a code owner June 4, 2024 09:29
@encimita encimita requested a review from darjoo June 4, 2024 09:29
@github-actions github-actions bot added this to the Version 25.0 milestone Jun 4, 2024
EvgenijKorovin
EvgenijKorovin previously approved these changes Jun 4, 2024
MonicaPAhuja
MonicaPAhuja previously approved these changes Jun 4, 2024
@encimita encimita dismissed stale reviews from MonicaPAhuja and EvgenijKorovin via 359af67 June 6, 2024 08:50
@encimita encimita requested a review from msft-sam June 6, 2024 09:40
@darjoo darjoo merged commit a78f587 into main Jun 7, 2024
25 checks passed
@darjoo darjoo deleted the private/encimita/AOAI-managed-interface branch June 7, 2024 11:21
encimita added a commit that referenced this pull request Jun 11, 2024
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Adds a new function to `AzureOpenAI.Codeunit.al` that allows partners
approved for the private preview program to use the Microsoft managed AI
resources.

Reworked some of the logic in `AOAIAuthorization.Codeunit.al` to more
clearly distinguish between the three authorization cases that we have
today (first party, managed, self-managed), and created an enum to store
that information.

Polish logic to disallow background calls to Azure OpenAI. The previous
logic wanted to express that calls in the background are allowed if it's
the partner's own AOAI resource (the partner decides in that case), but
not if it's using Microsoft managed resources.

_Note: the logic at the moment does not verify that the partner AOAI
deployment exists and is valid in the case of Managed resources. This is
because we are currently in private preview, so the selected partners
are already allowlisted. We will add the verification logic when we move
to public preview._

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#537361](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/537361)
Fixes
[AB#527684](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/527684)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants