Categories
microsoft windows OS

Azure Cloud Service

Azure Cloud Service

Introduction to Azure Cloud Service

Microsoft Azure offers it’s cloud services in Platform as a Services (PaaS) form to users the services offered are like App Service, Web Services, etc. Azure Cloud services use cloud computing platforms to provide computing and management services to the users over the internet using pay-as-you-go service and support applications by providing scalability, reliability, and easy to operate the portal. Azure cloud services Microsoft data center to store the data and provide other cloud resources like web hosting and service management to the users. Users have the ability to configure the resources as per the requirement so that the user has more control so that the user can use newer and innovative technology to move forward in today’s digital world.

How does Azure Cloud Service work?

Azure cloud services use Virtualization technology which is used to separate the hardware and operating system from the computer. Virtualization has an abstraction layer known as hypervisor which is used to reproduce the functions and CPU capability of the computer in the virtual machines (VMs).
The hypervisor is used to run multiple VMs simultaneously by optimizing the capacity of the stopped or failed hardware.
Virtual machines run all the managed platforms like Windows or Linux operating systems.
So basically azure uses virtualization to create a virtual machine and repeats the process on a large scale using data centers in different regions of the world.
This data center has racks and each rack has different servers. This server has a hypervisor so that multiple virtual machines can run on those servers. To connect all those servers around the world a network switch is used.
Racks in the data center have one software running on it; this special software is a Fabric Controller which is connected to other software. This connection of software using fabric controllers is known as Orchestrator.
Orchestrator manages everything happening on the Azure cloud. It also responds to any request coming from the user.
User requests can be made through the Orchestrator WebAPI. To call this web APi azure provides users with different tools like the Azure portal for the user interface.

For Example as soon as a user requests to azure to create a machine or server. Orchestrator collects everything that’s required and chooses the nearest and best racks. This collected package is sent to the  Fabric Controller. So the fabric controller creates the VM or server, so that the user can connect to it. Azure helps developers or Azure admins to develop, build, deploy, and manage deployed applications or services. Users can host different cloud services as needed after creating the virtual machine.

There are two different types of cloud services roles based on how it is hosted:

Web Role: Azure cloud services automatically deploys and hosts your application through the IIS.
Worker Role: Azure cloud service does not use IIS for hosting or deploying and uses the application as standalone.

Components of Azure Cloud Service

Microsoft Azure provides users with a rich set of components as part of Azure cloud services to develop applications remotely. Here we will see all the component used in azure cloud service with a brief description of each

1. Compute

Compute is one of the basic and primary services offered by azure. This provides an interface to execute the application. Azure provides a variety of options to host the application and services. Here are some of the compute services:

Azure Virtual Machine: Linux or Windows VMs hosted in Azure
– Azure Kubernetes Service: Manage a cluster of VMs that run on containerized services.
– Azure Functions: Serverless compute service based on event

2. Storage

Azure provides cloud storage as a service, this storage includes external disk attached to the virtual machines (VMs) and also has other storage formats like vault share and databases, This storage systems and databases can be increased or decreased as per requirement. Storage used in cloud services are :

– Azure Blob Storage
– Azure Queue Storage
– File Storage
– Table Storage

3. Networking

Networking in the azure cloud service is used to build a connection between on-premise infrastructure and cloud services. This network connection can be private or public. The user has the option to configure the network based on his requirement so that efficiency can be achieved on inbound and outbound traffic and users can have more control over the traffic to achieve scalability with optimized performance. Here are some of the networking example:

– Azure Virtual Network
– Azure Load Balancer
– Azure VPN gateway

4. Web App Hosting

This component helps users to run web applications in a virtual machine or on servers. This web application can be developed on multiple platforms with different languages like PHP, Python, Java, etc.  Also azure has huge support for third party products that are available in the Azure marketplace to run on Azure like SAP or SQL databases. It has all the support to build and host the web app and services used for this are like:

– Azure App Service
– Azure Notification Hubs
– Azure API Management

5. Artificial Intelligence (AI)

Azure cloud has a platform for handling AI and machine learning analytics that is used to develop intelligent human behavior and analyze data. It is used to collect different data from sources and analyze the data to build predictive models and forecast future behavior or trends. Here are some of the services under AI.

– Azure Machine Learning Service
– Azure Machine Learning Studio

6. Internet of Things (IoT)

In this cloud service different IoT data is collected from sensors and devices and sent to IoT hubs to manage the IoT services. Users can develop apps and dashboards to monitor and control all of your application services and devices remotely. Here are the services offered under IoT:

– IoT Central
– IoT hub
– IoT Edge

7. Integration

Users often require to connect or integrate different services offered in the cloud. Azure integration services depend on 4 primary services: Messaging(Service Bus), orchestration(Logic Apps), Event, and API. To develop business processes users need to integrate all these primary services in the virtual machines or servers.

8. Security

Microsoft Azure cloud protects data or applications with inbuilt services with security intelligence to help newer threats and responds quickly by monitoring each and every aspect of applications.

How to create Azure Cloud Service

Below are the steps to create Azure Cloud Service:

Step 1: Login into the Azure Portal using a valid username and password.

Step 2: Select Create a Resource button from the home page.

Azure Cloud Service1

Step 3: Search the Marketplace field search for Cloud Services.

Marketplace field search

Step 4: Select Create button from the Cloud Service

Azure Cloud Service3

Step 5: Enter the Cloud Service detail on the page below:

Azure Cloud Service4

Step 6: Enter the DNS name, Subscription and Resource group, and Location detail.

Cloud Service

Step 7: Select Select a Package option to load your application detail in the left pane

application detail

Step 8: On clicking on Browse for a file from Upload a package upload your code for application *.zip,*.cspkg,*.cscfg into Azure.

Browse for a file

Step 9: Click on the create a button of the cloud services page.

Create Button

Now deployment will start and once the cloud service is created successfully.

Features of Azure Cloud Service

Azure Cloud service offers scalability, availability, and cost-effective.
Cloud storage is virtual and it can be scaled up or down based on the requirement.
Users can build and deploy the applications in premium virtual machines within a minute which can be accessed remotely from anywhere.
Azure cloud service has a feature to share the personal document so that users can collaborate.
Azure cloud service helps in computation on large data with ease due to it’s computing power and big data can also be stored in HDinsight, a NoSql database offered by Azure.
Azure cloud services have the ability to monitor the services. It detects the failed virtual machines or servers and restarts the failed services by running servers on new machines.

Conclusion

In this article we saw how we users can benefit from different services offered in azure cloud services which are cost-effective and help in the growth of organizations with less hassle.

Recommended Articles

This is a guide to Azure Cloud Service. Here we discuss an introduction to Azure Cloud Service along with the working, components and features. You can also go through our other related articles to learn more –

Azure vs Google Cloud
Azure Backup
Azure Mobile App
Tables in Azure

The post Azure Cloud Service appeared first on EDUCBA.

Read more: educba.com

Categories
microsoft windows OS

Windows PowerShell ISE

Windows PowerShell ISE

Introduction to Windows PowerShell ISE

Windows PowerShell ISE is the scripting environment for developing and running PowerShell cmdlets and scripts. It is the interface in which the scripts or cmdlets can be run, debug and tested. It is very useful to use as it has different colors for keywords, which makes the user differentiate between keywords and variables. It also has IntelliSense feature like the one available in visual studio that suggests for the related objects/functions associated with an object. The first version was introduced with Windows PowerShell Version 2 and redesigned in version 3. Now ISE is supported in all Windows PowerShell versions up to 5.1. PowerShell ISE can be started by selecting the start and Windows PowerShell ISE or can be opened by typing powershell_ise.exe in the run box or command Prompt.

Windows PowerShell ISE Requirements

Starting from Windows XP, the PowerShell can run on all the versions of windows. It is not supported in Server core installations. It requires .Net framework 3.5 or above to be installed, if the .Net framework is not installed it will be installed automatically during ISE installation by the server manager.

Analyzing the PowerShell ISE Design

The following are the components:

Menu Bar
Tabs
Toolbar
Console Pane
Status Bar
Script Pane
Help Section

Menu Bar: The menu bar has options to create, open or edits a file. It also has menus for Tools, Debug and Help.

Tabs: A tab is nothing but the place where the script runs. A maximum of 8 tabs can be kept open simultaneously.

ToolBar: The toolbar has the following buttons:

New: To create a new script
Open: Opens an existing script
Save/cut/copy/paste: To save a script and options for cut, copy and pasting of scripts
Run: To execute a script
Stop: To stop the execution

Along with the above mentioned, there are buttons for undoing and redoing, clearing output pane and creating a new tab for remote sessions

Script Tab: The script editing is done here. It has the current script name and when hovered over displays the location of the script.
Output Pane: Results are displayed here.
Command Pane: Command or commands can be run here. To run multiline commands, presssshift+Enter after each command for a new line and enter finally to execute them. The command pane has the location of the current working directory.
Status Bar: Displays the status of the script. Errors or success message is displayed after each execution.
Help: Help menu has the library or files for all the available commands. It can be opened by pressing the F1 key also. The help guides how a cmdlet must be constructed, the necessary parameters required and their type.
Establishing Remote Connection: Using PowerShell, it is easy to run the script on a remote computer. This is one of the underrated features of PowerShell that is unknown to many. To run a script on the remote computer, click on New remote PowerShell tab under the file menu, it prompts for the details of the remote computer.

Debugging Scripts in PowerShell ISE

Debugging is the act of pausing the execution of a script at a designated place to examine the values of a variable or a function at that point. This helps in examining the errors or check for the correct logical flow of the script.  The place where the execution is paused is called a breakpoint. As soon as, a breakpoint is reached in a script, the execution is paused.

Once paused, we can hover over the values of a variable to know its current value or we can run a command or enter the variable name in the console pane to know the value. Any value of the variable that is within the context of the running script can also be modified. Once all the details are examined, the script can be resumed. An important thing to remember is that the breakpoints can be inserted only after a script is saved.

There are three types of the breakpoint in PowerShell ISE:

Line Breakpoint: The script is paused when the desired line is reached.
Variable Breakpoint: The script is paused when the desired variable’s value is changed.
Command Breakpoint: Whenever the designated command is to be run, the script is paused.

Setting a Breakpoint: A breakpoint can be set up in two ways.

Right-Click on the line where the execution must be paused and select Toggle breakpoint.
Pressing F9 will insert a breakpoint on the line.

To set a variable breakpoint, execute the below in the console pane

Set-PSBreakpoint -Script test.ps1 -Variable test

The above sets a breakpoint on the variable test.

To display, the list of breakpoints in the current session, the Get-PSBreakPoint cmdlet can be run on the console pane.

Code:

Write-Host “Breakpoint Tutorial”
Write-Host “Break point will be inserted here”
$testvariable = “test”
Write-Host “Variable breakpoint will be added above”

Output: In the below example, there are two breakpoints. One is set using the cmdlet and the other is set using F9.

Windows PowerShell ISE - 1

Removing a Breakpoint

To remove a breakpoint, right-click on the line and select toggle breakpoint. It can also be removed from the console pane by using the id as below.

Remove-PSBreakpoint -Id 0

See the below image where the breakpoint is removed

Code:

Write-Host “Breakpoint Tutorial”
Write-Host “Break point will be inserted here”
$testvariable = “test”
Write-Host “Variable breakpoint will be added above”
Remove-PSBreakpoint -Id 0

Output:

Windows PowerShell ISE - 2

1. To remove all breakpoints in the current session, select remove all breakpoints under the debug menu or press ctrl+shift+F9 or run the below cmdlet in console pane.

Get-PSBreakpoint | Remove-PSBreakpoint

2. A breakpoint can also be disabled instead of removing it completely so that it can be enabled later using the below cmdlet using its id

Disable-PSBreakpoint -Id 1

3. To disable all breakpoints, use the below cmdlet

Get-PSBreakpoint | Disable-PSBreakpoint

4. For enabling a breakpoint to use the below cmdlet

Enable-PSBreakpoint -Id 10

To enable all the breakpoints, click on the debug menu and select enable all breakpoints.

Walkthrough of a Debugging Session

To run a script, press F5. The script will pause once a breakpoint is reached.
To continue after a breakpoint, press F5 or type c in the control pane and enter.
To view the stack trace, press ctrl+shift+D or in the console pane, type K.
To step into a function, press F11.
To step over a function, press F10.
To stop debugging, press shfi+F5.

Conclusion

Thus, the article covered in detail about Windows PowerShell Ise. It explained the various features available, the running and debugging of a script. It covered in detail on the various debugging options available and how to execute them. To understand more in detail, it is advisable to explore the ISE by running various example scripts.

Recommended Articles

This is a guide to Windows PowerShell ISE. Here we discuss an introduction, requirement and debugging of a script in detail and how to execute them. You can also go through our other related articles to learn more –

PowerShell Split String
PowerShell Tools
PowerShell New-Item
PowerShell Alias

The post Windows PowerShell ISE appeared first on EDUCBA.

Read more: educba.com