Deploy an Azure Web App

When I’m adding a step “Deploy an Azure Web App” and selecting my account and Web App it is throwing below error. I’m using App Service Environment in Azure for App Service.

Any help is appreciated.

Error what I’m getting is :

Octopus v4.1.3

Requested value ‘Isolated’ was not found.
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at Microsoft.WindowsAzure.Management.WebSites.WebSpaceOperationsExtensions.ListWebSites(IWebSpaceOperations operations, String webSpaceName, WebSiteListParameters parameters)
at Octopus.Server.Web.Api.Actions.AzureWebSitesListAction.<>c__DisplayClass6_0.b__0(WebSpace webSpace)
at System.Linq.Enumerable.SelectManyIterator
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Octopus.Server.Web.Api.Actions.AzureWebSitesListAction.GetSites(AzureAccount certificateAccount) at Octopus.Server.Web.Api.Actions.AzureWebSitesListAction.ExecuteRegistered() at Octopus.Server.Web.Infrastructure.Api.Responder1.Respond(TDescriptor options, NancyContext context)
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at Octopus.Server.Web.Infrastructure.OctopusNancyModule.<>c__DisplayClass14_0.<get_Routes>b__1(Object x)
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)

Thanks for getting in touch! I’m sorry to hear you’re seeing issues deploying to your web apps within an App Service Environment.

In this case, you may be encountering an issue similar to one we have seen in this Github issue. While we currently don’t have a fix for it, a workaround could be to use a Service Principal instead of management certificates here.

If possible, another workaround may be to specify the resource group and web app manually.

I’m interested to know if this has helped. Please feel free to keep in touch if you have any further questions.

Kind Regards,