Provisioning with two Azure OpenAI model deployments fails #3409
Labels
area-app-model
Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Milestone
I'm attempting to deploy dotnet/eShop with Azure OpenAI support enabled but it fails to deploy with the following error:
The problem is this code:
And the reason this happens is that when deploying models to Azure OpenAI you are can only be doing one operation on the parent (Azure OpenAI resource) at a given time, meaning that the Bicep generated will be unable to deploy (here's a sample Bicep):
Instead, we need to generate Bicep that looks like this:
There are two important things to note in this Bicep change:
batchSize(1)
to instruct the resource provider to only deploy change at a time from the loopThe only workaround I can find for this is to use two separate Azure OpenAI resources (or as many resources as you need models deployed).
Note: This is most likely a limitation in Azure.Provisioning, but I'm raising it here for visibility too.
The text was updated successfully, but these errors were encountered: