question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure Functions Deploy Task Fails if setting contains a comma

See original GitHub issue

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: BUG

Enter Task Name: Azure Functions Deploy v.1

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

  • Server - Azure Pipelines or TFS on-premises?

    • If using TFS on-premises, provide the version:

    • If using Azure Pipelines, provide the account name, team project name, build definition name/build number: dfe-ssp, S122-Assessment-Service, ReleaseId=1020, EnvironmentId=2590

  • Agent - Hosted or Private:

    • If using Hosted agent, provide agent queue name: Queue ID: 323

    • If using private agent, provide the OS of the machine running the agent and the agent version:

Issue Description

When deploying Azure Functions and I suspect but havent tested App Services, if a setting values string contains a comma the the parameters are parsed incorrectly. See around the user.

2020-04-30T07:35:30.8984214Z Trying to update App Service Application settings. Data: {"OperationalDb":"Server=tcp:***;Database=***;User","":"ID=***;Password=***;Trusted_Connection=False;Encrypt=True;","AuditServiceBus":"***","AuditTopic":"audit-topic","AuditSubscriptionName":"audit-subscription"}
2020-04-30T07:35:31.1995137Z ##[error]Error: Failed to update App service 'xxxx' application settings. Error: BadRequest - Parameter name cannot be empty. (CODE: 400)

Task logs

[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

[Insert error from the logs here for a quick overview]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
eaarora-mscommented, Apr 30, 2020

Please use Azure App Service Settings for updating app/configuration settings for all the app services. We have added JSON parsing which handles all the special characters.

1reaction
absognetycommented, Feb 4, 2021

Thank you @manikantabandaru it worked for me, although documentation has to be updated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot pipeline runs - Azure DevOps
Learn how to troubleshoot pipeline runs in Azure Pipelines and Team Foundation Server.
Read more >
Troubleshoot issues when using Azure Functions trigger ...
Azure Function fails to start with "PartitionKey must be supplied for this operation." This error means that you are currently using a ...
Read more >
Expressions - Azure Pipelines
Learn about how you can use expressions in Azure Pipelines or Team Foundation Server (TFS).
Read more >
Environment variables and app settings in Azure App Service
In case of the error The specified user does not have a valid profile. during ASP.NET build automation (such as during Git deployment),...
Read more >
Troubleshoot errors with using Azure Policy
The location of the error details depends on what aspect of Azure ... assignment has been configured for an enforcementMode setting of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found