English 中文(简体)
将虚拟网络指派到 Azure 函数时出错
原标题:Error when assigning Virtual Network to the Azure Function
  • 时间:2024-06-06 16:53:52
  •  标签:
  • azure
  • vnet
I am attempting to assign a VNET to the Azure Function on Flex Consumption plan. I am performing the following steps Login to Azure Portal and open function resource Go to Networking Under Virtual Network Details click on "not configured" Click "Add virtual network integration" Select my virtual network resource, and subnet of default (10.0.0.0 - 10.0.0.255) After about 60s I get a notification "Connecting site to virtual network: Failed to connect to the virtual network: An error has occurred." I don t have support plan, but when I tried to open ticket I performed the diagnostics and it said that my VNET is good and I should be able to add it. I expected the VNET to be assigned. The error message does not provide enough information for troubleshooting.
问题回答
I had a similar experience and got around this by registering my subscription to Microsoft.App and assigning the vnet delegation with Microsoft.App/environments
I had similar issues without clear error messages. After filing a support ticket I was pointed to the following documentation: https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan#considerations Make sure your Subnet delegation is set to: Microsoft.App/environments and that the Microsoft.App resource provider is registered for your subscription. Azure Functions Flex Consumption plan is part of Project Legion which brings Azure Container Apps and Azure Functions closer together, hence the requirement of Microsoft.App/environments instead of Microsoft.Website




相关问题
Windows Azure WorkerRole response

I am working on an Azure demo to run Powershell in a worker role. In my web role I add the name of the Powershell script which is to be run to a CloudQueue object. I can print the script output to ...

Windows Azure WebRole stuck in a deployment loop

I ve been struggling with this one for a couple of days now. My current Windows Azure WebRole is stuck in a loop where the status keeps changing between Initializing, Busy, Stopping and Stopped. It ...

Getting a token for Windows Azure

We are looking at Windows Azure, but getting a token appears to be hard now, at least that s what I m seeing in web searches. Anyone tried it or know how to accelerate that process? Any idea how long ...

Developing Azure .Net 4.0 Applications

Presently .Net 4.0 is not supported on Azure. This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.com I d ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to Unit Testing .NET 3.5 projects using MStest in VS2010 (but I ve put this in a seperate question because it s kind of unrelated): Is ...

热门标签