使用泊坞窗图像创建功能应用程序时出错 [英] error creating a function app with a docker image

查看:67
本文介绍了使用泊坞窗图像创建功能应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注本教程:docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-azure-function

I'm following this tutorial: docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-azure-function

I设置一个dockerhub仓库使用,填写所有空白,然后点击申请。

I'd set up a dockerhub repo to use, filled in all the blanks, and clicked apply.

验证回来时出现以下错误。 *现在*但是,即使在我的旧警报日志中,我也无法在仪表板中找到该故障。 :( 

the validation came back with error below. *now* however, i can't find that failure in the dashboard even among my old alerts log. :( 

{
    "id": "/subscriptions/<SubscriptionId>/resourceGroups/<ResourceGroup>/providers/Microsoft.Resources/deployments/Microsoft.FunctionApp491c7939-a4df/operations/65B109711EC4BC98",
    "operationId": "65B109711EC4BC98",
    "properties": {
        "provisioningOperation": "Create",
        "provisioningState": "Failed",
        "timestamp": "2019-04-10T20:03:54.5441789Z",
        "duration": "PT1.7203718S",
        "trackingId": "b327e486-b65e-4e72-98f0-fb378c027c69",
        "serviceRequestId": "cac3a83a-eb5e-44a5-bc9f-c65d7045ce28",
        "statusCode": "Conflict",
        "statusMessage": {
            "Code": "Conflict",
            "Message": "Parameter with name FUNCTIONS_EXTENSION_VERSION already exists.",
            "Target": null,
            "Details": [{
                "Message": "Parameter with name FUNCTIONS_EXTENSION_VERSION already exists."
            }, {
                "Code": "Conflict"
            }, {
                "ErrorEntity": {
                    "ExtendedCode": "01013",
                    "MessageTemplate": "Parameter with name {0} already exists.",
                    "Parameters": ["FUNCTIONS_EXTENSION_VERSION"],
                    "Code": "Conflict",
                    "Message": "Parameter with name FUNCTIONS_EXTENSION_VERSION already exists."
                }
            }],
            "Innererror": null
        },
        "targetResource": {
            "id": "/subscriptions/<SubscriptionId>/resourceGroups/<ResourceGroup>/providers/Microsoft.Web/sites/<ResourceGroup>-poc",
            "resourceType": "Microsoft.Web/sites",
            "resourceName": "<ResourceGroup>-poc"
        },
        "request": {
            "content": {
                "kind": "functionapp",
                "location": "Central US",
                "properties": {
                    "siteConfig": {
                        "appSettings": [{
                            "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
                            "value": "false"
                        }, {
                            "name": "FUNCTIONS_EXTENSION_VERSION",
                            "value": "~2"
                        }, {
                            "name": "DOCKER_REGISTRY_SERVER_URL",
                            "value": "https://index.docker.io"
                        }, {
                            "name": "AzureWebJobsStorage",
                            "value": "DefaultEndpointsProtocol=https;AccountName=xxxx;AccountKey=xxxxxxxxxxxxxxxx"
                        }, {
                            "name": "FUNCTIONS_EXTENSION_VERSION",
                            "value": "~2"
                        }, {
                            "name": "WEBSITE_NODE_DEFAULT_VERSION",
                            "value": "10.14.1"
                        }, {
                            "name": "APPINSIGHTS_INSTRUMENTATIONKEY",
                            "value": "edxxxxbd-xxxx-4349-xxxx-510dxxxxbf9c"
                        }],
                        "appCommandLine": "",
                        "linuxFxVersion": "DOCKER|evanchooly/<ResourceGroup>:latest"
                    },
                    "name": "<ResourceGroup>-poc",
                    "clientAffinityEnabled": false,
                    "serverFarmId": "/subscriptions/<SubscriptionId>/resourcegroups/<ResourceGroup>/providers/Microsoft.Web/serverfarms/ServicePlan01d22ff6-83b7",
                    "hostingEnvironment": ""
                }
            }
        },
        "response": {
            "content": {
                "Code": "Conflict",
                "Message": "Parameter with name FUNCTIONS_EXTENSION_VERSION already exists.",
                "Target": null,
                "Details": [{
                    "Message": "Parameter with name FUNCTIONS_EXTENSION_VERSION already exists."
                }, {
                    "Code": "Conflict"
                }, {
                    "ErrorEntity": {
                        "ExtendedCode": "01013",
                        "MessageTemplate": "Parameter with name {0} already exists.",
                        "Parameters": ["FUNCTIONS_EXTENSION_VERSION"],
                        "Code": "Conflict",
                        "Message": "Parameter with name FUNCTIONS_EXTENSION_VERSION already exists."
                    }
                }],
                "Innererror": null
            }
        }
    }
}

推荐答案

Hello RedHat,

Hello RedHat,

感谢您发布问题。我想通知您,我已从您的帖子中删除了敏感信息,并要求您不要在任何公共
论坛中发布任何类型的敏感信息,如密钥,密码,订阅ID等,以确保安全您的环境的目的。

Thank you for posting your question. I would like to inform you that I have removed the sensitive information from your post and also requesting you not to post any kind of sensitive information such as key,password, subscription Id etc. in any of the public forums for security purpose of your environments.

您共享的文档链接是从门户创建一个简单的功能应用程序。如果您尝试使用自定义泊坞窗图像创建功能应用程序

这里是相同的文档

The documentation link that you have shared is to create a simple function app from portal. If you are trying to create a function app using custom docker image here is the documentation for same.

还有你的错误信息已分享说"具有名称FUNCTIONS_EXTENSION_VERSION的参数已存在。"如果您在帖子中看到siteConfig部分,则会有两个
" FUNCTIONS_EXTENSION_VERSION&qu​​ot; 的实例。如果您使用ARM模板创建功能应用程序,请从siteConfig部分删除
" FUNCTIONS_EXTENSION_VERSION&qu​​ot; 的一个实例。

Also the error message that you have shared says that "Parameter with name FUNCTIONS_EXTENSION_VERSION already exists." and if you see the siteConfig section in your post it has two instance of "FUNCTIONS_EXTENSION_VERSION". If you are creating a Function App using ARM template please remove one instance of "FUNCTIONS_EXTENSION_VERSION" from the siteConfig section.


这篇关于使用泊坞窗图像创建功能应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆