Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3441598
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:34:20+00:00 2026-05-18T08:34:20+00:00

I am using Azure Management Cmdlets version 1.0. I run the following PowerShell script

  • 0

I am using Azure Management Cmdlets version 1.0.

I run the following PowerShell script

New-Deployment -subscriptionId bef7722c-1a13-4c9f-b7f6-fafc0a958b35 -certificate D:\pcg\T.cer -serviceName 1ClickDeploymentTest -slot Production -package D:\pcg

\CloudTodorTest.cspkg -configuration D:\pcg\ServiceConfiguration.cscfg -label lbl1 -StorageServiceName TodorTestStorage

where the D:\pcg\T.cert is the certificate which is already uploaded to Azure too.
The package and the configuration are the local copies of the application that is already running on Azure.
I’ve tried to deploy them manually and they are working.

After executing this script I receive the following error message:

PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> D:\PSScripts\dt2.ps1
New-Deployment : The remote server returned an unexpected response: (400) Bad Request.
At D:\PSScripts\dt2.ps1:1 char:15
+ New-Deployment <<<< -subscriptionId bef7722c-1a13-4c9f-b7f6-fafc0a958b35 -certificate D:\pcg\T.cer -serviceName 1Cli
ckDeploymentTest -slot Staging -package D:\pcg\CloudTodorTest.cspkg -configuration D:\pcg\ServiceConfiguration.cscfg -l
abel lbl1 -StorageServiceName TodorTestStorage | Get-OperationStatus -WaitToComplete
+ CategoryInfo : CloseError: (:) [New-Deployment], ProtocolException
+ FullyQualifiedErrorId : Microsoft.Samples.AzureManagementTools.PowerShell.HostedServices.NewDeploymentCommand

I can execute other cmdlets. For example to check the current deployments.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:34:21+00:00Added an answer on May 18, 2026 at 8:34 am

    Check the case of the service name and deployment slot and other parameters you’re specifying – I seem to recall that the service name has to be all lower case because it is used in DNS.

    The Azure API is very finicky about case sensitivity of some of the arguments, and if you get it wrong you’ll get a Bad Request response with no further info.

    If the problem were with the subscription id or the certificate, you’d get a Not Authorized response. I think you’ve gotten past authorization and are failing because something in the request itself is invalid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Azure AppFabric for caching with a brand new repository. My repository looks
i am using windows azure and i hosted my application on windows azure management
is it absolute insanity to start hosting new intranet web apps in Azure using
I've ran into an interesting problem using the Azure Service Management API. Specifically, when
I'm using Azure Diagnostics Trace to log messages. The configuration is to transfer the
I already have my azure web role running in cloud using azure sdk 1.6.
I'm trying to add a region using Azure Datacache object but I'm getting such
We are using windows azure table for logging errors within our applications hosted inside
I made a sample application using windows azure dedicated caching ( preview ). The
I am building a server back-end for a mobile social network using Windows Azure.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.