3

I'm ripping my hair trying to publish a .Net app to Azure WebApps using Jenkins. Following this guide, I get stuck with the following error:

P:\Scripts\Azure\PublishProfiles\my.PublishSettings(1,1): error MSB4068: The element <publishData> is unrecognized, or not supported in this context. [c:\jenkins-slave\workspace\msbuildtest\my\my.csproj]

I have downloaded my.PublishSettings from Azure and it looks like

<publishData>
    <publishProfile
            profileName="my - Web Deploy"
            publishMethod="MSDeploy"
            publishUrl="my.scm.azurewebsites.net:443"
            msdeploySite="my"
            userName="$my"
            userPWD="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
            destinationAppUrl="http://my.azurewebsites.net"
            SQLServerDBConnectionString=""
            mySQLDBConnectionString=""
            hostingProviderForumLink=""
            controlPanelLink="http://windows.azure.com"
            webSystem="WebSites">
        <databases />
    </publishProfile>
    <publishProfile
            profileName="my - FTP"
            publishMethod="FTP"
            publishUrl="ftp://waws-prod-am2-045.ftp.azurewebsites.windows.net/site/wwwroot"
            ftpPassiveMode="True"
            userName="my\$my"
            userPWD="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
            destinationAppUrl="http://my.azurewebsites.net"
            SQLServerDBConnectionString=""
            mySQLDBConnectionString=""
            hostingProviderForumLink=""
            controlPanelLink="http://windows.azure.com"
            webSystem="WebSites">
        <databases />
    </publishProfile>
</publishData>

What am I doing wrong and how can I fix it?

Nikolas Charalambidis
  • 40,893
  • 16
  • 117
  • 183
Johan
  • 5,003
  • 3
  • 36
  • 50

1 Answers1

0

Sorry this may not help you now that you have moved to AWS but there is a new plugin for deploying to Azure Web App: https://aka.ms/azapp-service.

PC Chan
  • 1
  • 1
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Sneha Oct 20 '17 at 04:28