This repository was archived by the owner on Sep 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathAzureDeployAndDebug.html
More file actions
263 lines (235 loc) · 10.4 KB
/
AzureDeployAndDebug.html
File metadata and controls
263 lines (235 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Provisioning, Deploying and Debugging on Azure</title>
<meta name="description" content="This session introduces how to deploy a Node.js application to Azure from Visual Studio Community as well as from GitHub. Additionally, it explains how to do remote debugging with Visual Studio Community to a Node.js application deployed in Azure and how to use Azure CLI to manage your resources in Azure.">
<meta name="author" content="">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="../../_layouts/reveal.js/css/reveal.css">
<link rel="stylesheet" href="../../_layouts/reveal.js/css/theme/black.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="../../_layouts/reveal.js/lib/css/zenburn.css">
<!-- Custom styles -->
<link rel="stylesheet" href="../../_layouts/custom.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? '../../_layouts/reveal.js/css/print/pdf.css' : '../../_layouts/reveal.js/css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="../../_layouts/reveal.js/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section data-state="title">
<h1>Provisioning, Deploying and Debugging on Azure</h1>
</section>
<section data-state="agenda">
<h2>Agenda</h2>
<ol>
<li>Azure Web Apps Overview</li>
<li>Provisioning Azure Resources using Azure CLI</li>
<li>Deploying to Azure with Visual Studio</li>
<li>Deploying to Azure with GitHub</li>
<li>Remote debugging with Visual Studio</li>
</ol>
</section>
<section>
<section data-state="head">
<h2>Azure Web Apps Overview</h2>
</section>
<section>
<h2>Develop apps with...</h2>
<table style="font-size:64%;margin-top:2%">
<tbody>
<tr>
<td>.NET</td>
<td>Node.js</td>
<td>PHP</td>
</tr>
<tr>
<td>Python</td>
<td>Java</td>
</tr>
</tbody>
</table>
<img data-src="images/azure-web-apps.png" alt="Down arrow">
</section>
<section>
<h2>Azure Apps</h2>
<ul>
<li>Easy to deploy a variety of different web sites: node, python, php, asp.net, etc.</li>
<li>Can install some software from the gallery like WordPress or preconfigured stacks (MEAN stack)</li>
<li>Has a few limitations such as cannot configure ports, compile native modules for Node</li>
</ul>
</section>
<section>
<h2>Azure Apps</h2>
<ul>
<li>Can configure custom domains</li>
<li>Can add FTP users</li>
<li>Can run multiple web sites</li>
<li>Ideal for a production / staging environment</li>
</ul>
</section>
</section>
<section>
<section data-state="head">
<h2>Provisioning Azure Resources using Azure CLI</h2>
</section>
<section>
<h2>Azure CLI</h2>
<ul>
<li>Cross-platform command line interface to develop, deploy and manage Microsoft Azure applications</li>
<li>Runs on Node.js. It's installed using npm package manager
<pre><code class="cmd" data-trim contenteditable>
npm install -g azure-cli
</code></pre>
</li>
<li>Works in one of two modes
<ul>
<li>Service management: Azure service management API</li>
<li>Resource manager: Azure Resource Manager API</li>
</ul>
</li>
</ul>
</section>
<section>
<h2>Azure CLI with Azure Resource Manager</h2>
<ul>
<li>Deploy, manage, and monitor the solution resources as a group, rather than handling them individually</li>
<li>Use declarative templates to define the solution deployment</li>
<li>Define the dependencies between resources so they are deployed in the correct order</li>
</ul>
</section>
<section>
<h2>Using Azure CLI</h2>
<ul>
<li>
Get authenticated with Microsoft Azure
<pre><code class="cmd" data-trim contenteditable>
azure login
</code></pre>
</li>
<li>
Switch to Azure Resource Manager
<pre><code class="cmd" data-trim contenteditable>
azure config mode arm
</code></pre>
</li>
<li>
Create a Resource Group
<pre><code class="cmd" data-trim contenteditable>
azure group create -n "chatroomRG" -l "East US"
</code></pre>
</li>
<li>
Create the Azure resources using a json template
<pre><code class="cmd" data-trim contenteditable>
azure group deployment create -f azuredeploy.json -e
azuredeploy.parameters.json chatroomRG chatroomDeploy
</code></pre>
</li>
</ul>
</section>
<section data-state="demo">
<h2>Demo</h2>
<h3>Provisioning Azure Resources using Azure CLI</h3>
</section>
</section>
<section>
<section data-state="head">
<h2>Deploying to Azure with Visual Studio</h2>
</section>
<section>
<h2>Visual Studio + App Service Web Apps</h2>
<ul>
<li>Create Azure Resources during File / New</li>
<li>Create Web App during deploy</li>
<li>Manage with Server Explorer</li>
</ul>
<img data-src="images/visual-studio-azure-service-web-apps.png" alt="Down arrow">
</section>
<section data-state="demo">
<h2>Demo</h2>
<h3>Deploying to Azure with Visual Studio</h3>
</section>
</section>
<section>
<section data-state="head">
<h2>Deploying to Azure with GitHub</h2>
</section>
<section>
<h2>Continuous Deployment</h2>
<img data-src="images/continuous-deployment.png" alt="Down arrow">
</section>
<section>
<h2>Source Control</h2>
<p>Choose your own adventure!</p>
<img data-src="images/source-control.png" alt="Down arrow">
</section>
<section>
<h2>Deployments</h2>
<img data-src="images/deployments.png" alt="Down arrow">
</section>
<section data-state="demo">
<h2>Demo</h2>
<h3>Deploying to Azure with GitHub</h3>
</section>
</section>
<section>
<section data-state="head">
<h2>Remote debugging with Visual Studio</h2>
</section>
<section data-state="demo">
<h2>Demo</h2>
<h3>Remote Debugging a Node.js application with Visual Studio and Azure</h3>
</section>
</section>
<section>
<section>
<h2>Get started</h2>
<p>Visit <a href="https://azure.microsoft.com/">azure.microsoft.com</a></p>
<img data-src="images/get-started.png" alt="Down arrow">
</section>
</section>
<section style="text-align: left;" data-state="the-end">
<img data-src="../../_layouts/MicrosoftLogo.png" />
<p><small style="font-size:0.4em;">© 2016 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
</small></p>
</section>
</div>
<script src="../../_layouts/reveal.js/lib/js/head.min.js"></script>
<script src="../../_layouts/reveal.js/js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: '../../_layouts/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: '../../_layouts/reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: '../../_layouts/reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: '../../_layouts/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: '../../_layouts/reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: '../../_layouts/reveal.js/plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>