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.

AzureRM Web App Deployment fails with `Error: Set parameters file not found`

See original GitHub issue

One of the most frustrating things with using these tasks is the code base changing underneath and something succeeding just fine months ago now starts failing.

A release management environment step using the AzureRM Web App Deployment was succeeding as of July 27 2016 is now failing two months later in a release to that environment Sep 29 2016. The release definition has not changed in that time period. /sigh

The SetParameters File option is blank and it’s states this is optional.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:27

github_iconTop GitHub Comments

2reactions
Ajay-MScommented, Sep 30, 2016

@rglos @JoeBrockhaus @mimicx10

Can you confirm if you are still facing this issue ? can you also confirm if your task being got updated to version 2.0.2 or not ?

1reaction
JoeBrockhauscommented, Oct 3, 2016

Hosted releases for us are now up to 2.0.2. Private build server still using 2.0.1

If you’re still having this problem, here’s a little PS to make the necessary change using VSTS.

  • Use the PowerShell++ Task to run this as Inline - the ‘PowerShell’ Task has an arbitrarily tiny maxlength for what you can inline…
$path = "C:\apps\buildagent\tasks\AzureRMWebAppDeployment\2.0.1\"
if (Test-Path $path) {
    $jsFilePath = $path + "azurermwebappdeployment.js"
    $tsFilePath = $path + "azurermwebappdeployment.ts"

    $oldLine = "*(!tl.filePathSupplied('SetParametersFile'))*"
    $newLine = @"
        // https://github.com/Microsoft/vsts-tasks/issues/2719
        // if(!tl.filePathSupplied('SetParametersFile')) {
        if ((!tl.filePathSupplied('SetParametersFile')) || setParametersFile == tl.getVariable('System.DefaultWorkingDirectory')) {
"@

    $jsContent = Get-Content $jsFilePath
    $jsContent | % { If ($_.ReadCount -eq 211 -and $_ -like $oldLine) {$newLine} Else {$_} } | Set-Content -Path $jsFilePath

    $tsContent = Get-Content $tsFilePath
    $tsContent | % { If ($_.ReadCount -eq 226 -and $_ -like $oldLine) {$newLine} Else {$_} } | Set-Content -Path $tsFilePath
}
else { "C:\apps\buildagent\tasks\AzureRMWebAppDeployment\2.0.1\ does not exist" }
Read more comments on GitHub >

github_iconTop Results From Across the Web

AzureRM Web App Deployment fails with `Error: Set ... - GitHub
AzureRM Web App Deployment fails with Error: Set parameters file not found # ... The release definition has not changed in that time...
Read more >
Troubleshoot common Azure deployment errors
Error code Mitigation More inform... AccountNameInvalid Follow naming guidelines for storage accounts. Resolve erro... AccountPropertyCannotBeSet Check available storage account properties. storageAcco... AnotherOperationInProgress Wait for concurrent operation...
Read more >
Error: No package found with specified pattern: D:\a\r1\a***.zip
In my case I was deploying to the Azure App Service and I had to change the section packageForLinux to ...
Read more >
azurerm_app_service | Resources | hashicorp/azurerm
When type is set to SystemAssigned , The assigned principal_id and tenant_id can be retrieved after the App Service has been created. More...
Read more >
Configuring CI/CD Pipelines as Code with YAML in Azure ...
Found the solution, it was the Networking configuration for SQL Server: you need to go to created SQL Server->Security->Networking, enable " ...
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