azure-cloud-services

How does “simultaneous” mode work when changing Azure role instance count only?

五迷三道 提交于 2019-12-24 14:43:08
问题 I'm staring into description of Change Deployment Configuration Azure Management Service operation. There's Mode element which can be set to Simultaneous . Suppose I only want to change instance count for a specific role. AFAIK the only way to do that is to obtain the current deployment configuration (using Get Deployment operation), locate the role in the obtained XML, locate the attribute responsible for instance count, change that attribute and then use the altered configuration in Change

Use Subpath for two web applications hosted in one Web Role?

你说的曾经没有我的故事 提交于 2019-12-24 12:37:12
问题 We have two web applications in one Cloud Service, since we want to use the same endpoint for both, we prefer to host these two web applications in one Web Role. This blog figured out it's possible, as long as we add a new site node under Sites. Our requirement is that we host Web2 in such url: http://appname.cloudapp.net/web2, so if customer click http://appname.cloudapp.net, it will show Web1, and for http://appname.cloudapp.net/web2 it will show web2, use something like subpath to

Azure Continuous Deployment - Setup Publishing with VSO

拟墨画扇 提交于 2019-12-24 11:59:53
问题 We've been able to setup Azure Continuous Deployment with some VSO Team Projects, but not others. Any idea why we are getting this error in the Azure Management Portal? Perhaps it depends on the age of the team project. Unable to find AzureContinuousDeployment.11.xaml in TeamProject see [Link] We've followed the directions suggested: Integrating Azure Continuous Integration with VSO Add Build Template AzureContinuousDeployment.11.xaml to $/[TeamProject]/BuildProcessTemplate Created Build

Azure Cloud Service Web Role web pages do not load

二次信任 提交于 2019-12-24 05:09:08
问题 This is most likely going to be a very long post to try to fully explain how my Azure Cloud Service is deployed and what I have already tried to tackle this issue, so apologies and thanks in advance. Framwork: 4.5.1 Azure SDK: 2.5 Visual Studio: 2013 Update 4 The Problem: Upon publishing my Azure Cloud Service when I try to load a web page the browser will load continuously, never displaying the page or any error (no web error code or .Net error). This is the same behaviour whether I try to

Your credentials did not work Azure VM

故事扮演 提交于 2019-12-24 04:07:32
问题 I created a VM in windows Azure. At the time of creation I gave proper Username and Password, but when I try to connect that from Remote desktop I am getting following error "Your credentials did not work" I gave correct username and password. Do I need to do any further configurations/ can I reset my username or password ? If some faced/solved this Issue please share. Thanks. 回答1: I solved it. using \ before the name. so that it wont take default domain 回答2: If you have used the Management

Get Azure premium storage account properties

橙三吉。 提交于 2019-12-24 01:46:31
问题 I am trying to get premium storage account (classic) properties using next method: public ServiceProperties GetStorageAccountProperties(string accountName, string accountKey) { var connectionString = string.Format("DefaultEndpointsProtocol=http;AccountName={0};AccountKey={1};", accountName, accountKey); var account = CloudStorageAccount.Parse(connectionString); CloudBlobClient bloblClient = account.CreateCloudBlobClient(); return bloblClient.GetServiceProperties(); } But, it throws a

How to set separate port for local and cloud in Azure?

半世苍凉 提交于 2019-12-23 22:57:31
问题 For development purpose, we want to specify the port of EndPoint only for local, and the real used port for cloud deployment, any way to get this work? 回答1: Since the endpoints are defined in csdef file which goes into the package, one possible solution would be to create two separate cloud projects - one for local and other for cloud and define ports which needs to be opened according to the environment. In fact, this is what we did in one of our projects. Other idea would be to apply XDT

Azure classic cloud service cannot RDP

删除回忆录丶 提交于 2019-12-23 04:57:19
问题 Using "package" option in VS2017, packaged "classic" cloud service with options set for remote desktop. Created cert within dialog and all went well, uploaded service to Azure; unable to enable RDP however. Cert is not visible within certificates blade nor in the "enable remote desktop" blade, and cannot (obviously) RDP. Also tried enabling per documentation (here) using Encryption Certificate for Extensions but cert is not listed (in fact, nothing listed). Just need to get to a log file to

How to upload or update the cloud service certificate with Azure REST ARM API

瘦欲@ 提交于 2019-12-23 04:33:16
问题 I have to upload a cloud service cert. PUT or POST on this URI is not working subscriptions/%sub_Id%/resourceGroups/%rg_Name%/providers/Microsoft.ClassicCompute/domainNames/%cloudService_Name%/servicecertificates I am getting "InvalidRequestUri", Please help me . 回答1: you can use something like this: "path": "subscriptions/%sub_Id%/resourceGroups/%rg_Name%/providers/Microsoft.ClassicCompute/domainNames/%cloudService_Name%/servicecertificates/SHA1-%THUMBPRINT%", "body": { "thumbprintAlgorithm"

Setting url of Django Imagefield model attribute via custom storage written for Azure Cloud Storage

Deadly 提交于 2019-12-23 02:21:12
问题 I have a Django web app where users upload images and others view them. I have a custom storage class in this app to upload image files to Azure Cloud Storage. Currently images are being uploaded successfully, but their urls are not being set. Thus, the following code in my template yields a broken image: {% if entry.image_file %} <img src="{{ entry.image_file.url }}"></img><br> {% endif %} Can you point out what my custom storage class is missing? Here's how it appears in my models.py