-
Notifications
You must be signed in to change notification settings - Fork 462
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
Conversation
Couldn't test E2E right now as it blocks on quotas. Won't merge before this is resolved. |
48f7126
to
73a0715
Compare
playground/OpenAIEndToEnd/OpenAIEndToEnd.AppHost/OpenAIEndToEnd.AppHost.csproj
Outdated
Show resolved
Hide resolved
# Conflicts: # src/Aspire.Hosting.Azure/AzureOpenAIResource.cs
Looks good. |
There was a problem hiding this 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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@@ -73,3 +70,6 @@ resource cognitiveServiceContributorRoleAssignment 'Microsoft.Authorization/role | |||
} | |||
|
|||
output connectionString string = 'Endpoint=${account.properties.endpoint}' | |||
|
|||
|
|||
output connectionString string = 'Endpoint=${account.properties.endpoint}' |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Fixes #2490
Microsoft Reviewers: Open in CodeFlow