Design and Implement cloud services Flashcards
Cloud service overview
1) Platform-as-a-Service (PaaS)
2) deploy websites and asynchronous work to Azure servers with simpler deployment options and without the need to manage complex networking and operating system updates.
Design and develop a cloud service
1) Install SDKs and emulators
2) Develop a web or worker role
3) Design and implement resiliency
4) Develop startup tasks
Installing SDKs and emulators
1) install the Azure SDK
2) Azure Compute Emulator and the Azure Storage Emulator.
Developing a web role
Web roles Used for web server applications hosted in IIS, such as an ASP.NET MVC application or a Web API application
Worker role
Used for running a compute workload. It can be used to launch an executable process or for background worker implementations that work in a similar manner to a Windows service.
Paas Vs Iaas
With PaaS cloud services, you are entrusting Azure to manage the operating system updates, patching, and deployment lifecycle of your applications. IaaS cloud services are a mechanism for grouping assets in your VM topology.
The RoleEntryPoint Class
1) Cloud service web and worker roles are projects that include a class that inherits the RoleEntryPoint base type
2) When each role is allocated to a VM, its entry point is invoked to initialize the environment. There are three key methods to override when you implement RoleEntryPoint: OnStart(), Run(), and OnStop()
cloud service project elements
1) ServiceDefinition.csdef
2) ServiceConfiguration.Local.cscfg, ServiceConfiguration.Cloud.cscfg
3) Roles node
Each startup task typically references a batch file that contains the instructions to run.
1) Install registry settings with a .reg file
2) Call a Windows PowerShell script
3) Install software using msiexec.exe
4) Launch a process
Configuring instance size and count
Similar to websites and VMs, you can scale cloud service roles both in terms of instance size and instance count, and you can use auto-scale for the instance count.
Scaling role instance sizes
The size of the local temp disk
The number of CPU cores available
The amount of RAM memory available
The network performance
scaling the instance size of a role instance
scaling the instance size of a role instance requires that you change the cloud service definition and re-deploy the package
Scaling role instance count
The role instance count can be scaled using the existing management portal or by adjusting the count in the cloud service configuration and re-deploying
cloud service endpoint types
1) Input endpoint
2) InstanceInput endpoint
3) Internal endpoint
Configuring HTTPS endpoints
1) acquire a certificate
2) convert the certificate into the PFX format by exporting it from the keystore.
3) upload the certificate to the certificate store used by your cloud service
4) configure an endpoint in your role