Repository navigation
Provision Azure AI Custom Vision with Aspire #19802
smirkingsquiggly
started this conversation in
General
Replies: 1 comment
|
No need to edit resources.bicep by hand. There's no built-in Custom Vision integration, but you can declare it in the AppHost with var customVision = builder.AddAzureInfrastructure("customvision", infra =>
{
var account = new CognitiveServicesAccount("customvision")
{
Kind = "CustomVision.Training",
Sku = new CognitiveServicesSku { Name = "S0" }
};
infra.Add(account);
infra.Add(new ProvisioningOutput("endpoint", typeof(string)) { Value = account.Properties.Endpoint });
});
builder.AddProject<Projects.Api>("api")
.WithEnvironment("CUSTOMVISION_ENDPOINT", customVision.GetOutput("endpoint"));Aspire generates the bicep for you, and it deploys together with your other resources. If you also need prediction, add a second account with |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a recommended way to provision and Azure AI Custom Vision through the Aspire app host?
I already provide other Azure service like Foundry and Service Bus, I would to extend my solution with custom vision.
Or should I manually enhance
resources.bicepto deploy that resource?All reactions