You have created a virtual machine, named TrainingVM in TrainingCloudService. Now make sure that developer from QuickCloudService will able to access the TrainingVM using port 8080. How it can be enabled?
Correct Answer : Get Lastest Questions and Answer : Exp: Windows virtual machines that you create in Azure using the classic deployment model can automatically communicate over a private network channel with other virtual machines in the same cloud service or virtual network. However, computers on the Internet or other virtual networks require endpoints to direct the inbound network traffic to a virtual machine.
When you create a Windows virtual machine in the Azure classic portal, common endpoints like those for Remote Desktop and Windows PowerShell Remoting are typically created for you automatically. You can configure additional endpoints while creating the virtual machine or afterwards as needed.
Each endpoint has a public port and a private port:
The public port is used by the Azure load balancer to listen for incoming traffic to the virtual machine from the Internet. The private port is used by the virtual machine to listen for incoming traffic, typically destined to an application or service running on the virtual machine. Default values for the IP protocol and TCP or UDP ports for well-known network protocols are provided when you create endpoints with the Azure classic portal. For custom endpoints, you'll need to specify the correct IP protocol (TCP or UDP) and the public and private ports. To distribute incoming traffic randomly across multiple virtual machines, you'll need to create a load-balanced set consisting of multiple endpoints.
After you create an endpoint, you can use an access control list (ACL) to define rules that permit or deny the incoming traffic to the public port of the endpoint based on its source IP address. However, if the virtual machine is in an Azure virtual network, you should use network security groups instead.
Firewall configuration for Azure virtual machines is done automatically for ports associated with remote connectivity endpoints that Azure sets up automatically. For ports specified for all other endpoints, no configuration is done automatically to the firewall of the virtual machine. When you create an endpoint for the virtual machine, you'll need to ensure that the firewall of the virtual machine also allows the traffic for the protocol and private port corresponding to the endpoint configuration. To configure the firewall, see the documentation or on-line help for the operating system running on the virtual machine.
Question : You are developing an application which will be deployed in Azure Cloud. Now you have three different subscription for Azure Dev, Test and Prod. Your Azure Power Shell profile is configured with the Dev subscription as the default. You need to create a new virtual machine in the Test subscription by using the least administrative effort. Which Power Shell command should you use?
Correct Answer : Get Lastest Questions and Answer : Explanation: Select-AzureSubscription Selects or clears a Windows Azure subscription to be used as the current subscription.
the Azure PowerShell console, type (get-module azure).version. The Select-AzureSubscription cmdlet selects or clears the subscription to be designated as the current subscription. A current subscription is the one whose settings are available for use by other Windows Azure PowerShell cmdlets. If a subscription is designated as the default subscription, it is automatically made current when starting a Windows PowerShell session or running a script. To set the default subscription, use the DefaultSubscription parameter and specify the name of the subscription to designate as the default. The default subscription setting can be cleared by specifying the NoDefaultSubscription switch parameter. To specify a different subscription for the current session without affecting the default subscription, use Current.
-Current Specify to reset the current subscription setting. Defines the subscription that will be used by all cmdlets in the current session. If no current subscription is defined, the default subscription setting is used.
-Default Specify to reset the default subscription setting. The default subscription is used by all Windows Azure PowerShell cmdlets across sessions when no current subscription selected.
-NoCurrent Specify to clear the current subscription setting. The current subscription is used by all cmdlets in the current session. If no current subscription is defined for a session, the default subscription setting is used.
-NoDefault Specify to clear the default subscription setting. The default subscription is used by all Windows Azure PowerShell cmdlets across sessions when no current subscription selected. If no current subscription is defined for a session, having no default subscription will result in an error.
-SubscriptionDataFile Specifies the path and file name of the subscription data file. This parameter is optional. If it is not provided, the subscription data is selected from a default file in the user's profile.
-SubscriptionName Specifies the name of the subscription that the Windows Azure PowerShell cmdlets will use to read default values. Use the Add-AzureAccount cmdlet to store settings for one or more subscriptions.
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Question : You are managing a virtual machine on Azure Cloud Service, name of the VM is QuickVM . You have created an application which help user to quickly upload the files (Similar to Google Drive). However, your application became quite popular and application usage has increased many fold. However, your application supports only file upload less than 10 MB Now you wanted to improve disk performance of your QuickVM, select the correct Powershell command ? 1. Get-AzureVM "AppService" -Name "QuickVM" | Set-AzureDataDisk -LUN 3 -HostCaching ReadWrite | Update-AzureVM.
The Get-AzureVM cmdlet retrieves information about virtual machines running in Azure. It returns an object with information on a specific virtual machine, or if no virtual machine is specified, for all the virtual machines in the specified service of the current subscription.
-Name Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service.
Set-AzureDataDisk Sets the host-cache mode on an existing data disk object.
The Set-AzureDataDisk cmdlet updates the cache attributes of an existing data disk object on an Azure virtual machine. The possible host caching values are: None, ReadOnly, and ReadWrite. You specify which data disk to update by specifying its logical unit number (LUN).
-HostCaching Sets the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. The effect of changing them is that reads, writes or both read/writes can be cached for performance. For example, if you have read-only database/Lucene index/read-only files it would be optimal to turn on read-cache for the drive.
-LUN Numerical value that defines the slot where the data drive is mounted in the virtual machine.
-VM The virtual machine where the data disk is mounted.
1. Create an alert rule to monitor web endpoints. 2. Create a Notification Hub alert with response time metrics. 3. Access Mostly Uused Products by 50000+ Subscribers 4. Configure the performance counter on the cloud service.