最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Azure Classic Pipeline Error: Input required: ConnectedServiceName - Stack Overflow

programmeradmin7浏览0评论

I'm trying to create a classic pipeline and I'm getting the following error:

Error: Input required: ConnectedServiceName

When I view the YAML, I can see ConnectedServiceName is being defined as a variable but it's being used to set the azureSubscription parameter and I'm not seeing any way to directly edit the YAML anyway to try to add that parameter directly.

How do I fix this issue?

Thanks!

I'm trying to create a classic pipeline and I'm getting the following error:

Error: Input required: ConnectedServiceName

When I view the YAML, I can see ConnectedServiceName is being defined as a variable but it's being used to set the azureSubscription parameter and I'm not seeing any way to directly edit the YAML anyway to try to add that parameter directly.

How do I fix this issue?

Thanks!

Share Improve this question asked Mar 21 at 19:53 TheIronCheekTheIronCheek 1,1492 gold badges24 silver badges50 bronze badges 5
  • change $(parameters.ConnectedServiceName) to $(ConnectedServiceName) – wenbo - Finding Job Commented Mar 24 at 9:11
  • @wenbo - How? That yaml is auto-generated and I can only copy what's there to the clipboard. – TheIronCheek Commented Mar 24 at 13:35
  • sry, misunderstand your question..@ThelronCheek – wenbo - Finding Job Commented Mar 25 at 1:46
  • @TheIronCheek were you able to resolve this problem? I'm experiencing the same issue and just can't figure out how to resolve it? – Omomaxi Commented Apr 8 at 1:24
  • @Omomaxi - See my posted answer. I was able to solve the issue by using version 3 of the app service deploy task. Hopefully that works for you too. – TheIronCheek Commented 2 days ago
Add a comment  | 

4 Answers 4

Reset to default 0

You can not edit this yaml because it should be used for migration to yaml pipelines only. It is read-only here. You should add a service connection to your Azure resources (Manage service connections, Connect to Azure with an Azure Resource Manager service connection), and then your connection will be available in the drop-down.

It appears that you have defined a variable called $(ConnectedServiceName) but you are referring to it as $(Parameters.ConnectedServiceName) in the task’s user interface.

As long as $(ConnectedServiceName) contains a valid name or unique identifier for an Azure ServiceConnection, replace $(Parameters.ConnectedServiceName) with $(ConnectedServiceName)

According to your screenshot, you have defined variables ConnectedServiceName, WebAppKind and WebAppName in your classic release pipeline.

But you are trying to use them as parameters in your Azure App Service deploy task. Currently, Runtime parameters are only supported in YAML pipeline and Process parameters are only available in classic build pipelines.

To resolve the issue, refer to them as variables in your task.

I haven't figured out why, but downgrading the Task version from 5 down to 3 gets rid of the error for me.

发布评论

评论列表(0)

  1. 暂无评论