Ctrl+ShiftrB Run Active File Visual Studio Code Run Selected Text " Editing evolved Walkthroughs bg c Configure Tasks.... You determine which roles, role services, or features to ins
Trang 1HANH FPT-POLYTECHNIC HA
FPT POLYTECHNIC
BAO CAO LAB 04
DIEN TOAN DAM MAY
Sinh viên thực hiện: Nguyễn Duy Huy
Mã số sinh viên: PH37522
Lớp: SA18305
GVHD: Chu Thi Thuy Linh
Trang 2The installation was successful
The following products were installed at: "
+ NET SDK 6.0.420 + NET Runtime 6.0.28 + ASP.NET Core Runtime 6.0.28 + NET Windows Desktop Runtime 6.0.28
This product collects usage data + More information and opt-out
We Resources { ì ` + NET Documentation
+ SDK Documentation + Release Notes htt
+ Trtariale httne:
Azure Databas eS S wii Si - Visual Studio Tri ong C# for Visual Studio eae
° - - Ốc A Visual Studio Code extension that
great C# language capabiliti an ray the C# extension an a ible to use the C#
lo
Azure Repos Peer
ldentifier ®s-
to help C# developer:
debug, and maintain the Installing C# D
r and with fewer errOrs utomaticall his new tooling include
Azure CLI To but is not limited to:
Pay
(.csproj) and a C OIE Buy:
Azure Static Web Apps
im Resources
Tea tne te Resources
Azure Tools for Visual Studio Code
zure support fo
a
ït easy to dis and interact with the
that p Dur application:
247PM
aA W Aa ed!
Trang 3FPT POLYTECHNIC SOA206 - BAO CAO LAB 4
Setting Up the Catalog App
+ Giải nén file catalog đã tải trên UDEMY sau copy vào file
readit đã tạo ở ổ D trước đó
FPT Polytechnic Hà Nội
3/48
Trang 4FPT POLYTECHNIC SOA206 - BAO CAO LAB 4
`
Ctrl+N Welcome X
Ctrl+Alt+Windows+N ere ĐẠI pen File Ctrl+(
Open Folder Ctril+K Ctri+O
AT nen." Get Started with C# Dev Kit
Connect account
Ur Ub gece treo aR Cnn Ce) Tiption, you can get information about your subscription after you've signed ir Connect
ee Sign in with Microsoft to use C# Dev Kit Close Window
2 d3
TY) Nho ot rate ompatible NET runtime found TY ta ars to path Jsers \HOA\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-ru Activating C# + C# i
ntime\ dotnet\8 0 3„x64\dotnet.exe waiting fc pe inf from server
[stdout] {"p BAN e\\d@985ef7”
rec °d named pipe inform attempting to connect c Cae me ans [Info 4:31:15 PM] [Program] Language server initialized [Info 4:31:19 PM] [WorkspaceProjectFactoryService] Project ventory\inventory.csproj loaded by C# Dev Kit
431 PM 2W SCLIN) A
ÌWelcome X inven J Open Folder
"mo
ER°itue
DI co Pere 1)
Folder | catalog (
CC | Cancel
Sign in with Microsoft to use C# Dev Kit
ompatible NET runtime found imum required versio Dotnet path Jsers \HOA\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-ru Activating C# + C# D i
ntime\ dotnet`\8 6Ø 3„x64\dotnet.exe
waiting for" named pipe infonmat [stdout] {”pipeName": \
ipe inform
server initialized [Info yService] Project ventory\inventory.csproj loaded by C# Dev Kit
ee a: a + 48 2Ø 431 PM
SCLIN) cá
FPT Polytechnic
Trang 5Visual Studio Code
@ Get Started with C# Dev Kit (New
@P Deploy your App with the Azure Developer CLI [i
Learn the Fundamentals
Trang 6FPT POLYTECHNIC SOA206 - BAO CAO LAB 4
] Fie Edit Selecion View Go Run Termminal Help catalog RUNAN [> NETCore vy §$ - aa Ctrl+Shift+ PS
\ VARIABLES Split Terminal Ctrl+ Shift+5
Run Task
Run Build Task Ctrl+ShiftrB
Run Active File Visual Studio Code
Run Selected Text "
Editing evolved
Walkthroughs
bg c Configure Tasks Get Started with VS Code
e Customize your editor, leam the basics, and start coding Configure Default Build Task
a - :
*) Get Started with C# Dev Kit New
Recent Ps Deploy your App with the Azure Developer CLI 'New SMT:
\ WATCH
© Learn the Fundamentals
` CALL STACK CỔ Thread #6084 [CÚ Show welcome page on startup Thread #11688 RUNNING
Thread #15872 Png Oe
Thread #15204 RUNNING Thread #15856 EOS TIN Thread #13768 RUNNING Thread #16288 RUNNING Thread #2620 Ens 'D : : l : l =5 : The selected launch configuration is configuredtolaunha ậ‡ X
Thread #16060 EUs : ¬ l : : : ome web browser but no trusted development certificate was
li la 2) củ a m Files\dotnet ` "nh X arene : found Create a trusted self-signed certificate?
eta ae) LEY ñ t 4 NAII Exceptions
Selecion View C Terminal Helr
P NETCorev & } Welcome X VARIABLFS
Walkthroughs
LÊ TT AT
Custormize your editor, learn the basic
@ Get Started with C# Dev Kit (New
Deploy your App with the Azure Developer CL! [New
Trang 7BGG 0 ves
FPT POLYTECHNIC SOA206 - BAO CAO LAB 4
Run Termunal Helr
pmentjsor mm cet Started with VS Code
lo Dây 3 Customize your editor, learn the basics, ar
lorena Connect to @ Get Started with C# Dev Kit (ew eat Pe ee i ee get a
Trang 8GG „ Fpt University
FPT POLYTECHNIC SOA206 - BÁO CÁO LAB 4
ẰÕ, huyndph-vm - 20.6.98.227:3389 - Remote Desktop Connection
Before you begin
This wizard helps you install roles, role services, or features You determine which roles, role services, or features to install based on the computing needs of your organization, such as sharing documents, or hosting a website
To remove roles, role services, or features:
Start the Remove Roles and Feat
Before you continue, verify that the following tasks have been completed:
* The Administrator account has a strong password
* Network settings, such as static IP addresses, are configured
* The most current security updates from Windows Update are installed
If you must verify that any of the preceding prerequisites have been completed, close the wizard, complete the steps, and then run the wizard again
\stallation type nuynaoh-vm
: Select the installation type You can install roles and features on a running physical computer or virtual
se machine, or on an offline virtual hard disk (VHD)
Performance EBB senices EE senices
BPA results Performance Performance
BPA results BPA results
Trang 9FPT POLYTECHNIC SOA206 - BÁO CÁO LAB 4
ẰÕ, huyndph-vm - 20.6.98.227:3389 - Remote Desktop Connection
Select a server or a virtual hard disk on which to install roles and features
© Select a server from the server pool Select a virtual hard disk Server Pool
1 Computers) found This page shows servers that are running Windows Server 2012 or a newer release of Windows Server, and that have been added by using the Add Servers command in Server Manager Offline servers and newly-added servers from which data collection is still incomplete are not shown
ẰÕ, huyndph-vm - 20.6.98.227:3389 - Remote Desktop Connection
Fi Add Roles and Features Wizard
tive Directory Domain Services Web Server (lS) provides a reliable
Active Directory Federation Services manageable, and scalable Web tive Directory Lightweight Directory Services application infrastructure
{1 Active Directory Rights Management Services () Device Health Attestation
Trang 10GG „ Fpt University
FPT POLYTECHNIC SOA206 - BÁO CÁO LAB 4
ẰÕ, huyndph-vm - 20.6.98.227:3389 - Remote Desktop Connection
Oles fix Add Roles and Features Wizard Add features that are required for Web Server (IIS)?
ption The following tools are required to manage this feature, but do not brver (IIS) provides a reliable
install
4 Web Server (IIS) ition infrastructure
4 Management Tools [Tools] IIS Management Console
MW] Include management tools (if applicable)
ability Cancel |
a
BPA results Performance Performance
BPA results BPA results
20.6.88.227:3389 - Remote Desktop Connection
Fi Add Roles and Features Wizard
tive Directory Domain Services Web Server (lS) provides a reliable
L Active Directory Federation Services manageable, and scalable Web [_} Active Directory Lightweight Directory Services application infrastructure, {1 Active Directory Rights Management Services
() Device Health Attestation
Confirmation Fax Server
File and Storage Services (1 of 12 installed) Host Guardian Service
1 Hyper-V ) Network Controller Hide (Network Policy and Access Services
() Print and Document Services
LJ Remote Access ( Remote Desktop Services Volume Activation Services ene Windows Deployment Services Windows Server Update Services
BPA results Performance Performance
BPA results BPA results
Trang 11FPT POLYTECHNIC SOA206 - BÁO CÁO LAB 4
ẰÕ, huyndph-vm - 20.6.98.227:3389 - Remote Desktop Connection
— mm xnrHm NET Framework 3.5 combines the
APIs with new technologies for
Ù NET Framework 4.8 Features (2 of 7 installed)
t Background Intelligent Transfer Service (BITS) BitLocker Drive Encryption (Installed!
Data Center Bridging the ability to model a range of
CO Direct Play business processes
Enhanced Storage (Installed) Foilover Clustering Group Policy Management
1 Host Guardian Hyper-V Support [) VO Quality of Service (] IIS Hostable Web Core C1] Internet Printing Client
IP Address Management (IPAM) Server [1 LPR Port Monitor
BPA results Performance Performance
BPA results BPA results
§B huyndph-vm
- 20,6.88.227:3389 - Remote Desktop Connection
Fi Add Roles and Features Wizard
* The default installation for the Web Server (IIS) role includes the installation of role services that enable you to serve static content, make minor customizations (such as default documents and HTTP errors), monitor and log server activity, and configure static content compression
BPA results Performance Performance
BPA results BPA results
Trang 12GG „ Fpt University
FPT POLYTECHNIC SOA206 - BÁO CÁO LAB 4
ẰÕ, huyndph-vm - 20.6.98.227:3389 - Remote Desktop Connection
Select rc ser < DESTINATION SEI
>elect role services hơynđeh-vm
Select the role services to install for Web Server (\IS) Role services
S [A HTTP Errors Web Server to host an internal or [Y| Static Content extemal Web site or to provide an [C] HTTP Redwecuon environment for developers to Confirmation Webbav Publishing create Web-based applications
4 [F Health and Diagnostics M1 HTTP Logging (1 Custom Logging [] Logging Tools L] ODBC Logging (CO Request Monitor (Tracing
4 [Performance [J Static Content Compression Dynamic Content Compression
- 20,6.88.227:3389 - Remote Desktop Connection
Fi Add Roles and Features Wizard
Confirm installation selections Sa
Web Server (IIS) Management Tools
IIS Management Console
Web Server Common HTTP Features Default Document Hide
Directory Browsing
HTTP Errors Static Content
BPA results Performance Performance
BPA results BPA results
Trang 135 huyndph-vm - 20.6.88.227:3389 - Remote Desktop Connection
5 lab4-vm - 20.63,142.114:3389 - Remote Desktop Connection
em J Download NET 6.0 (Linux,macO x -E
Build apps - SDK © Run apps - Runtime ©
SDK 6.0.420 ASP.NET Core Runtime 6.0.28
os Installers Binaries The ASP.NET Core Runtime enables you to run existing web/server applications On Windows,
we recommend installing the Hosting Bundle, which includes the NET Runtime and IIS Linux support
IIS runtime support (ASP.NET Core Module v2) macOS
16.0.24052.28 Windows A
os Installers Binaries All Linux Pac!
Included runtimes
ASP.NET Core Runtime 6.0.28 Window:
.NET Desktop Runtime 6.0.28
13/48
Trang 14FPT POLYTECHNIC SOA206 BAO CAO LAB 4
4B lab4-vm - 20.63.142,114:3389 - Remote Desktop Connection
& D | B Dowload asp.net Core 6.0Rur x |
€ G © https://dotnet.microsoft.com/en-us/do d/dotnet/thank-you/run 6 s-hosting-bundle-installer
: Downloads
BE Microsoft | NET w#yNgr Features Learn Docs Community UVE TV
Home / Download / NET / 6.0 / ASP.NET Core 6.0 Runtime (v6.0.28) - Windows Hosting Bundle Installer
` >t Wi be ff "Vi (v6.0.28)
in NS F Installer!
@ ASP.NET Core Hosting Bundle contains everything a need to run existing web/ server apps The bundle includes the NET runtime, the ASP.NET Core runtime,
installed on a machine with IIS it will also add the 4 S Jule If you only want the NET or ASP.NET Core runtime, you'll find them in ,!
If your download doesn't start after 30 seconds, c
Direct link
Checksum (SHA512) 740e0e2e60fa763f67b981ca061733929ed08fce1cc0660cfefcb85c30d0b607cb94c9ac387 7b1c015050726170e1e47b718e8a0cef: a29fdf5bfc4da7ce0
To verify the download file hasn't been corrupted, you can use the SHA512 checksum information above to validate the file as explained in lownloaded bina
https;//download.visualstudio.microsoft.com/download/pr/c9277ae6-1bd2-47d6-aa9í-0409791e4a22/ce685479743a5567f43913362237e320/dotnet-hosting-6.0,
and if
OCopy
Tell us about yourself
Knowing who uses NET helps us build a better product
Are you a software developer?
I Windows Server Hosting
Welcome to the Microsoft NET 6.0.28 - Windows Server Hosting Setup
Please restart IIS after the installation completes You can find additional information |
Microsoft NET 6.0.28 - Windows Server Hosting and privacy
@- to the license terms and conditions
Trang 153 lab4-vm - 20.63.142.114:3389 - Remote Desktop Connection
Iisa SleiTs
48) Microsoft NET 6.0.28 - Windows Server Hosting Setup _ x
Microsoft NET 6.0.28 Windows Server Hosting
Installation Successfully Completed
€ > v + &› ThisPC >» Windows (C:) > » & earch Windows (C ˆ
Name Type Size
Quick access Deskt _ catalog File folde
Ml Deskto
inetpub File folder
Đào 1) Packages File folder
=| Documents LÍ PefLogs File folder
= Pictures | Program Files File folder Tene |) Program Files (x86) File folder
|| Temp File folder
® Network (| Users File folder
| Windows File folder
—¡ WindowsAzure File folder
10items 1item selected
453 PM 3/22/2024
FPT Polytechnic Hà Nội
15/48
Trang 16FPT POLYTECHNIC SOA206 - BAO CAO LAB 4
+ Ở máy thật mở nơi lưu trữ file catalog, copy toàn bộ dữ
liệu trong file publish vào máy ảo
nh
PowyerP oint
iar File folder
ta
teadit ; catalog > publish
Bh Zalo Received Renee ean
Trang 17
3 lab4-vm - 20.63.142.114:3389 - Remote Desktop Connection
I;5/4©I:JLJ
a Home Share View e
€ » 4 [| > ThisPC » Windows (C:) > catalog v
Name Date modified Type Size
r Quick access Desktop This folder is empty Downloads
€ » 4 [| > ThisPC » Windows (C:) > catalog > v
Name Date modified Type Size a
He
đe Downloads ñ es
items 99 items selected =
Trang 18(2 Application Pools Name D Status Binding
4 It Web Site 1 Started (ht *:80 (http
oy Sites
Filter: + 6o Show All | Group by: No Grouping
& Switch to Content View
=” Features View |j (3) Content View
Trang 19FPT POLYTECHNIC SOA206 - BAO CAO LAB 4
4B lab4-vm - 20,63.142.114:3389 - Remote Desktop Connection
s
CS = See lab4- Sự Add Website + «x li » là @ bà @-
File View Help
‘Gy Start Page = ~ wed | tt
x -ŸŠ lab4-vm (Iab4-vmìhuyndph3| et 7 Physical path:
© Application Pools Name ID
v @ Sites @ Default Web Site 1 Pass-through authentication
> @ Default Web Site
Example: veww.contoso.com or marketing.contoso.com
© Start Website immediately
Start Page =— = Content Directory `
* - 8Š lab4-vm (lab4-vmìhuyndph3| — 3 a 4 Physical path: — : L L—
© Application Pools Name ID Browse For Folder x
M.= > @ Default Web Site @ Default WebSite 1 Pass-through authentication ° = Select a directory for the application
Connect as Test Sett
iit v Make New Folder
Trang 2088 Fpt University
FPT POLYTECHNIC SOA206 - BÁO CÁO LAB 4
TỔ lab4-vm - 20,63.142.114:3389 - Remote Desktop Connection - o x
{Q} Internet information Services (IIS) Manager
(Œ TY [Br whem » sites >
Application pool:
Trang 21
FPT POLYTECHNIC SOA206 - BÁO CÁO LAB 4
Trang 22FPT POLYTECHNIC SOA206 - BAO CAO LAB 4
Sử dụng tài nguyên inventory-baseline-01 để triển khai ứng dung trén App Services
+ Giải nén file inventory tải trên UDEMY
+ Copy file đã giải nén vào trong thư mục readit đã tạo sẵn
FPT Polytechnic Hà Nội
22/48
Trang 23= This PC PowerPoint
4Ì Peery Pa
Downloads * UltraViewer Riot Client
Chrome Recycle Bin
bu (V006 UAAÀ)
Open Workspace from File
SG et
Visual Studio Code
Add Folder to Wotkspace
ave Workspace As
eh iret carved
enn Walkthroughs G006 S65 W ” GetStarted with VS Code
Customize your editor, learn the basics, and start coding
Deploy your App with the Azure Developer CLI New Auto Save
nfnotraclsng Recent Learn the Fundamentals
` You have no recent folders
Close Editor lose Window
v⁄_ Show welcome page on startup
FPT Polytechnic Hà Nội
Trang 24FPT POLYTECHNIC SOA206 - BÁO CÁO LAB 4
} Welcome X } Open Folder
€ *+ +® N§› m‹?c : 000: Lo Organize v — Newfolder
| fer Name Date modified
"3° Deploy your App with the Azure Developer CL! New
& Local Disk (C:)
~.D(D) Learn the Fundamentals
Open Confiqgurations Add Configuration
Get Started with C# Dev Kit
Ne ea
e Breakpoint
Connect account New Breakpoint
POUR Ub a eee er a) Enable All Breakpoints Ts Studio subsa get information about
Si Disable All Breakpoints
Remowe All eee
nstall Additional Debuggers
Sign in with Microsoft to use C# Dev Kit
CEL TIMELINE SOLUTION EXPLORER