I am currently working on an automated deployment process for a hosted service for Windows Azure. Creating files .cspkgand .cscfgworking fine using a call msbuild. Now I am writing a small .NET console application that should deploy these files to Azure using the REST management API.
No problem with the API itself. I can send a request to the API using one of my management certificates. I upload a file .cspkgto Azure BLOB Storage and then try to call Upgrade Deployment. But every time I try, I get a "400 Bad Request" response stating that a certificate with xy fingerprint was not found. This certificate is the SSL certificate (and not the management certificate) that I use for HTTPS for my own domain (DNS CNAME).
And now everything becomes interesting:
When I deploy files using the Publish command in my Visual Studio, there is no problem. (I compared the .cscfg/ files .cspkgfrom VS and from my output msbuild: except for a few GUIDs, they are identical). Also, using the Silverlight Management thingy in my browser, I can even upload my generated files that could not be downloaded using the API.
When I get a list of all certificates with a call List Certificates, a certificate that is said to be missing seems to exist. I can also get its data using a call Get Certificate.
So why does Azure keep telling me that the certificate was not found when using the call Upgrade Deployment? Has anyone experienced something similar? Somebody knowsfor me? Thanks in advance.
P.S.: , Azure, API:
<Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>BadRequest</Code>
<Message>The certitficate with thumbprint 7b232c4a2d6e3deadbeef120d5dbc1fe8049fbea was not found.</Message>
</Error>
P.P.S.: , certitficate, certificate.