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

Use RBAC and bicep provisioning for Azure OpenAI #2529

Merged
merged 7 commits into from
Mar 5, 2024

Conversation

sebastienros
Copy link
Member

@sebastienros sebastienros commented Feb 28, 2024

Fixes #2490

Microsoft Reviewers: Open in CodeFlow

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Feb 28, 2024
@sebastienros
Copy link
Member Author

Couldn't test E2E right now as it blocks on quotas. Won't merge before this is resolved.

Base automatically changed from sebros/identity to main February 29, 2024 00:37
@davidfowl
Copy link
Member

Looks good.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

LGTM. Nice work!

/// <param name="modelVersion">The version of the model.</param>
/// <param name="skuName">The name of the SKU.</param>
/// <param name="skuCapacity">The capacity of the SKU.</param>
public class AzureOpenAIDeployment(string name, string modelName, string modelVersion, string skuName = "Standard", int skuCapacity = 2)
Copy link
Member

Choose a reason for hiding this comment

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

Is Standard and 2 applicable for all deployment models?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes for Standard. I updated the default capacity to 1 and updated the bicep file to require the values from the app model. There are other options that could be set (capacity) but I assume we don't want to support all possible options or this would be the SDK.

@sebastienros sebastienros enabled auto-merge (squash) March 5, 2024 21:33
@@ -73,3 +70,6 @@ resource cognitiveServiceContributorRoleAssignment 'Microsoft.Authorization/role
}

output connectionString string = 'Endpoint=${account.properties.endpoint}'


output connectionString string = 'Endpoint=${account.properties.endpoint}'
Copy link
Member

Choose a reason for hiding this comment

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

Why is this duplicated now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Snap, mean automerger ... It got generated with the tool, not sure why. When looking at the diff locally I thought it was just adding a new line. Will fix it.

@sebastienros sebastienros merged commit bce701b into main Mar 5, 2024
8 checks passed
@sebastienros sebastienros deleted the sebros/openairbac branch March 5, 2024 22:07
@github-actions github-actions bot locked and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Azure Open AI provisioning bicep
4 participants