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

[24.x][Copilot] Add authorization interface for managed resources + Use managed deployment instead of deployment when setting first party authorization #1294

Merged

Conversation

<!-- 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)
…irst party authorization (#1282)

<!-- 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 -->
The wrong deployment is set here, causing a bug in main branch for first
party immersive Copilot features.

#### 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)
@encimita encimita marked this pull request as ready for review June 11, 2024 16:46
@encimita encimita requested a review from a team as a code owner June 11, 2024 16:46
@encimita encimita merged commit ea642f9 into releases/24.x Jun 25, 2024
25 checks passed
@encimita encimita deleted the private/encimita/24x-managedDeploymentInterface branch June 25, 2024 16:52
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.

3 participants