Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows...
Transcript of Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows...
![Page 1: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/1.jpg)
![Page 3: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/3.jpg)
Introduction
• software architects gmbh
• Rainer Stropek
Developer, Speaker, Trainer
MVP for Windows Azure
@rstropek
http://www.timecockpit.com
http://www.software-architects.com
![Page 4: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/4.jpg)
Vorkenntnisse und Ziele
• Vorkenntnisse:
● Schon einmal von Azure gehört
• Ziele:
● Was bedeutet Azure für Entwickler?
● Was bleibt gleich, was ist neu?
● Tipps, Tricks und typische Fallen
• Kein Ziel:
● Marketingsession
![Page 5: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/5.jpg)
Um mit Cloud Computing zu starten,
muss ich viel lernen – keine Zeit dafür!
Common Creative License
Source: http://www.flickr.com/photos/fornal/394740182/
![Page 6: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/6.jpg)
Just another
Windows Server
Just another
IIS
Just another
SQL Server
Just another
Server Cluster
Just another
Web Farm
Just another
SQL Server Cluster
![Page 7: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/7.jpg)
TIME
IT C
AP
AC
ITY
tatsächliche
Last
Ressourcen
erwartete Last
bestimmt Umsatz
bestimmen Kosten
![Page 8: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/8.jpg)
Intelligent Network Load Balancer
Stateless “Worker” Machines
Stateless Web and/or Application Servers
Async Activation
Network Activation
Shared
Filesystem
Partitioned
RDBMS
Key/Value
Datastores
State
Tier Queues
![Page 9: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/9.jpg)
Clients Webserver DB-Server
http GET (Form)
http POST (Reg.)
Events
externer
Partner
Save Reg.
Confirm.
Doc.
http GET (Conf.)
Conf.
![Page 10: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/10.jpg)
![Page 11: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/11.jpg)
Clients Webserver
Reg.
Queue
Table
Worker
Blob Extern DB
![Page 13: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/13.jpg)
Service, Rollen, Instanzen
Status Svc.
HTTP
Customer Website WebDAV Thumbnail Worker
Port 80
HTTP
Port 8090
HTTP
S XL M
Height
Width 500 MB
200 px
200 px
Service Definition Service Configuration
![Page 14: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/14.jpg)
demo Walkthrough:
Konfigurationseinstellungen
.cscfg und .csdef statt web.config
![Page 15: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/15.jpg)
Com
mo
n C
rea
tive L
ice
nse
So
urc
e:
htt
p:/
/ww
w.f
lickr.
co
m/p
ho
tos/a
lan
cle
ave
r/2
63
88
83
65
0/
In Azure zahlt man dauernd,
selbst während der Entwicklung!
![Page 16: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/16.jpg)
Windows Compute Emulator
• Windows Azure Compute Emulator aka DevFabric
● Teil des Windows Azure SDK kostenlos
• Simuliert Windows Azure während des
Entwicklungsprozesses
● Zum Debugging
● Zur Kostenreduktion
● Für Offline-Szenarien
• Emulator ≠ Windows Azure
● Emulator kann auf lokale Ressourcen zugreifen
● Lokale Ressourcen stehen in der Cloud eventuell nicht zur Verfügung
● Test im Emulator ersetzt Test in der echten Cloud nicht!
![Page 17: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/17.jpg)
Windows Compute Emulator
• Voraussetzungen
● Windows Azure SDK und Azure-Tools für VS
● Visual Studio 2010
● IIS und SQL Server 2008 R2 (siehe auch MSDN)
• Installation
● Installation von SDK und Tools
● Emulator konfigurieren (siehe auch MSDN)
• Emulatoren unterstützen nur lokalen Zugriff
● Tipp: Verschiedene Blogartikel beschreiben, wie Emulatoren über das
Netzwerk zum Testen verfügbar gemacht werden können (z. B.
Emmanuel's Blog)
![Page 18: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/18.jpg)
demo
Windows Compute Emulator
Lokale Entwicklungsumgebung für die Cloud
![Page 19: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/19.jpg)
Cloud Computing ist auch nichts anderes als Hosting – alter Hut!
Com
mon C
reative L
icense
Sourc
e:
htt
p:/
/ww
w.f
lickr.
com
/photo
s/9
6051197@
N00/1
85669
05
7/
![Page 20: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/20.jpg)
LB
LB
D
N
S
Service Deployment
Your Service
Fabric Controller
Webportal (API)
Service Model Service Service
DNS config
![Page 21: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/21.jpg)
LB
LB
D
N
S
Service Scaling
Your Service
Fabric Controller
Webportal (API)
Service
Service
Service
Model
Service
Service
Service Service
Service
![Page 22: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/22.jpg)
LB
LB
D
N
S
Service Monitoring & Recovery
Your Service
Fabric Controller
Webportal (API)
Service
Service
Service
Model
Service
![Page 23: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/23.jpg)
demo
Webfarm
Windows Azure Compute Emulator
![Page 24: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/24.jpg)
Cloud Computing ist ein Sicherheitsrisiko!
Com
mon C
reative L
icense
Sourc
e:
htt
p:/
/ww
w.f
lickr.
com
/photo
s/c
olo
dio
/2462089085/
![Page 25: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/25.jpg)
Informationssicherheit
• Datenschutz
● Gesetzliche Rahmenbedingungen beachten
● Mögliche Lösung: Windows Azure Connect
• Datensicherheit
● In der Cloud möglicherweise deutlich besser
● Vertraulichkeit – Zertifikate, Verschlüsselung etc.
● Verfügbarkeit – Cluster, Ausfallszenarien etc.
● Physischer Zugriffsschutz
![Page 26: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/26.jpg)
Windows Azure Connect (in CTP)
Windows Azure
On-Premise
„DMZ in der
Cloud” (VPN)
Firewall/Load
Balancer
An Details interessiert?
http://msdn.microsoft.com/en-us/gg502176
![Page 27: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/27.jpg)
demo
Windows Azure Connect
Aus der Cloud auf on-premise Ressourcen zugreifen
![Page 28: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/28.jpg)
Das Deployment in Azure ist so kompliziert –
nicht verwendbar!
Common Creative License
Source: http://www.flickr.com/photos/visualpanic/2312649191/
![Page 29: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/29.jpg)
Trennung in „Production“ und „Staging“
• Production
● http://<myapp>.cloudapp.net
• Staging
● http://<guid>.cloudapp.net
● Zum Testen und zum Vorbereiten einer neuen Version
![Page 30: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/30.jpg)
• In-Place Update
● Kann auf Production und Staging angewandt werden
● Servicemodell darf sich nicht unterscheiden (z. B. gleiche Anzahl
Rollen)
• VIP Swap (Virtual IP Swap)
● Schaltet um zwischen Prod ↔ Staging
● Servicemodell darf sich ändern; Endpoints müssen ident bleiben
Typen von Deployments
![Page 31: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/31.jpg)
Deployment mit VS Authentifizierung
mit Zertifikat
Deployment über
Azure Store
Deployment-
prozess in VS
![Page 33: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/33.jpg)
VIP Swap
• Prod enthält Vx
• Deploy Vnext nach Staging
● Staging-Umgebung mit Staging-DB verbinden
● Finale QS
● Staging-Umgebung mit Prod-DB verbinden
● Finale QS, Warm-up
• VIP Swap durchführen, jetzt ist Vnext online
• Staging stoppen und löschen
![Page 34: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/34.jpg)
demo
VIP Swap
Prod ↔ Staging
![Page 35: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/35.jpg)
Windows Azure SDK-Deployment-Tools
• CSPack.exe ● Deploymentpaket für Emulator oder Azure-Deployment
● Wird typischerweise mit Visual Studio gemacht
• CSRun.exe ● Pakete in Emulator deployen und starten
● Wird typischerweise mit Visual Studio gemacht
● Tipp: Tester können CSRun verwenden, um Anwendungen ohne VS und Source-Code zu starten
• CSUpload.exe – VHDs in Azure laden
• CSManage.exe ● Tool (Sample) zum Automatisieren von Azure-Servicetätigkeiten
● Beispiele: Deployment, Auto-Scaling etc.
![Page 36: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/36.jpg)
demo
Anwendung mit CSRun starten
Automatisches Deployment in den Emulator
![Page 37: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/37.jpg)
Für die Profis …
• Generische Rollen, die Assemblies zur Laufzeit z. B. aus dem Blob-Store nachladen
• Möglich mit Web- und Worker-Rolle ● Relativ einfach: Worker-Rolle
● Relativ schwierig: Web-Rolle
• Tipp: eigene AppDomains zum leichteren Entladen der Assemblies
• Weitere Literatur ● Blogartikel von Rainer Stropek
● AppDomain-Klasse
● Assembly-Klasse
![Page 38: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/38.jpg)
Entweder alles in Azure oder nichts –
viel zu hohes Risiko!
Common Creative License
Source: http://www.flickr.com/photos/sk8geek/5501331984/
![Page 39: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/39.jpg)
„Design to Cost“
• Suchen und nutzen Sie Quick Wins
• Jede Komponente kann einzeln genutzt werden ● Blob-Store für Backup
● Table-Store für Logging
● Queues und AppFabric zur Anwendungsintegration
● Webserver mit On-Premise-DB
● SQL Azure zur Datenintegration über Standorte hinweg
● …
• Kreatives Kombinieren der einzelnen Komponenten ist gefragt
![Page 40: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/40.jpg)
Azure ist proprietär,
nur Windows und .NET!
Common Creative License
Source: http://www.flickr.com/photos/jasonp80/3844987099/
![Page 41: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/41.jpg)
„Just another IIS“
• Z. B. PHP über FastCGI
• Auch Unterstützung für
Worker-Rollen
• PHP Commandline
Deployment Tool
<system.webServer> <fastCgi> <application fullPath="%RoleRoot%\php\php-cgi.exe"/> </fastCgi> </system.webServer>
<add name="PHP via FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="%RoleRoot%\php\php-cgi.exe" resourceType="Unspecified" />
Windows Azure Command-line Tools for PHP
PHP
Core
Source
Code
Extensions
![Page 42: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/42.jpg)
• Wrapper Libraries für REST-Services
• Hilfsklassen für Azure-Storage
• SQL Server-Treiber, Diagnostics
• AppFabric-SDK
PHP-SDK für Windows Azure
require_once 'Microsoft/WindowsAzure/Storage/Blob.php'; $storageClient = new Microsoft_WindowsAzure_Storage_Blob(); $result = $storageClient->putBlob('testcontainer', 'example.txt', '/home/maarten/example.txt');
![Page 43: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/43.jpg)
In Azure kann man
keine Drittkomponenten verwenden!
Com
mon C
reative L
icense
Sourc
e:
htt
p:/
/ww
w.f
lickr.
com
/photo
s/t
wo
-wro
ngs/2
05467442/
![Page 44: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/44.jpg)
Assemblies
• Copy Local = true für
zusätzliche, referenzierte
Assemblies
• Sonstige Dateien deployen:
siehe Adding Files to your
Windows Azure Service
Package
![Page 45: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/45.jpg)
Startup Scripts
<ServiceDefinition […]>
<WebRole name="SampleWebApp">
<Startup>
<Task commandLine="Register.cmd"
executionContext="elevated"
taskType="simple" />
</Startup>
</WebRole>
</ServiceDefinition>
![Page 46: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/46.jpg)
demo
Unmanaged Code in Azure
Elevated Startup Tasks
![Page 47: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/47.jpg)
Wann VM-Rolle?
• Lange laufende Installationsroutinen
• Installationsroutinen, die nicht automatisiert
werden können
● Manueller Eingriff notwendig
• Instabile Installationsroutinen
![Page 48: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/48.jpg)
Die VM-Rolle ist nicht …
• … Infrastructure as a Service
• … eine Plattform für Servervirtualisierung
• … eine Plattform für Desktopvirtualisierung
![Page 49: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/49.jpg)
Com
mon C
reative L
icense
Sourc
e:
htt
p:/
/ww
w.f
lickr.
com
/photo
s/g
host_
of_
kuji/
395419629/
Azure ist ein schwarzes Loch –
man sieht nicht hinein!
![Page 50: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/50.jpg)
Monitoring On-Premise vs. Cloud
On-Premise
• Statische Umgebung
• Gut bekannte Umgebung
• Meist wenige Server
Cloud
• Dynamische Umgebung
• Viele Instanzen, elastisch
• Viele Knoten
![Page 51: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/51.jpg)
RDP vs. Diagnostics
• Remote Access mit RDP
● Während der Entwicklung
● Troubleshooting in speziellen Situationen (z. B. Speicher- oder CPU-Bedarf)
• Diagnostics
● Laufendes Monitoring
● Langzeitstatistiken („Telemetrie”)
● Überwachung des Gesamtsystems steht im Vordergrund
![Page 52: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/52.jpg)
Azure Diagnostics
Role
Role Instance
Diagnostic
Monitor
Local Directory Storage
Request Upload
Windows
Azure
Storage
Scheduled or On-Demand
Upload
Windows Data
Sources
Image Source: Microsoft PDC 09, Session SVC15, Matthew Kerner
![Page 53: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/53.jpg)
Mission Impossible?
![Page 54: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/54.jpg)
demo
RDP in der Worker-Rolle
Import OpenStreetMap in SQL Azure
![Page 55: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/55.jpg)
Top-10-Tipps für den Weg in Azure
1. Beste Voraussetzung: 100 % Managed Code
2. Design To Cost (DTC)
3. PaaS statt IaaS
4. Scale out, not up
5. Asynchrone Verarbeitung
6. Optimieren ist sexy!
7. Load Testing
8. Multi Tenancy
9. Skaleneffekte durch Automatisieren und Standardisieren nutzen
10. Lernen, lernen, lernen
![Page 56: Windows Azure Compute Myth Busters€¦ · Windows Compute Emulator • Voraussetzungen Windows Azure SDK und Azure-Tools für VS Visual Studio 2010 IIS und SQL Server 2008 R2 (siehe](https://reader033.fdocuments.us/reader033/viewer/2022042509/5f881a9500f2fa7d025b31e1/html5/thumbnails/56.jpg)
Your Feedback is Important
Please fill out a session evaluation form.
Thank you!