Question:- How to create a virtual machine on Azure?
Answer:- To create a VM on Azure, you need to follow the below steps: 1. Sign in to Azure 2. Sign in to the Azure portal 3. Search for virtual machines in the search box 4. Under Services, select Virtual machines 5. Click on Add in the Virtual machines page 6. In the Basics tab, under Project details, select the correct subscription, and choose Create new resource group 7. Type myResourceGroup for the name 8. Under Instance details, the Virtual machine name should be myVM 9. Choose your Region [e.g., (US) East US] 10. Choose Windows Server 2019 Datacenter for the Image 11. Leave the rest as default 12. Under Administrator account, enter a username and a password 13. Under Inbound port rules, click on Allow selected ports, and then select HTTP (80) and RDP (3389) for Select inbound ports 14. The rest will remain as default here 15. Finally, click on the Review + create button
Question:- How to deploy SQL Database in Azure?
Answer:- 1. Authenticate to the Azure portal 2. Click on SQL Databases 3. Click on Servers 4. Click on a server name to connect to 5. Press Configure 6. Open SQL Server Management Studio 7. Connect to Database services (usually, this happens by default) 8. Finally, click on Connect
Question:- How to export users from Azure Active Directory?
Answer:- You can export users from Azure AD by following the below-mentioned steps: 1. Install the Azure PowerShell module using the following cmdlet: install-module az 2. To connect to Azure AD and Azure, run: Connect-azaccount 3. To export, all users to a CSV file, run: Get-AzADUser | export-csv file.csv 4. If you only need to export the first 10 users, then you can use: Get-AzADUser -First 10 | export-csv file.csv 5. To export all users after the first 2 users, you can use: Get-AzADUser -Skip 2 | ft
Question:- How to create a resource group in Azure?
Answer:- To create a resource group in Azure: 1. Log in to the Azure portal 2. In the menu on the left, select Resource groups 3. In the Resource groups page, click on Add 4. Fill in the details in the fields as follows: • Subscription: Select your Microsoft Azure subscription • Resource group name: Enter a unique name • Resource details region: Select a location 5. Click on Review + create 6. Once validation is passed, click on Create to create your resource group That’s it in our blog on MS Azure interview questio
Question:- What are the different storage services available in Azure apart from Blob storage?
Answer:- Azure offers three other types of storage services, apart from Blob storage, table storage, queue Storage, and file storage. • Azure table storage: It allows the deployment of applications with semi-structured data and a key-value store, which is NoSQL-based. • Used when there is a requirement for applications with a flexible data schema • Emphasis is on enterprise-level data and strongly follows consistent models • Data is in terms of entities grouped under tables • Azure queue storage: The message queue system is capable of handling large workloads through the development of flexible and durable applications. • Ensures that the applications are scalable and less likely to have component failures • The queue monitoring helps the application ensure that the requirements are met • Azure file storage: It offers file sharing and access using server message block (SMB) protocol. The data is secured with SMB 3.0 and HTTPS. • Improves the performance of on-premise applications • Azure takes care of OS deployments and hardware management
Question:- Create a Virtual Machine with Azure CLI.
Answer:- Following is an example how one can create a VM using Azure CLI: az vm create --resource-group myResourceGroupName --name myVM --image Win19Datacenter --public-ip-sku Standard --admin-username AzureuserNAME --admin-password AzurePASSWORD
Question:- How will you execute code with the help of Azure if there is no server?
Answer:- Azure Functions can execute code without a server. These services simplify complex orchestration and challenges. They help connect with other services without hard coding of integrations, which speeds up the development process. Developers can write and focus on the business logic code saving time and effort. Azure Application Insights can help analyze and monitor code performance as well as identify hiccups and failure points across various application components.
Question:- What will you do in case of a drive failure?
Answer:- When a drive failure occurs, the following steps need to be performed: Ensure that the drive is not mounted so that Azure Storage is functioning without fail Replace the drive so that it is remounted and formatted
Question:- What could be the reason for the client application to be disconnected from the cache?
Answer:- There could be two possible reasons: • Client-end • Redeployment of application • Scaling operation by application • Change in the client-side networking layer • Transient errors in the client or network between the client and the server • The crossing of bandwidth threshold limits • Server-end • Azure Redis Cache service had a failover from the primary node to the secondary node • The server instance where the cache was deployed had patching or maintenance
Question:- How can you stop the high load issue on an application in cases of no man support on the flow?
Answer:- Azure VM Scale Sets can be used to define proper configurations and conditions and provide a new VM whenever there is a high load. The VM Scale Sets allows the developer to create and manage a group of load-balanced VMs. The scale sets can be configured in accordance with the demand of the application or a predefined schedule that automatically adjusts the number of VMs. Using scale sets ensures that the applications are highly available and enable the management, updation, and configuration of large VMs centrally. It also supports large-scale application development with big workloads, big data, and compute loads. Azure Scale Sets supports up to 1,000 VMs and 600 VMs for custom VM images.
Question:- What would happen if tone reaches the maximum failed attempts for Azure ID authentication?
Answer:- In this situation, the Azure account will get locked depending on the protocol analyzing the entered password and the IP address from where the login is requested.
Question:- If you have an application running on the on-premise server and Azure East US region has a backup, will you be able to access the application via the Azure environment in case of an on-premise server application access failure?
Answer:- Yes. One can access the application by using the Site Recovery Service by Azure. It is capable of handling fail-over and fail-back scenarios between on-premise servers and Azure environments.
Question:- In case the front-end hosting of an application is done on Azure, if the user needs the database hosting to be done on an on-premise server due to security concerns, how will you handle the Azure connectivity?
Answer:- There are a few possibilities to resolve this: • Azure VNET based point-to-site service can be used to connect one on-premise DB to an Azure-hosted application. This is valid where there are limited resources to be connected via VPN. • In case of more resources for connection, site to site or express routes are the solution. Site to site might cause network latency as the VPN works only via public infrastructure, which is the internet. In that case, express routes can be used as it has a dedicated leased line that solves latency issues. • In case VNET is not preferred, Windows Communication Foundation (WCF) service can be developed and hosted on-premise. It will have CRUD operations intended solely for the database that is hosted on-premise. It uses the service bus relay that can build communication between the Azure-hosted app to the WCF service for database access.
Question:- You have an Azure subscription that contains an Azure Log Analytics workspace. You have a resource group that contains 100 virtual machines. The virtual machines run Linux. You need to collect events from the virtual machines to the log analytics workspace. Which type of data source should be configured in the workspace?
Answer:- The answer is Syslog, which is an event logging protocol that is common to Linux. Applications will send messages that may be stored on the local machine or delivered to a Syslog collector. When the log analytics agent for Linux is installed, it configures the local Syslog daemon to forward messages to the agent. The agent then sends the message to Azure Monitor where a corresponding record is created.