Continuous Learning on Azure(5): Azure Web App vs Cloud Services

The question of the week is. When do you use Windows Azure Websites as your web platform and when do you use Cloud Services. These two platforms provide similar functionality in that you can deploy your ASP.NET or other IIS based web application projects to either of these platforms. There are some general cases of when to use one over the other and some specific differences that may help in making that decision. In this post I am going to go through these differences and attempt to give some guidance on what to use when.

When to use Websites

You Are Just Starting – Compared to Cloud Services, Websites may not be as flexible but it is definitely easier. You can build your website using Visual Studio, WebMatrix, or any other IDE of your choice without the need for an SDK or any other additional software.
You can deploy to Windows Azure Websites using WebDeploy, FTP, or even DropBox. You can sync your site code straight from GitHub, BitBucket, Codeplex, or TFS Online. It is incredibly easy and require little to know buy-in to Windows Azure if you want to create an IIS website.

Continue reading “Continuous Learning on Azure(5): Azure Web App vs Cloud Services”

Continuous Learning on Azure(4): How to deploy Cloud Service to Azure in China

Cloud Service(云服务)是Microsoft azure上最基本的service之一,了解详情请访问Get Started 页面。该文详细介绍了什么是云服务, 并且提供了DotNET版示例代码,以及如何运行(本地)和发布到azure。详细步骤本文不再重复。

那么问题是什么呢?这篇文章的部署部分针对的是微软全球azure,也成为WW Azure。而在中国,azure有一份独立的部署,专门针对中国市场,我们叫Azure in China,也叫Mooncake。WW azure和Mooncake是两个独立的平台。两个平台是基于同一份源代码(当然Mooncake的版本通常要落后于WW azure很多),但却是完全不相干的两个平台,数据、运营、支持都是分开的。 Continue reading “Continuous Learning on Azure(4): How to deploy Cloud Service to Azure in China”

Run IIS Express on Port 443 Using SSL and Wildcard Subdomains

Copy from

In this post I tackle running a website using wildcard subdomains over HTTPS and SSL all using just IISExpress.

If you have a multi-tenancy app, or rather an application that uses a wildcard subdomain to identify a user or dynamic subsite, then you may have run into trouble trying to test the subdomain functionality locally. The problem is compounded when you also want to ensure your site is served using HTTPS and SSL.

We’ll start basic and then move on to the more complex scenarios.

Important. Open Visual Studio in Adminstrator Mode.

Continue reading “Run IIS Express on Port 443 Using SSL and Wildcard Subdomains”

Continuous Learning on Azure(3): Endpoints for Azure in China Applications

Use the following table to guide you when mapping public Windows Azure and SQL Database endpoints to China specific endpoints.

Service Type Global Service URI China Service URI
Windows Azure – General * *.ch *
Windows Azure Compute * *
Windows Azure Storage *






Windows Azure Service Management
SQL Database * *
Windows Azure Management Portal
SQL Azure Database Management API

See About the SQL Azure Database Management API
Service Bus * *
SQL Database Import/Export service mapping endpoints
  1. China East:
  1. China North:


Continuous Learning on Azure(2): How to Create and Deploy a Cloud Service?

The Azure classic portal provides two ways for you to create and deploy a cloud service: Quick Create and Custom Create.

This topic explains how to use the Quick Create method to create a new cloud service and then use Upload to upload and deploy a cloud service package in Azure. When you use this method, the Azure classic portal makes available convenient links for completing all requirements as you go. If you’re ready to deploy your cloud service when you create it, you can do both at the same time using Custom Create.


If you plan to publish your cloud service from Visual Studio Team Services (VSTS), use Quick Create, and then set up VSTS publishing from Quick Start or the dashboard. For more information, see Continuous Delivery to Azure by Using Visual Studio Team Services, or see help for the Quick Start page.

Continue reading “Continuous Learning on Azure(2): How to Create and Deploy a Cloud Service?”

Continuous Learning on Azure(1): What’s azure cloud service?

Is Azure Cloud Services the choice for you? Azure provides different hosting models for running applications. Each one provides a different set of services, so which one you choose depends on exactly what you’re trying to do.

Compute Options Audience
App Service Scalable Web Apps, Mobile Apps, API Apps, and Logic Apps for any device
Cloud Services Highly available, scalable n-tier cloud apps with more control of the OS
Virtual Machines Customized Windows and Linux VMs with complete control of the OS

Continue reading “Continuous Learning on Azure(1): What’s azure cloud service?”

Continuous Learning on Python (4): Global 详解




不同的程语言有不同的作用域, Python作用域分4级,Built-in, Global, Enclosing和Local,如下图所示。


Continue reading “Continuous Learning on Python (4): Global 详解”

Git loose object(stored in .git/objects/xxxx) is corrupt 异常


error: object file .git/objects/31/65329bb680e30595f242b7c4d8406ca63eeab0 is empty
fatal: loose object 3165329bb680e30595f242b7c4d8406ca63eeab0 (stored in .git/objects/31/65329bb680e30595f242b7c4d8406ca63eeab0) is corrupt

通常是因为之前git commit出现错误,比如命令不正确(git commit -a "Some messeage",git commit "Some message"等),导致出现空的commit。再执行git命令时就可能出现上述错误。

Continue reading “Git loose object(stored in .git/objects/xxxx) is corrupt 异常”