Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:05,279 --> 00:00:09,120
so let's start by creating an azure
2
00:00:07,279 --> 00:00:11,599
account and you can find a link to this
3
00:00:09,120 --> 00:00:13,759
page in the show notes below the video
4
00:00:11,599 --> 00:00:15,599
we're gonna click on start for free and
5
00:00:13,759 --> 00:00:17,920
you're gonna need to sign in with a
6
00:00:15,599 --> 00:00:20,560
microsoft account if you don't have one
7
00:00:17,920 --> 00:00:22,480
yet there's also a link to a resource
8
00:00:20,560 --> 00:00:24,720
about how to create one and then we're
9
00:00:22,480 --> 00:00:27,760
gonna fill this form with our personal
10
00:00:24,720 --> 00:00:30,320
details and click on next and the next
11
00:00:27,760 --> 00:00:32,079
step will be to include a credit card
12
00:00:30,320 --> 00:00:34,160
and don't worry about this step
13
00:00:32,079 --> 00:00:35,520
microsoft won't charge for anything that
14
00:00:34,160 --> 00:00:37,200
you don't use
15
00:00:35,520 --> 00:00:39,600
so if you follow these steps in this
16
00:00:37,200 --> 00:00:41,440
tutorial and always delete the resources
17
00:00:39,600 --> 00:00:44,079
after testing them you'll never pay a
18
00:00:41,440 --> 00:00:45,600
dime so once this form is filled just
19
00:00:44,079 --> 00:00:47,520
click on sign up
20
00:00:45,600 --> 00:00:50,320
and you're going to be taken to a page
21
00:00:47,520 --> 00:00:52,879
where you see a button go to azure
22
00:00:50,320 --> 00:00:55,199
portal you can click on that and you
23
00:00:52,879 --> 00:00:57,840
will see the azure dashboard on this
24
00:00:55,199 --> 00:01:00,079
dashboard you have an overview of all of
25
00:00:57,840 --> 00:01:03,039
your resources on azure right now we
26
00:01:00,079 --> 00:01:05,760
don't have any so our list is empty so
27
00:01:03,039 --> 00:01:08,240
the next step will be to create a blazer
28
00:01:05,760 --> 00:01:10,479
application on visual studio and in this
29
00:01:08,240 --> 00:01:13,360
demonstration i'm gonna use blazer but
30
00:01:10,479 --> 00:01:15,760
the process would be the same for an mvc
31
00:01:13,360 --> 00:01:18,240
or a razer pages application
32
00:01:15,760 --> 00:01:20,960
so if you already have a project ready
33
00:01:18,240 --> 00:01:23,200
to be published you can skip this part
34
00:01:20,960 --> 00:01:25,439
and go directly to the publishing
35
00:01:23,200 --> 00:01:27,920
section just keep in mind that in this
36
00:01:25,439 --> 00:01:30,400
tutorial we are not demonstrating how to
37
00:01:27,920 --> 00:01:32,479
publish an app with a database that's
38
00:01:30,400 --> 00:01:35,119
going to be my next tutorial but let's
39
00:01:32,479 --> 00:01:37,680
continue on the next prompt search for
40
00:01:35,119 --> 00:01:39,600
blazer web assembly app and you can give
41
00:01:37,680 --> 00:01:42,400
this project any name you want i'm going
42
00:01:39,600 --> 00:01:44,720
to use blazer azure test and this
43
00:01:42,400 --> 00:01:46,799
project is going to live in my study
44
00:01:44,720 --> 00:01:49,200
projects folder in the additional
45
00:01:46,799 --> 00:01:51,439
information prompt i'll just keep the
46
00:01:49,200 --> 00:01:54,000
default options once the project is
47
00:01:51,439 --> 00:01:56,479
created let's test it straight away by
48
00:01:54,000 --> 00:01:58,640
clicking on the green play button and
49
00:01:56,479 --> 00:02:01,520
you can just click yes if you see a
50
00:01:58,640 --> 00:02:03,680
prompt about ssl certificates and once
51
00:02:01,520 --> 00:02:06,320
the process is complete this is our
52
00:02:03,680 --> 00:02:09,280
result a functioning blazer page
53
00:02:06,320 --> 00:02:12,080
that has a sidebar a simple counter and
54
00:02:09,280 --> 00:02:14,000
some weather forecast data so everything
55
00:02:12,080 --> 00:02:16,480
works let's see how we're gonna publish
56
00:02:14,000 --> 00:02:19,040
it to azure in the solution explorer
57
00:02:16,480 --> 00:02:21,680
right click on project's name and choose
58
00:02:19,040 --> 00:02:24,480
publish then choose azure which is the
59
00:02:21,680 --> 00:02:27,040
first option and then azure app service
60
00:02:24,480 --> 00:02:29,920
windows and this is an http based
61
00:02:27,040 --> 00:02:32,879
service that we use to publish web apps
62
00:02:29,920 --> 00:02:35,519
press apis and mobile backends and this
63
00:02:32,879 --> 00:02:38,239
is not just for csharp and net you can
64
00:02:35,519 --> 00:02:42,959
publish apps written in other languages
65
00:02:38,239 --> 00:02:45,200
such as java php ruby python and node.js
66
00:02:42,959 --> 00:02:47,120
so once you choose to publish as an app
67
00:02:45,200 --> 00:02:48,879
service you're going to be prompted to
68
00:02:47,120 --> 00:02:50,800
log into visual studio with your
69
00:02:48,879 --> 00:02:53,120
microsoft account and you can see that
70
00:02:50,800 --> 00:02:54,560
we have a subscription associated with
71
00:02:53,120 --> 00:02:57,360
our new account
72
00:02:54,560 --> 00:02:59,280
and that's called azure subscription one
73
00:02:57,360 --> 00:03:01,760
and in azure you can think of a
74
00:02:59,280 --> 00:03:05,120
subscription as a container that will
75
00:03:01,760 --> 00:03:07,360
hold all of our resources so if we go
76
00:03:05,120 --> 00:03:09,680
back to the portal and click on the
77
00:03:07,360 --> 00:03:12,080
subscriptions icon we will see our
78
00:03:09,680 --> 00:03:14,879
subscription and if you click on it you
79
00:03:12,080 --> 00:03:16,959
can see its details back on visual
80
00:03:14,879 --> 00:03:20,159
studio there is a message saying that
81
00:03:16,959 --> 00:03:22,800
there are no instances of app services
82
00:03:20,159 --> 00:03:23,519
associated with this subscription
83
00:03:22,800 --> 00:03:25,760
so
84
00:03:23,519 --> 00:03:27,360
let's create a new instance and here we
85
00:03:25,760 --> 00:03:28,720
can see that we need to create a
86
00:03:27,360 --> 00:03:31,440
resource group
87
00:03:28,720 --> 00:03:33,760
and a hosting plan and these aren't
88
00:03:31,440 --> 00:03:36,480
really important for us right now since
89
00:03:33,760 --> 00:03:38,959
we are only interested in publishing a
90
00:03:36,480 --> 00:03:41,920
standalone app but in a situation where
91
00:03:38,959 --> 00:03:44,080
you would have multiple apps such as in
92
00:03:41,920 --> 00:03:45,920
enterprise development resource groups
93
00:03:44,080 --> 00:03:48,000
and hosting plans are very useful to
94
00:03:45,920 --> 00:03:49,920
maintain everything organized and you
95
00:03:48,000 --> 00:03:52,879
can give these resources different
96
00:03:49,920 --> 00:03:55,599
levels of access so these are extremely
97
00:03:52,879 --> 00:03:58,159
useful for the administration of
98
00:03:55,599 --> 00:04:01,439
resources but here we can just keep the
99
00:03:58,159 --> 00:04:03,920
suggested names and click on create then
100
00:04:01,439 --> 00:04:05,920
you'll see the resource that was created
101
00:04:03,920 --> 00:04:08,560
and you can click on finish
102
00:04:05,920 --> 00:04:10,319
and that will create a publish profile
103
00:04:08,560 --> 00:04:12,799
and that's a file that contains
104
00:04:10,319 --> 00:04:16,160
information to deploy apps and services
105
00:04:12,799 --> 00:04:18,560
to azure so you can just close that
106
00:04:16,160 --> 00:04:20,799
and then click on publish and you can
107
00:04:18,560 --> 00:04:23,199
follow the progress of the deployment in
108
00:04:20,799 --> 00:04:25,120
the output window
109
00:04:23,199 --> 00:04:27,919
and if everything works you're going to
110
00:04:25,120 --> 00:04:30,160
see this publish succeeded message and a
111
00:04:27,919 --> 00:04:33,120
browser will open with your website
112
00:04:30,160 --> 00:04:34,080
loaded and that's it your website is
113
00:04:33,120 --> 00:04:36,240
live
114
00:04:34,080 --> 00:04:38,720
our counter is working and we can see
115
00:04:36,240 --> 00:04:39,759
the data about the weather now very
116
00:04:38,720 --> 00:04:41,680
important
117
00:04:39,759 --> 00:04:44,000
if you don't want to pay anything for
118
00:04:41,680 --> 00:04:47,040
your apps and that's especially
119
00:04:44,000 --> 00:04:49,280
important when we publish a database we
120
00:04:47,040 --> 00:04:51,840
have to delete our resource
121
00:04:49,280 --> 00:04:54,560
so let's go back to the portal and click
122
00:04:51,840 --> 00:04:56,479
on resource groups then on the list of
123
00:04:54,560 --> 00:04:58,800
resource groups on the left we're gonna
124
00:04:56,479 --> 00:05:00,080
see the one that we just created you can
125
00:04:58,800 --> 00:05:03,120
click on it
126
00:05:00,080 --> 00:05:05,280
and then click on delete resource group
127
00:05:03,120 --> 00:05:07,280
and since this is an operation that can
128
00:05:05,280 --> 00:05:09,600
do a lot of damage you're gonna have to
129
00:05:07,280 --> 00:05:10,479
copy the name of the resource group into
130
00:05:09,600 --> 00:05:12,240
this field
131
00:05:10,479 --> 00:05:14,720
just to make sure you're not deleting
132
00:05:12,240 --> 00:05:16,800
anything by accident and we can see here
133
00:05:14,720 --> 00:05:18,800
the resources that are being deleted
134
00:05:16,800 --> 00:05:21,120
they are associated with this resource
135
00:05:18,800 --> 00:05:23,440
group and those are the app service and
136
00:05:21,120 --> 00:05:25,520
the app service plan and that's a quick
137
00:05:23,440 --> 00:05:28,400
way to clean things up and delete
138
00:05:25,520 --> 00:05:30,720
everything in one go and that's it once
139
00:05:28,400 --> 00:05:31,680
the deletion is successful everything is
140
00:05:30,720 --> 00:05:33,759
cleared
141
00:05:31,680 --> 00:05:36,320
and you won't have to pay anything and
142
00:05:33,759 --> 00:05:38,479
even if one day you want to publish an
143
00:05:36,320 --> 00:05:42,080
application for people to use the price
144
00:05:38,479 --> 00:05:45,280
will depend on the usage so you pay more
145
00:05:42,080 --> 00:05:47,440
as your app is used more and it scales
146
00:05:45,280 --> 00:05:50,080
automatically of course you can set a
147
00:05:47,440 --> 00:05:52,080
limit so you don't get surprised in case
148
00:05:50,080 --> 00:05:54,479
your app grows very popular but the
149
00:05:52,080 --> 00:05:57,840
whole thing is very easy to scale so i
150
00:05:54,479 --> 00:05:59,840
highly recommend azure to host web apps
151
00:05:57,840 --> 00:06:01,120
so that's it don't forget to check the
152
00:05:59,840 --> 00:06:03,360
links below
153
00:06:01,120 --> 00:06:05,520
there are several resources with more
154
00:06:03,360 --> 00:06:07,680
detailed information where you can dive
155
00:06:05,520 --> 00:06:09,600
deeper into these subjects
156
00:06:07,680 --> 00:06:12,000
and don't forget to subscribe we are
157
00:06:09,600 --> 00:06:15,240
always publishing new tutorials see you
158
00:06:12,000 --> 00:06:15,240
next time
11727
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.