├── .gitignore
├── CNAME
├── LICENSE
├── README.md
├── _config.yml
├── _includes
├── command-argument-commitid.md
├── command-argument-connectionname.md
├── command-argument-extension.md
├── command-argument-jobname.md
├── command-argument-jobtype.md
├── command-argument-key.md
├── command-argument-keyvaluepair.md
├── command-argument-name.md
├── command-argument-options.md
├── command-argument-thumbprint.md
├── command-description-Git.md
├── command-description-GitHub.md
├── command-description-GitHubCredentials.md
├── command-description-GitHubRepository.md
├── command-description-HostName.md
├── command-description-PublishingUsername.md
├── command-description-appsettings.md
├── command-description-connectionstrings.md
├── command-description-defaultdocument.md
├── command-description-detailederrorlogging.md
├── command-description-dotnet.md
├── command-description-force.md
├── command-description-handlermappings.md
├── command-description-hostnames.md
├── command-description-httplogging.md
├── command-description-location.md
├── command-description-metadata.md
├── command-description-name.md
├── command-description-passthru.md
├── command-description-php.md
├── command-description-requesttracing.md
├── command-description-sitewithconfig.md
├── command-description-workers.md
├── command-help-default-blank.md
├── command-help-pipeline-false.md
├── command-help-pipeline-true.md
├── command-help-position-four.md
├── command-help-position-named.md
├── command-help-position-one.md
├── command-help-position-three.md
├── command-help-position-two.md
├── command-help-required-false.md
├── command-help-required-true.md
├── command-help-wildcard-false.md
├── command-help-wildcard-true.md
├── command-option-connectionname.md
├── command-option-details.md
├── command-option-document.md
├── command-option-domain.md
├── command-option-extension.md
├── command-option-git.md
├── command-option-github.md
├── command-option-githubpassword.md
├── command-option-githubrepository.md
├── command-option-githubusername.md
├── command-option-help.md
├── command-option-hostname.md
├── command-option-jobfile.md
├── command-option-jobname.md
├── command-option-jobtype.md
├── command-option-json.md
├── command-option-location.md
├── command-option-max.md
├── command-option-output.md
├── command-option-publishingusername.md
├── command-option-quiet.md
├── command-option-slot.md
├── command-option-subscription.md
├── command-option-verbose.md
├── command-parameter-Git.md
├── command-parameter-GitHub.md
├── command-parameter-GitHubCredentials.md
├── command-parameter-GitHubRepository.md
├── command-parameter-HostName.md
├── command-parameter-PublishingUsername.md
├── command-parameter-appsettings.md
├── command-parameter-connectionstrings.md
├── command-parameter-defaultdocument.md
├── command-parameter-detailederrorlogging.md
├── command-parameter-dotnet.md
├── command-parameter-force.md
├── command-parameter-handlermappings.md
├── command-parameter-hostnames.md
├── command-parameter-httplogging.md
├── command-parameter-location.md
├── command-parameter-metadata.md
├── command-parameter-name.md
├── command-parameter-passthru.md
├── command-parameter-php.md
├── command-parameter-requesttracing.md
├── command-parameter-sitewithconfig.md
├── command-parameter-workers.md
├── html-alert-dynamic-ip-restriction.md
├── html-alert-enable-default-php-extensions.md
├── html-alert-enable-php-extensions.md
├── html-alert-ip-security-docs.md
├── html-alert-kududash-logstream.md
├── html-alert-kudusync-deployment.md
├── html-alert-php-byo-phpini.md
├── html-alert-php-byo-runtime.md
├── html-cli-cross-platform-appsetting.md
├── html-cli-cross-platform-cert.md
├── html-cli-cross-platform-connectionstring.md
├── html-cli-cross-platform-defaultdocument.md
├── html-cli-cross-platform-domain.md
├── html-cli-cross-platform-handler.md
├── html-cli-cross-platform-install.md
├── html-cli-cross-platform-log.md
├── html-cli-cross-platform-scale.md
├── html-cli-cross-platform-setup.md
├── html-cli-cross-platform-site-commands.md
├── html-cli-cross-platform-site-config-commands.md
├── html-cli-cross-platform-site-deployment-commands.md
├── html-cli-cross-platform-site-job-commands.md
├── html-cli-cross-platform-site-location-commands.md
├── html-cli-cross-platform-site-repository-commands.md
├── html-cli-kudusync-commands.md
├── html-cli-powershell-get.md
├── html-cli-powershell-install.md
├── html-cli-powershell-new.md
├── html-cli-powershell-remove.md
├── html-cli-powershell-restart.md
├── html-cli-powershell-set.md
├── html-cli-powershell-setup.md
├── html-cli-powershell-show.md
├── html-cli-powershell-start.md
├── html-cli-powershell-stop.md
├── html-deployment-types.md
├── html-features-service-features.md
├── html-kuduexec-install-php.md
├── html-panel-kudu-install.md
├── html-panel-kuduexec-install.md
├── html-panel-kudusync-install.md
├── html-php-appsettings.md
├── html-php-extensions.md
├── html-php-http-handler-mapping.md
├── html-php-runtimes.md
├── snippet-fun-consoleuser.md
├── snippet-fun-powershelluser.md
└── welcome.md
├── _layouts
└── default.html
├── _posts
├── 01-01-01-Features-Service.md
├── 01-01-02-Environment.md
├── 02-01-01-Deployment.md
├── 02-01-02-Configuration-ASPNET.md
├── 02-01-03-Configuration-Nodejs.md
├── 03-01-01-Language-Guide-ASP.md
├── 03-02-01-Language-Guide-ASPNET.md
├── 03-03-01-Language-Guide-NODEJS.md
├── 03-04-01-Language-Guide-PHP.md
├── 03-05-01-Language-Guide-PYTHON.md
├── 04-01-01-Microsoft-Azure-CLI-Tools-Cross-Platform.md
└── 04-02-01-Microsoft-Azure-CLI-Tools-Powershell.md
├── css
├── bootstrap.min.css
└── site.css
├── fonts
├── glyphicons-halflings-regular.eot
├── glyphicons-halflings-regular.svg
├── glyphicons-halflings-regular.ttf
└── glyphicons-halflings-regular.woff
├── img
├── favicon.ico
├── glyphicons-halflings-white.png
├── glyphicons-halflings.png
├── icon-cloud.png
├── icon-deployment.png
├── icon-development.png
├── icon-scripting.png
└── icon-serverrack.png
├── index.html
├── js
├── bootstrap.min.js
├── jquery.min.js
└── site.js
└── params.json
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .idea
3 | _site/
--------------------------------------------------------------------------------
/CNAME:
--------------------------------------------------------------------------------
1 | microsoftazurewebsitescheatsheet.info
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Content
2 | =======
3 |
4 | Copyright (c) 2013 Cory Fowler
5 |
6 | Windows Azure Web Sites Cheat Sheet by Cory Fowler is licensed under a Creative Commons Attribution 3.0 Unported License.
7 | Based on a work at https://github.com/SyntaxC4/WindowsAzureWebSitesCheatSheet
8 |
9 | Windows Azure Web Sites Cheat Sheet by Cory Fowler is licensed under a Creative Commons Attribution 3.0 Unported License. Based on a work at https://github.com/SyntaxC4/WindowsAzureWebSitesCheatSheet.
10 |
11 | Source Code
12 | ===========
13 |
14 | Apache License
15 | Version 2.0, January 2004
16 | http://www.apache.org/licenses/
17 |
18 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
19 |
20 | 1. Definitions.
21 |
22 | "License" shall mean the terms and conditions for use, reproduction,
23 | and distribution as defined by Sections 1 through 9 of this document.
24 |
25 | "Licensor" shall mean the copyright owner or entity authorized by
26 | the copyright owner that is granting the License.
27 |
28 | "Legal Entity" shall mean the union of the acting entity and all
29 | other entities that control, are controlled by, or are under common
30 | control with that entity. For the purposes of this definition,
31 | "control" means (i) the power, direct or indirect, to cause the
32 | direction or management of such entity, whether by contract or
33 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
34 | outstanding shares, or (iii) beneficial ownership of such entity.
35 |
36 | "You" (or "Your") shall mean an individual or Legal Entity
37 | exercising permissions granted by this License.
38 |
39 | "Source" form shall mean the preferred form for making modifications,
40 | including but not limited to software source code, documentation
41 | source, and configuration files.
42 |
43 | "Object" form shall mean any form resulting from mechanical
44 | transformation or translation of a Source form, including but
45 | not limited to compiled object code, generated documentation,
46 | and conversions to other media types.
47 |
48 | "Work" shall mean the work of authorship, whether in Source or
49 | Object form, made available under the License, as indicated by a
50 | copyright notice that is included in or attached to the work
51 | (an example is provided in the Appendix below).
52 |
53 | "Derivative Works" shall mean any work, whether in Source or Object
54 | form, that is based on (or derived from) the Work and for which the
55 | editorial revisions, annotations, elaborations, or other modifications
56 | represent, as a whole, an original work of authorship. For the purposes
57 | of this License, Derivative Works shall not include works that remain
58 | separable from, or merely link (or bind by name) to the interfaces of,
59 | the Work and Derivative Works thereof.
60 |
61 | "Contribution" shall mean any work of authorship, including
62 | the original version of the Work and any modifications or additions
63 | to that Work or Derivative Works thereof, that is intentionally
64 | submitted to Licensor for inclusion in the Work by the copyright owner
65 | or by an individual or Legal Entity authorized to submit on behalf of
66 | the copyright owner. For the purposes of this definition, "submitted"
67 | means any form of electronic, verbal, or written communication sent
68 | to the Licensor or its representatives, including but not limited to
69 | communication on electronic mailing lists, source code control systems,
70 | and issue tracking systems that are managed by, or on behalf of, the
71 | Licensor for the purpose of discussing and improving the Work, but
72 | excluding communication that is conspicuously marked or otherwise
73 | designated in writing by the copyright owner as "Not a Contribution."
74 |
75 | "Contributor" shall mean Licensor and any individual or Legal Entity
76 | on behalf of whom a Contribution has been received by Licensor and
77 | subsequently incorporated within the Work.
78 |
79 | 2. Grant of Copyright License. Subject to the terms and conditions of
80 | this License, each Contributor hereby grants to You a perpetual,
81 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82 | copyright license to reproduce, prepare Derivative Works of,
83 | publicly display, publicly perform, sublicense, and distribute the
84 | Work and such Derivative Works in Source or Object form.
85 |
86 | 3. Grant of Patent License. Subject to the terms and conditions of
87 | this License, each Contributor hereby grants to You a perpetual,
88 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
89 | (except as stated in this section) patent license to make, have made,
90 | use, offer to sell, sell, import, and otherwise transfer the Work,
91 | where such license applies only to those patent claims licensable
92 | by such Contributor that are necessarily infringed by their
93 | Contribution(s) alone or by combination of their Contribution(s)
94 | with the Work to which such Contribution(s) was submitted. If You
95 | institute patent litigation against any entity (including a
96 | cross-claim or counterclaim in a lawsuit) alleging that the Work
97 | or a Contribution incorporated within the Work constitutes direct
98 | or contributory patent infringement, then any patent licenses
99 | granted to You under this License for that Work shall terminate
100 | as of the date such litigation is filed.
101 |
102 | 4. Redistribution. You may reproduce and distribute copies of the
103 | Work or Derivative Works thereof in any medium, with or without
104 | modifications, and in Source or Object form, provided that You
105 | meet the following conditions:
106 |
107 | (a) You must give any other recipients of the Work or
108 | Derivative Works a copy of this License; and
109 |
110 | (b) You must cause any modified files to carry prominent notices
111 | stating that You changed the files; and
112 |
113 | (c) You must retain, in the Source form of any Derivative Works
114 | that You distribute, all copyright, patent, trademark, and
115 | attribution notices from the Source form of the Work,
116 | excluding those notices that do not pertain to any part of
117 | the Derivative Works; and
118 |
119 | (d) If the Work includes a "NOTICE" text file as part of its
120 | distribution, then any Derivative Works that You distribute must
121 | include a readable copy of the attribution notices contained
122 | within such NOTICE file, excluding those notices that do not
123 | pertain to any part of the Derivative Works, in at least one
124 | of the following places: within a NOTICE text file distributed
125 | as part of the Derivative Works; within the Source form or
126 | documentation, if provided along with the Derivative Works; or,
127 | within a display generated by the Derivative Works, if and
128 | wherever such third-party notices normally appear. The contents
129 | of the NOTICE file are for informational purposes only and
130 | do not modify the License. You may add Your own attribution
131 | notices within Derivative Works that You distribute, alongside
132 | or as an addendum to the NOTICE text from the Work, provided
133 | that such additional attribution notices cannot be construed
134 | as modifying the License.
135 |
136 | You may add Your own copyright statement to Your modifications and
137 | may provide additional or different license terms and conditions
138 | for use, reproduction, or distribution of Your modifications, or
139 | for any such Derivative Works as a whole, provided Your use,
140 | reproduction, and distribution of the Work otherwise complies with
141 | the conditions stated in this License.
142 |
143 | 5. Submission of Contributions. Unless You explicitly state otherwise,
144 | any Contribution intentionally submitted for inclusion in the Work
145 | by You to the Licensor shall be under the terms and conditions of
146 | this License, without any additional terms or conditions.
147 | Notwithstanding the above, nothing herein shall supersede or modify
148 | the terms of any separate license agreement you may have executed
149 | with Licensor regarding such Contributions.
150 |
151 | 6. Trademarks. This License does not grant permission to use the trade
152 | names, trademarks, service marks, or product names of the Licensor,
153 | except as required for reasonable and customary use in describing the
154 | origin of the Work and reproducing the content of the NOTICE file.
155 |
156 | 7. Disclaimer of Warranty. Unless required by applicable law or
157 | agreed to in writing, Licensor provides the Work (and each
158 | Contributor provides its Contributions) on an "AS IS" BASIS,
159 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
160 | implied, including, without limitation, any warranties or conditions
161 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
162 | PARTICULAR PURPOSE. You are solely responsible for determining the
163 | appropriateness of using or redistributing the Work and assume any
164 | risks associated with Your exercise of permissions under this License.
165 |
166 | 8. Limitation of Liability. In no event and under no legal theory,
167 | whether in tort (including negligence), contract, or otherwise,
168 | unless required by applicable law (such as deliberate and grossly
169 | negligent acts) or agreed to in writing, shall any Contributor be
170 | liable to You for damages, including any direct, indirect, special,
171 | incidental, or consequential damages of any character arising as a
172 | result of this License or out of the use or inability to use the
173 | Work (including but not limited to damages for loss of goodwill,
174 | work stoppage, computer failure or malfunction, or any and all
175 | other commercial damages or losses), even if such Contributor
176 | has been advised of the possibility of such damages.
177 |
178 | 9. Accepting Warranty or Additional Liability. While redistributing
179 | the Work or Derivative Works thereof, You may choose to offer,
180 | and charge a fee for, acceptance of support, warranty, indemnity,
181 | or other liability obligations and/or rights consistent with this
182 | License. However, in accepting such obligations, You may act only
183 | on Your own behalf and on Your sole responsibility, not on behalf
184 | of any other Contributor, and only if You agree to indemnify,
185 | defend, and hold each Contributor harmless for any liability
186 | incurred by, or claims asserted against, such Contributor by reason
187 | of your accepting any such warranty or additional liability.
188 |
189 | END OF TERMS AND CONDITIONS
190 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Microsoft Azure Web Sites Cheat Sheet
2 |
3 | Microsoft Azure Web Sites Cheat Sheet is a collection of lesser known uses of [Microsoft Azure Web Sites](http://www.windowsazure.com/en-us/home/scenarios/web-sites/).
4 |
5 | ## Overview
6 |
7 | This is the GitHub Pages repository for the _Microsoft Azure Web Sites Cheat Sheet_ project.
8 |
9 |
10 | ## Who
11 |
12 | My name is [Cory Fowler](http://blog.syntaxc4.net). I am a Microsoft Azure Evangelist.
13 |
14 | ## License
15 |
16 | See [License](https://github.com/SyntaxC4/WindowsAzureWebSitesCheatSheet/blob/gh-pages/LICENSE).
17 |
18 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | markdown: kramdown
2 | gems:
3 | - jekyll-gist
4 |
--------------------------------------------------------------------------------
/_includes/command-argument-commitid.md:
--------------------------------------------------------------------------------
1 | <commitId>
2 |
--------------------------------------------------------------------------------
/_includes/command-argument-connectionname.md:
--------------------------------------------------------------------------------
1 | <connectionname>
--------------------------------------------------------------------------------
/_includes/command-argument-extension.md:
--------------------------------------------------------------------------------
1 | [extension]
--------------------------------------------------------------------------------
/_includes/command-argument-jobname.md:
--------------------------------------------------------------------------------
1 | <jobName>
--------------------------------------------------------------------------------
/_includes/command-argument-jobtype.md:
--------------------------------------------------------------------------------
1 | <jobType>
--------------------------------------------------------------------------------
/_includes/command-argument-key.md:
--------------------------------------------------------------------------------
1 | <key>
--------------------------------------------------------------------------------
/_includes/command-argument-keyvaluepair.md:
--------------------------------------------------------------------------------
1 | <keyvaluepair>
--------------------------------------------------------------------------------
/_includes/command-argument-name.md:
--------------------------------------------------------------------------------
1 | [name]
2 |
--------------------------------------------------------------------------------
/_includes/command-argument-options.md:
--------------------------------------------------------------------------------
1 | [options]
2 |
--------------------------------------------------------------------------------
/_includes/command-argument-thumbprint.md:
--------------------------------------------------------------------------------
1 | <thumbprint>
--------------------------------------------------------------------------------
/_includes/command-description-Git.md:
--------------------------------------------------------------------------------
1 | Set up a local git repository and link it to the website. If specified, this will set up a git repository in
2 | the local directory and add a remote named 'azure' that links to the website in Microsoft Azure.
3 |
--------------------------------------------------------------------------------
/_includes/command-description-GitHub.md:
--------------------------------------------------------------------------------
1 | If enabled, link this website with an existing Github repository. Commits to the Giuthub repository will be
2 | pushed to the website in Microsoft Azure.
3 |
--------------------------------------------------------------------------------
/_includes/command-description-GitHubCredentials.md:
--------------------------------------------------------------------------------
1 | The username and password credentials used to connect to Github
--------------------------------------------------------------------------------
/_includes/command-description-GitHubRepository.md:
--------------------------------------------------------------------------------
1 | The full name of the Github repository to link to this website. For example, myaccount/myrepo
--------------------------------------------------------------------------------
/_includes/command-description-HostName.md:
--------------------------------------------------------------------------------
1 | An alternative hostname for the new azure website.
--------------------------------------------------------------------------------
/_includes/command-description-PublishingUsername.md:
--------------------------------------------------------------------------------
1 | The username you have specified in the Microsoft Azure Portal for Git deployment
2 |
--------------------------------------------------------------------------------
/_includes/command-description-appsettings.md:
--------------------------------------------------------------------------------
1 | The environment variables that will be used by the website
--------------------------------------------------------------------------------
/_includes/command-description-connectionstrings.md:
--------------------------------------------------------------------------------
1 | The connection strings used by the website
--------------------------------------------------------------------------------
/_includes/command-description-defaultdocument.md:
--------------------------------------------------------------------------------
1 | The documents that are automatically displayed when browsing the website
--------------------------------------------------------------------------------
/_includes/command-description-detailederrorlogging.md:
--------------------------------------------------------------------------------
1 | Determines whether detailed iis errors are logged for the website
--------------------------------------------------------------------------------
/_includes/command-description-dotnet.md:
--------------------------------------------------------------------------------
1 | The version of the .Net Framework required by the website
--------------------------------------------------------------------------------
/_includes/command-description-force.md:
--------------------------------------------------------------------------------
1 | If specified, bypass confirmation prompts and delete the specified website
--------------------------------------------------------------------------------
/_includes/command-description-handlermappings.md:
--------------------------------------------------------------------------------
1 | The Handler Mappings used by the website
--------------------------------------------------------------------------------
/_includes/command-description-hostnames.md:
--------------------------------------------------------------------------------
1 | The fully qualified hostnames that can be used to access the website
--------------------------------------------------------------------------------
/_includes/command-description-httplogging.md:
--------------------------------------------------------------------------------
1 | Determines whether http logging is enabled for the website
--------------------------------------------------------------------------------
/_includes/command-description-location.md:
--------------------------------------------------------------------------------
1 | The data center where the website should be deployed
--------------------------------------------------------------------------------
/_includes/command-description-metadata.md:
--------------------------------------------------------------------------------
1 | The Metadata for the website
--------------------------------------------------------------------------------
/_includes/command-description-name.md:
--------------------------------------------------------------------------------
1 | The name of the Web Site
--------------------------------------------------------------------------------
/_includes/command-description-passthru.md:
--------------------------------------------------------------------------------
1 | When specified, a boolean value is returned
--------------------------------------------------------------------------------
/_includes/command-description-php.md:
--------------------------------------------------------------------------------
1 | The PHP version required by the website
--------------------------------------------------------------------------------
/_includes/command-description-requesttracing.md:
--------------------------------------------------------------------------------
1 | Determines whether request tracing is enabled for the website
--------------------------------------------------------------------------------
/_includes/command-description-sitewithconfig.md:
--------------------------------------------------------------------------------
1 | The configuration used by the website
--------------------------------------------------------------------------------
/_includes/command-description-workers.md:
--------------------------------------------------------------------------------
1 | The number of worker processes executing the website
--------------------------------------------------------------------------------
/_includes/command-help-default-blank.md:
--------------------------------------------------------------------------------
1 |
2 | If you need to enable default PHP extensions that are not highlighted below, you must upload them to your Microsoft Azure Web Site then enable as instructed in Enable PHP Extensions. Loading default extensions in this way is required as extensions cannot be dynamically loaded in the .user.ini file.
3 |
2 | KuduSync is responsible for file synchronization during deployment. It is called at the end of the default deployment process (you can customize the deployment script) to move files between the %DEPLOYMENT_SOURCE% folder and the %DEPLOYMENT_TARGET%.
3 |
2 | Bring your own runtime disables the default PHP Runtime in Microsoft Azure Web Sites, so be sure to upload your own php.ini. Mmm, Yeah, I'm going to have to go ahead and ask you to set fastcgi.impersonate = 1 and fastcgi.logging = 0, too. Grrrreat.
3 |
2 | Warning! Bring your own Runtime is available to enable you to bring a specific version of PHP to run your Web Application. This option is enabled for Advanced Users only.
3 |
{% include snippet-fun-consoleuser.md %}azure site job
3 |
4 |
command
5 |
options
6 |
description
7 |
8 |
9 |
delete {% include command-argument-options.md %} {% include command-argument-jobname.md %} {% include command-argument-jobtype.md %} {% include command-argument-name.md %}
new
10 |
11 |
12 | {% include command-option-help.md %}
13 | {% include command-option-verbose.md %}
14 | {% include command-option-json.md %}
15 | {% include command-option-jobname.md %}
16 | {% include command-option-jobtype.md %}
17 | {% include command-option-quiet.md %}
18 | {% include command-option-slot.md %}
19 | {% include command-option-subscription.md %}
20 |
21 |
22 |
Delete a web job
23 |
24 |
25 |
history list {% include command-argument-options.md %} [jobName] {% include command-argument-name.md %}
new
26 |
27 |
28 | {% include command-option-help.md %}
29 | {% include command-option-verbose.md %}
30 | {% include command-option-json.md %}
31 | {% include command-option-jobname.md %}
32 | {% include command-option-slot.md %}
33 | {% include command-option-subscription.md %}
34 |
35 |
36 |
List all the triggered web jobs runs under a web site
37 |
38 |
39 |
history show {% include command-argument-options.md %} [jobName] [runId] {% include command-argument-name.md %}
new
40 |
41 |
42 | {% include command-option-help.md %}
43 | {% include command-option-verbose.md %}
44 | {% include command-option-json.md %}
45 | {% include command-option-jobname.md %}
46 |
--run-id <run-id>
optional. The id of the run history. If not specified, show the latest run.
47 | {% include command-option-slot.md %}
48 | {% include command-option-subscription.md %}
49 |
50 |
51 |
Get the details for a triggered web jobs run under a web site
52 |
53 |
54 |
list {% include command-argument-options.md %} {% include command-argument-name.md %}
new
55 |
56 |
57 | {% include command-option-help.md %}
58 | {% include command-option-verbose.md %}
59 | {% include command-option-json.md %}
60 |
--job-type <job-type%gt;
optional. The type of the webjob. Valid value is "triggered" or "continuous". By default return webjobs of all types.
61 | {% include command-option-slot.md %}
62 | {% include command-option-subscription.md %}
63 |
64 |
65 |
List all the web jobs under a web site
66 |
67 |
68 |
show {% include command-argument-options.md %} {% include command-argument-jobname.md %} {% include command-argument-jobtype.md %} {% include command-argument-name.md %}
new
69 |
70 |
71 | {% include command-option-help.md %}
72 | {% include command-option-verbose.md %}
73 | {% include command-option-json.md %}
74 | {% include command-option-jobname.md %}
75 | {% include command-option-jobtype.md %}
76 | {% include command-option-slot.md %}
77 | {% include command-option-subscription.md %}
78 |
79 |
80 |
Show details of a specific web job
81 |
82 |
83 |
start {% include command-argument-options.md %} {% include command-argument-jobname.md %} {% include command-argument-jobtype.md %} {% include command-argument-name.md %}
new
84 |
85 |
86 | {% include command-option-help.md %}
87 | {% include command-option-verbose.md %}
88 | {% include command-option-json.md %}
89 | {% include command-option-jobname.md %}
90 | {% include command-option-jobtype.md %}
91 | {% include command-option-slot.md %}
92 | {% include command-option-subscription.md %}
93 |
94 |
95 |
Start a web job
96 |
97 |
98 |
stop {% include command-argument-options.md %} {% include command-argument-jobname.md %} {% include command-argument-jobtype.md %} {% include command-argument-name.md %}
new
99 |
100 |
101 | {% include command-option-help.md %}
102 | {% include command-option-verbose.md %}
103 | {% include command-option-json.md %}
104 | {% include command-option-jobname.md %}
105 | {% include command-option-slot.md %}
106 | {% include command-option-subscription.md %}
107 |
108 |
109 |
Stop a web job. Only continuous jobs can be stopped
110 |
111 |
112 |
upload {% include command-argument-options.md %} {% include command-argument-jobname.md %} {% include command-argument-jobtype.md %} <jobFile> {% include command-argument-name.md %}
new
113 |
114 |
115 | {% include command-option-help.md %}
116 | {% include command-option-verbose.md %}
117 | {% include command-option-json.md %}
118 | {% include command-option-jobname.md %}
119 | {% include command-option-jobtype.md %}
120 | {% include command-option-jobfile.md %}
121 | {% include command-option-slot.md %}
122 | {% include command-option-subscription.md %}
123 |
18 |
--------------------------------------------------------------------------------
/_includes/snippet-fun-consoleuser.md:
--------------------------------------------------------------------------------
1 | websites-dev$
2 |
--------------------------------------------------------------------------------
/_includes/snippet-fun-powershelluser.md:
--------------------------------------------------------------------------------
1 | PS >
--------------------------------------------------------------------------------
/_includes/welcome.md:
--------------------------------------------------------------------------------
1 | Howdy, Cloud Adventurer!
2 | ========================
3 |
4 | You've stumbled across the Microsoft Azure Web Sites Cheat Sheet -- The quickest reference for getting to know [Microsoft Azure Web Sites][WAWS] on the web. If you're looking for some [tutorials][WAWSTutorial] on how to develop solutions on Microsoft Azure Web Sites check out the [Microsoft Azure][WindowsAzure] product site.
5 |
6 | Browse around this one page reference for information on **command-line tools** for managing your Microsoft Azure Web Sites. Take a quick look at the **features** that are offered on Microsoft Azure Web Sites then start exploring the wonderful world of Microsoft Azure!
7 |
8 | [Try Microsoft Azure Web Sites today for free!][FreeTrial]
9 |
10 | [WindowsAzure]: http://www.windowsazure.com
11 | [WAWSTutorial]: http://www.windowsazure.com/en-us/develop/overview
12 | [WAWS]: http://www.windowsazure.com/en-us/home/scenarios/web-sites
13 | [FreeTrial]: http://www.windowsazure.com/en-us/pricing/free-trial/?WT.mc_id=ACBCB6EE5
14 |
--------------------------------------------------------------------------------
/_layouts/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | {% if page.title %}{{ page.title }} - {% endif %}Microsoft Azure Web Site Cheat Sheet
17 |
18 |
19 |
26 |
27 |
28 |
29 |
30 |
31 |
75 |
76 |
77 | {{ content }}
78 |
79 |
80 |
81 |
82 |
83 |
87 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/_posts/01-01-01-Features-Service.md:
--------------------------------------------------------------------------------
1 | ---
2 | categories: [features]
3 | ---
4 |
5 | # Features
6 |
7 | {% include html-features-service-features.md %}
8 |
9 | Note: Features in gray are not available in Azure Websites. These features are available in Virtual Machines or Cloud Services as indicated by VM for Virtual Machines and CS for Cloud Services.
10 |
--------------------------------------------------------------------------------
/_posts/01-01-02-Environment.md:
--------------------------------------------------------------------------------
1 | ---
2 | categories: [features]
3 | ---
4 |
5 | # Environment
6 |
7 | ## Disable Server Affinity
8 |
9 | By default, Azure Websites comes preconfigured with Session affinity, which in many cases allows developers perform a very simple migration of their applications to cloud. This is because there is no need to worry about centralizing the session state of your application as a user will be redirected back to the same server on each subsequent request.
10 |
11 | Some applications, however, may not require session affinity and it would be better to turn off the session affinity in Azure Websites. This can be achieved by adding the following to the `web.config` file.
12 |
13 | To ensure that the session affinity works during scaling activities, make sure to also add in an AppSetting with the following key value: **clientAffinityEnabled** = **false**
14 |
15 |
16 | {% gist SyntaxC4/0d7185b30acf477c2033 web.disable-session-affinity.config %}
17 |
18 | ## Filtering Traffic by IP
19 |
20 | Based on your web application, you may want to restrict access to it. Access can be restricted by using the `` element and providing a list of IP address to allow.
21 |
22 | > If you would like to whitelist azure resources, the [Azure Datacenter IP Address Ranges](https://msdn.microsoft.com/en-us/library/azure/dn175718.aspx) are available online.
23 |
24 | {% include html-alert-ip-security-docs.md %}
25 |
26 | {% gist SyntaxC4/0d7185b30acf477c2033 web.ipsecurity.config %}
27 |
28 | ## Dynamic IP Restrictions
29 |
30 | Dynamic IP Restrictions enable you to block access to your website when based on an interval of requests (i.e. Potential DDoS Attack). This can be achieved in a variety of ways as outlined in the example below.
31 |
32 | {% include html-alert-dynamic-ip-restriction.md %}
33 |
34 | {% gist SyntaxC4/0d7185b30acf477c2033 web.dipr.config %}
35 |
36 |
55 |
56 | ## Auto-Heal
57 |
58 | You know those bugs where the only way to fix them is to restart the server every so often? There's a `web.config` setting for that! Microsoft Azure Websites have the ability to auto-heal based on a number of different triggers, i've outlined some of them in the example below. Note that this only works in Standard mode. It throws an error in Free or Basic mode.
59 |
60 | {% gist SyntaxC4/0d7185b30acf477c2033 web.autoheal.config %}
61 |
62 |
93 |
94 | ## HTTP Compression
95 |
96 | Some big wins come in small packages, enabling HTTP Compression in your Website can help decrease your users mobile bill and wait time while loading your Web Application.
97 |
98 | {% gist SyntaxC4/0d7185b30acf477c2033 web.httpcompression.config %}
99 |
100 |
105 |
106 | ## Mime Map
107 |
108 | It's possible that you may need to map mime types to IIS if you are going to serve static files.
109 |
110 | {% gist SyntaxC4/0d7185b30acf477c2033 web.mimetype.config %}
111 |
112 | ## Cache Control
113 | Enable downstream caching of
114 | html for performance and cheaper delivery via Content Delivery Network (CDN). The snippet below enables 1 day, public caching of all HTML content.
115 |
116 | {% gist stephbu/673b6b3261552cbaf96b web.contentcaching.config %}
117 |
118 |
129 |
130 | ## Force HTTPS
131 |
132 | {% gist SyntaxC4/0d7185b30acf477c2033 web.forcehttps.config %}
133 |
134 |
145 |
146 | ## Enable HTTP Verbs
147 |
148 | When building out HTTP based APIs it is nearly impossible to enable functionality without being able to use certain HTTP Verbs such as PUT and DELETE.
149 |
150 | ### .NET
151 |
152 | {% gist SyntaxC4/0d7185b30acf477c2033 web.netverbs.config %}
153 |
154 | ### PHP
155 |
156 | Enable PUT requests using below web.config and make sure to change PHP Version number
157 |
158 | {% gist SyntaxC4/0d7185b30acf477c2033 web.phpverbs.config %}
159 |
160 | ### Nodejs
161 |
162 | {% gist prashanthmadi/72574ff9b8513eb6785fc8c3c0b358f7 web.NodeJs.config %}
163 |
164 | ## Enable HTTP Strict Transport Security (HSTS)
165 |
166 | For more information on HSTS, visit and read this blog post on [How to Enable HTTP Strict Transport Security in IIS 7+](http://www.hanselman.com/blog/HowToEnableHTTPStrictTransportSecurityHSTSInIIS7.aspx) by [Scott](http://hanselman.com) Hanselman.
167 |
168 | {% gist SyntaxC4/0d7185b30acf477c2033 web.hsts.config %}
169 |
170 | ## Remove X-Powered-By Header
171 |
172 | The X-Powered-By header typically displays the Language and version information of a website which could be a potential security risk.
173 |
174 | {% gist Syntaxc4/0d7185b30acf477c2033 web.x-powered-by.config %}
175 |
--------------------------------------------------------------------------------
/_posts/02-01-01-Deployment.md:
--------------------------------------------------------------------------------
1 | ---
2 | categories: [deployment]
3 | ---
4 |
5 | # Deployment
6 |
7 | There are a number of ways to deploy your applications to Microsoft Azure Web Sites, there are also a number of ways to tie into the deployment process to aid you in Automation, Configuration, or Diagnosing issues with your deployment.
8 |
9 | ## Supported Deployment Types
10 |
11 | {% include html-deployment-types.md %}
12 |
13 | ## Deployment Tools
14 |
15 | ### Kudu
16 |
17 | {% include html-panel-kudu-install.md %}
18 |
19 | Kudu is the central nervous system of a Microsoft Azure Web Site; it handles the Git integration to a Web Site as well as provides an API endpoint for programmatic access to app settings, deployment information, files, active processes, runtime versions, source control information, web hooks and web jobs. Kudu, itself, is a Site Extension which is provided with ever Web Site, you can access it by using the Source Control Management entry point **https://<your-website-name>.scm.azurewebsites.net**
20 |
21 | #### Kudu Dash(board)
22 |
23 | The Kudu dashboard is the first page you will encounter on the SCM entry point, it displays information pertaining to your Web Site such as the build number of Kudu which is running, tge current uptime of your site (this could display a value as low as a couple of seconds as your site may have been deallocated due to inactivity, unless the site has Always-On enabled).
24 |
25 | ##### Environment
26 |
27 | The Environment tab in Kudu Dash shows some very valuable information including System Information, App Settings, Connection Strings, Environment Variables, PATH, HTTP Headers and Server Variables.
28 |
29 | ##### Debug Console
30 |
31 | The Debug Console gives file explorer and graphical KuduExec experience which enables you to run command line tools against the Web Site.
32 |
33 | ##### Diagnostic Dump
34 |
35 | Diagnostic Dump provides a zip file of all of the Diagnostic Data which is enabled under the Application Diagnostics header in the CONFIGURE tab of the Web Site.
36 |
37 | ##### Log Stream
38 |
39 | {% include html-alert-kududash-logstream.md %}
40 |
41 | Log Stream long-polling process which provides logging data from your Web Site if Web Server Logging is enabled under the Site Diagnostics header in the CONFIGURE tab of the Web Site.
42 |
43 | ##### Web Hooks
44 |
45 | Allows URLs to be registered as Web Hooks. Information will be posted to the URL when events occur.
46 |
47 | #### Hooking the Deployment
48 |
49 |
50 |
51 | ### KuduExec
52 |
53 | {% include html-panel-kuduexec-install.md %}
54 |
55 | KuduExec enables command-line access to a Microsoft Azure Web Site. Simply call KuduExec and pass in the Source Control Management (scm) endpoint of the website as the first parameter.
56 |
57 |
62 |
63 | ### KuduSync
64 |
65 | {% include html-panel-kudusync-install.md %}
66 |
67 | KuduSync is a tool for syncing files for deployment, will only copy changed files and delete files that doesn't exists in the destination but only if they were part of the previous deployment.
68 |
69 | {% include html-alert-kudusync-deployment.md %}
70 |
71 | {% include html-cli-kudusync-commands.md %}
72 |
--------------------------------------------------------------------------------
/_posts/02-01-02-Configuration-ASPNET.md:
--------------------------------------------------------------------------------
1 | ### ASP.NET
2 |
3 | #### .NET Runtimes
4 |
5 |
6 |
Default .NET Runtime versions on Microsoft Azure Web Sites