How to use the ARM (and Bicep) sourcecontrols feature with Azure Isolated Functions?

siegfried heintze 0 Reputation points
2024-05-23T02:13:15.2033333+00:00

In Fall of 2023 I was able to successfully deploy in-process azure functions using the sourcecontrol feature.

Now I am trying to deploy a .NET 6 isolated azure function using the sourcecontrol feature and I'm getting this error:

error "This server farm 'jqo0osm3qxqr-func-plan' must contain only Function Apps.

See https://github.com/siegfried01/SimplerServiceBusSendReceiveDemo/blob/master/infrastructure/deploy-protectServiceBusWebAppWithPrivateEndpoint.bicep#L498

While I have a work-around using the azure cli (see https://github.com/siegfried01/SimplerServiceBusSendReceiveDemo/blob/master/infrastructure/deploy-protectServiceBusWebAppWithPrivateEndpoint.bicep#L112 thru https://github.com/siegfried01/SimplerServiceBusSendReceiveDemo/blob/master/infrastructure/deploy-protectServiceBusWebAppWithPrivateEndpoint.bicep#L129), the source control feature is much more elegant!

Please help me deploy my .NET 6 Isolated function using the source control feature.

I plan to upgrading this to .NET 8 Isolated soon.

Thank you

Siegfried

P.S. I posted a similar (but not redundant) query here: https://learn.microsoft.com/en-us/answers/questions/1665441/how-to-deploy-c-azure-minimal-function-app-using-b . The issue with this 1665441 post is primarily concerning the fact that when I exported the ARM template of an azure from the portal.azure.com, the bicep would not compile. Since then I got lucky and found some bicep code I had successfully deployed based on an earlier export of an ARM template on from the portal.azure.com (and this code compiled). I am still interested in help with both of these posts.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,591 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.