Publish to Azure Cloud Services (Extended Support) via VS

Steven Brown 6 Reputation points
2021-09-07T17:26:20.073+00:00

I am in the middle of migrating from a Cloud Service Classic resource, I have followed all the online documentation, the publish works fine if I create a cspkg file, upload it via the Azure front end along with the csdef and cscfg files. This works no problem.

I create a new Cloud Service Extended Support project to host the publish profile. This when I get the error, it builds fine, goes through pre-reqs fine, uploads to storage, checks key-vault for mentioned cert, then I get the following.

Code: InvalidTemplate
Message: Deployment template validation failed: 'The template parameters 'publicIPName' in the parameters file are not valid; they are not present in the original template and can therefore not be provided at deployment time. The only supported parameters for this template are 'cloudServiceName, location, deploymentLabel, packageSasUri, configurationSasUri, roles, secrets, wadPublicConfig_testapp.Mvc, wadPrivateConfig_testapp.Mvc, upgradeMode'. Please see https://aka.ms/arm-deploy/#parameter-file for usage details.'.

I've hunted online and I can't find much, does anyone have any ideas or come across a similar problem?

There is an option in the properties of the project "ARM Deployment: True" I was hoping to change to False to test but this is greyed out and I have no way of changing it.

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
704 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,092 questions
{count} votes

2 answers

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,217 Reputation points Microsoft Employee
    2021-09-14T01:36:49.197+00:00

    @Steven Brown Apologies for the delay.

    Team confirmed that we had a similar bug (Publish Cloud Service (extended support) with Fixed IP - Visual Studio Feedback) and it was fixed in the latest version (16.11) of VS 2019. Can you please check your VS version? If you are using older version, please try with the latest version and let me know if you are still seeing issues.

    0 comments No comments

  2. Mordechai Yaakobi 1 Reputation point
    2021-09-15T08:46:55.98+00:00

    It happens also in my environmet with a little bit different scenario.
    There is original azure deployment that was created with original template parameter file.
    I needed to change some logic at the template file and hence I needed to add new parameters to the parameters file.
    But when I tried to redploy it I encountered the same error.
    I follow your siuggestion but with no success.
    I need this ASAP.

    Can you please assist ?
    P.S - this procedure is done via the Azure command line

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.