Wriju's BLOG

.NET, Cloud and everything

CentOS 7 changing other user password

I forgot one user’s password. Luckily, I could remember the root password. That enables me to change the other user password even if I don’t recall the current one. $ sudo su $ passwd username This prompted me to give the new password and confirm. That’s it…. Read more

Azure PowerShell Get to know about availability of the VM sizes

You may know that all Azure regions does not provide all types and sizes of VMs. So while designing a deployment it is important to understand what is in the store, A simple PowerShell would give you list of VM Sizes Get-AzureRmVMSize -location eastus You may also dump this to a .csv file Get-AzureRmVMSize -location… Read more

Microsoft Cognitive Services: The Language Understanding (LUIS) service generally available (GA)

Part of Microsoft Cognitive Services, the Language Understanding (LUIS) service provides simple tools that let you build your own language understanding models (intents/entities) to help any bot or app provide natural language-based interactions for users. They also let you: ✓ Use a comprehensive set of APIs that will interpret your sentences and identify intents and… Read more

DevOps in Azure

DevOps Project makes it easy to get started on Azure. It helps you launch an app on the Azure service of your choice in a few quick steps. DevOps Project set you up with everything you need for developing, deploying and monitoring your app. Creating a DevOps Project provisions Azure resources and comes with a… Read more

All Free Developer Tools

If you are a developer you may build applications without buying any tools you need. Most of the developer tools are free today. So go ahead and get them, https://www.visualstudio.com/dev-essentials/  All the tools you need Tools to develop for any platform – for free. Tools include an extensible integrated development environment and code editors to… Read more

Deploying with Azure

Production ready cloud applications need to be built for scalability, monitoring, management, security, resiliency, and more. The patterns covered in this guidance include example implementations for Microsoft Azure. Reference Architectures Best Practices Patterns Free Course Namoskar!!!… Read more

Microservices & Docker Architecture for Apps

Microservices are small, modular, and independently deployable services. Docker containers (for Linux and Windows) simplify deployment and testing by bundling a service and its dependencies into a single unit, which is then run in an isolated environment. Architecture e-book: PDF | Web | MOBI | EPUB DevOps e-book: PDF | Web Video Sample App Patterns… Read more

Azure Update – November 2017

Azure Notification Hubs .NET SDK now compatible with .NET Standard 2.0 Clearer choice of CLI: Azure CLI 2.0 for Resource Manager Public preview: Azure Automation watcher tasks GUID migration: Security and Audit solution for Azure Government Azure DevTest Labs: Post customized announcements to your lab Manage payment methods in the Azure portal General availability: Visual… Read more

Azure Container Service (AKS) and Kubernetes UI

Off late I was playing with new preview feature of Azure Container Services (AKS). This is a managed Kubernetes hosting environment. You don’t need to be an expert container orchestration. And with all managed Azure service this too takes the pain of infrastructure management. So, what I was doing and thought to share with you…. Read more

Microservices Guidance Is Now Available

Microservices guidance is now available at  Azure Architecture Center Microservices have become a popular architectural style for building cloud applications that are resilient, highly scalable, and able to evolve quickly. We explore how to model, build and operate a microservices architecture on Azure, using Kubernetes. Topics include: Using Domain Driven Design (DDD) to design a… Read more

Why a developer should not care about Serverless

Being a developer, one should be least bothered about Serverless. Why? Serverless is big bet and Gartner says “” etc. So what? Ask some basic questions to yourself, if Serverless going to reduce the coding effort? Those sleepless nights where you had debugged a thousand line JavaScript file with alert(‘1’), alert(‘function worked fine’) etc. The… Read more

Learn Power BI

The training is broken down in four self-contained modules: Module 0 – Exploring the portal Module 1 – Visualizations I Module 2 – Visualizations II Module 3 – Dashboard and sharing data Learn more about Power BI In this hands on lab, you have seen the basics of Power BI Service, creating out first reports… Read more

Azure Internet of Things IoT Hands on Labs

Easy: Node-Red will help you setting up a visual environment in your device and start creating a full IoT solution with very few code or even no code at all. Medium: Thing Labs is a step by step lab with an Intel Edison board, programming in Node.js and connecting it to IoT Hub. Requires basic… Read more

Azure IoT Security

Internet of Things security architecture When designing a system, it is important to understand the potential threats to that system, and add appropriate defenses accordingly, as the system is designed and architected. It is particularly important to design the product from the start with security in mind because understanding how an attacker might be able… Read more

Using Azure Storage for ClickOnce Deployment Windows Desktop application

ClickOnce and Windows Application are not new and so is Microsoft Azure. What appeals to me is the sleek way to distribute the apps across. This does not want any sort of deployment mechanism which enforces a large download and no auto update capability. ClickOnce has many such good features which I am in love… Read more

Azure Update – Oct 2017

Skylake Processors in FV2 Series VMs https://azure.microsoft.com/en-in/blog/fv2-vms-are-now-available-the-fastest-vms-on-azure/ Azure networking available only in the Azure portal from October 4 Starting October 4th, Azure Networking features will be available only in the new Azure portal, we will no longer be supporting classic portal for networking related resources   Azure Data Lake Analytics introduces capabilities to manage pipelines… Read more

Azure Learning Path

There are bunch of Azure Learning Paths available https://azure.microsoft.com/en-us/documentation/learning-paths/ As of today it covers a lot of major Azure services API Management App Service Mobile Apps documentation App Service Web Apps Azure Automation Azure Backup Azure IoT Suite and preconfigured solutions Learning Path Batch Cloud Services Cortana Analytics Process (CAP) Data Catalog Event Hubs IoT… Read more

All about Microservices

Microservices seems to be the end of the world now just like the legacy SOA, WCF, HTML5 and so on and so forth. If you are in Application Development industry you cant ignore it now. Better not. Here are some of the Microservices Resources Microservices – a definition of this new architectural term by Martin… Read more

উইণ্ডোজ অপারেটিং সিস্টেমে কিভাবে আপনার ডকুমেন্ট সুরক্ষিত করবেন

আমি মাঝে মধ্যেই দেখি আমার জানাশোনা লেখকবন্ধুরা তাঁদের ডেস্কটপ বা ল্যাপটপ খারাপ হয়ে যাবার কারনে লেখা হারিয়ে ফেলছেন। আমি লেখক নই কিন্তু জীবিকার খাতিরে আমায় নানারকম লেখালেখি করতে হয়। সেগুলি হারিয়ে গেলে বা মেশিন খারাপ হয়ে গেলে আমার পাগল দশা হবে। তার প্রতিকার হিসাবে আমি মাঝে মাঝেই আমার ফ্লপিতে বা সিডিতে কপি করে নিতাম। তা… Read more

Putting custom links to your Azure Portal Dashboard

How cool is it if you want to keep your custom links in Azure Portal Dashboard? Here are few simple steps, Open https://portal.azure.com and then click on “Edit Dashboard” Then you see “Tile Gallery” at the right side of the browser window at the left side. Select “Markdown” and drop it in your preferred location… Read more

Azure Update – March 2017

Mar 31 General availability: Azure Network Watcher Mar 31 General availability: Azure Monitor Mar 31 General availability: Azure resource health Mar 31 General availability: Azure Advisor Mar 31 Azure SQL Data Warehouse seamless integration with Azure Data Lake Store Mar 31 External file format support for UTF-16LE encoded files in SQL Data Warehouse Mar 31… Read more

Azure Update – April 2017

Apr 26 Azure Billing Reader role and preview of Invoice API Apr 20 Azure DevTest Labs: Use Azure CLI to create and manage lab VMs Apr 18 Release of Service Fabric SDK Preview and Runtime Preview for Linux Apr 18 Release of Service Fabric SDK 2.5.216 and Runtime 5.5.216 for Windows Apr 18… Read more

Azure Update – May 2017

May 31 Azure BizTalk Services: Simplifying our Azure offerings May 31 Azure DevTest Labs: Changes in exporting custom image VHD files May 29 Azure DevTest Labs: Use Azure CLI to claim VMs in a lab May 24 Azure Batch updates for May 2017 May 24 New Azure Data Catalog capabilities May 24 Azure DevTest Labs:… Read more

Introduction to Azure IoT

Microsoft is offering a free training on Azure IoT. If you really care about IOT you should check it out Join expert Jeremy Foster for this Azure IoT overview, and find out how to get started quickly. Explore the fundamentals of IoT and the Azure IoT platform, and see how the Azure IoT Hub easily… Read more

Azure CLI from Browser

Now you can run Azure CLI without installing it directly from //portal.azure.com On the top right corner you find the below icon “>_” next to notification This initiates a storage creation and one time setup.   After that Shell appears Then type “az” to enter into the Azure CLI. Rest is your playground. Troubleshooting Things… Read more

Azure App Services Security

Cloud and service and Security go hand in hand. Azure App Services is no exception to it. Here is the assorted list of security measures can be taken for App Services Secure your web app using various means of authentication and authorization Setup Azure Active Directory authentication for your app Secure traffic to your app… Read more

Azure App Services Migration Assistance

We have many tools paid and free to help us migrate workloads to cloud. There are a very few for Platform-as-a-service apps. It is believed that most of the time PaaS requires application re-write. However, a well-designed futuristic modern web application is ready for App Services most of the time. Microsoft provides state of the… Read more

What is your Azure SQL DTU

While sizing one of the points which comes to the mind is how can we SIZE our Azure SQL Database. Azure SQL Database tier is based on the unit known as DTU. This is combination of few things. Please refer the official Azure documentation for details. However Microsoft Azure also provides a small utility to… Read more

Latest Availability of Azure Services

Couple of Azure Services are now generally available (cloud version of RTM). Azure monitor: Built-in monitoring and diagnostics of Azure resources, enabling operational visibility across your cloud assets. For more please visit, https://azure.microsoft.com/en-us/blog/announcing-the-general-availability-of-azure-monitor/ Azure Analysis Services: is generally available, and is now available in three additional regions: UK South, Japan East, and West India, joining… Read more

Designing and moving applications to cloud

When working with customers we often come across the discussion on how one should plan on moving their line of business applications. Firstly, an enterprise needs to find the list of applications they are currently using which would then go to cloud. There are four types of applications, Applications which can be moved easily: now… Read more

Azure Automation with ARM and Azure Deploy – build the UI

Azure Resource Manager (ARM) templates are a great way to build your automation. These JSON files can be executed in many ways. One of them is through a portal experience where user can select a template and run them. The UI would show the progress step by step progress. Let’s see how we can do… Read more

Azure Resource Manager Training Video Series

Azure Resource Manager DevOps: (01) Overview https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/01   Azure Resource Manager DevOps: (02) Tooling https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/02   Azure Resource Manager DevOps: (03) Customizing Templates https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/03   Azure Resource Manager DevOps: (04) Role-Based Access Control https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/04   Azure Resource Manager DevOps: (05) ARM and ALM Integration https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/05 Namoskar!!!… Read more

Azure App Services: Free Online Video Training

Mastering Azure App Service, Part 1: Building Azure Logic Apps https://mva.microsoft.com/en-US/training-courses/mastering-azure-app-service-part-1-building-azure-logic-apps-16829?l=N2TrqMY4C_305918563   Mastering Azure App Service, Part 2: Building Azure API Apps https://mva.microsoft.com/en-US/training-courses/mastering-azure-app-service-part-2-building-azure-api-apps-16830?l=jI6yrcY4C_9605918563   Mastering Azure App Service, Part 3: Building Azure Web Apps https://mva.microsoft.com/en-US/training-courses/mastering-azure-app-service-part-3-building-azure-web-apps-16835?l=VucUekp4C_4405918563   Mastering Azure App Service, Part 4: Building Azure Mobile Apps https://mva.microsoft.com/en-US/training-courses/mastering-azure-app-service-part-4-building-azure-mobile-apps-16836?l=clkpPiI5C_5106218965 Namoskar!!!    … Read more

Azure Resource Manager (ARM) – Find the template code of an Azure Resource

While you were exploring ARM, you may want to check how ARM needs to be created. One of the easiest ways is to explore the created Azure component. Here I have created Azure VM and wanted to check the ARM behind it. So, in the portal you will find a section “Automation” script. In that… Read more

Setting up Node.js Development to avoid manual server restart

In my previous post, I have shared how we can make the startup page for Node.js. Now every time we change anything to the server we need to go to command prompt and rerun the command. Instead we can make something which will keep watching changes in specific types of file and restart the server… Read more

How to make a startup page in Node.JS

In a typical Node.JS project you may have many JavaScript files. And running them from your command prompt you may need to explicitly type the name of the file. $ node app.js Instead in development we can get rid of this by creating startup page. To do that we need to add a line in… Read more

Node.JS Editor Bracket

While I was trying to find the editor for JavaScript Development, I found this Bracket. This is an Open Source Editor from Adobe and comes with many useful extensions. You may download it from http://brackets.io/ Here are the few extensions I have configured You may try them out. Namoskar!!!… Read more

Visual Studio 2015 as Node.JS Editor

Being a loyal Visual Studio 2015 user since 14 years I always prefer to use it for anything and luckily I have been fortunate enough to get all possible extensions. Now when I am getting my hand dirty with Node.JS I find another. You need to go under Visual Studio Menu > Tools and Extensions… Read more

Create CSV File List using PowerShell

  Text version to copy $arr = @() $rootFolder = “E:\Wriju_Documents\E-Books All\Art EBook” $a = Get-Date $fileDate = ($a.Day.ToString() + $a.Month.ToString() + $a.Year.ToString() + $a.Hour.ToString() + $a.Minute.ToString() + $a.Second.ToString()) $outputFile = “c:\temp\FileList_” + $fileDate +“.csv” $fileExtension = “.pdf”   Get-ChildItem -Path $rootFolder -Filter $fileExtension -recurse | ? {$_.PSIsContainer -eq $False} | % { $obj =… Read more

Add User to Azure Active Directory using Graph API

This post should have appeared before the other related posts. However let us see from the ground up how we can build an application to use Azure AD Graph API to add the user to AAD. We first need to add an application in AAD Open the Azure AD in portal and open the application… Read more

Azure AD Graph API Create List of Users

Getting the list of users from AD is bit tricky. Firstly the call is Asynchronous and it is delayed. So no such straight forward foreach loop can help, Define the data model After that we can write something like, private async Task GetUsers() { List<UserGridData> userData = new List<UserGridData>(); var adClient = GetAADClient();   var… Read more

How to delete Azure AD User using Graph API

Adding user to Azure AD (AAD) is straight forward. However when we want to delete the user we may face some issues. I have discussed that in my previous post “Error Authorization_RequestDenied while Editing Azure AD Object” https://blogs.msdn.microsoft.com/wriju/2016/07/20/error-authorization_requestdenied-while-editing-azure-ad-object/ Once you have the Application added to AAD and using that to manipulate the objects you may… Read more

Error Authorization_RequestDenied while Editing Azure AD Object

Azure Active Directory allows applications to add user via Graph API through an Application Key. Generally there is no such issue when adding a new record. However, when someone wants to modify or delete a particular record may face the below issue   System.Data.Services.Client.DataServiceRequestException: An error occurred while processing this request. —> System.Data.Services.Client.DataServiceClientException: {“odata.error”:{“code”:”Authorization_RequestDenied“,”message”:{“lang”:”en”,”value”:”Insufficient privileges… Read more

Azure Active Directory Limits and Restrictions

There are certain limits to Azure AD when we work. As from my experience we often run into roadblocks when we run automated tests and the created objects are not destroyed afterwards. Here are some limits as of today, Application Max 10 users can be the owner of a single application Objects Max of 500,000… Read more

Git Extension Videos

Recently I am using Git Extension tool to use Git check-in. Here are some videos available Clone – Git Extensions – http://www.youtube.com/watch?v=TlZXSkJGKF8 Commit changes – http://www.youtube.com/watch?v=B8uvje6X7lo Push changes – http://www.youtube.com/watch?v=JByfXdbVAiE Pull changes – http://www.youtube.com/watch?v=9g8gXPsi5Ko Handle merge conflicts – http://www.youtube.com/watch?v=Kmc39RvuGM8 Namoskar!!!… Read more

How to Calculate SLA for a Product

When we work against multiple Azure Services for a Single Product we need to handle the SLA (Service Level Agreement) carefully. It is not min or max or the average of SLA per services. Let’s take an example, Table 1 Service SLA App Service 99.95% Azure Active Directory 99.9%       What these %… Read more

Generating ASP.NET Web API Documentation

Swagger is one of the most popular documentation and code generation engine for Web API. Unlike ASMX WebServices where we could use WSDL to generate C# class file to refer and write code which could compile we need some client wrapper in Web API. Hence Swagger comes handy to perform those documentation and client code… Read more

Free Sequence Diagram Tool

I happen to find one free online Sequence Diagram Tool at https://www.websequencediagrams.com/  The name is pretty easy to remember and it has little command like interface which translates your text to diagram. You may also be able to choose the format, I find it very helpful and quick. Namoskar!!!… Read more

How to create TFS 2015 and Deploy as Scheduled Job

Many times we may need to deploy some code which will run in the back ground as a continuous process or scheduled job. For this we often create Server Plugins. But the problem with Server Plugin is, it runs every time something or other happens. Let’s say you have created one Server Plugin which monitors… Read more

Open XML Create Excel from scratch

Open XML SDK allows you to work with Office products without installing any COM component. It also solves the age old issue of Office automation in server. Mainly in web scenario, it is recommended that one should not automate any office components or activities. Reason behind it is, if anything is crashed while automating then… Read more

Building Simple Math Problems for Jounior School

My daughter studies in junior school and we often face issues getting her enough problem for simple addition and subtractions. So I decided to make an algorithm to generate them. Conditions I needed to follow, 1. It needs to be two digit 2. For addition it needs to be no carry forward, means addition needs… Read more

Getting Azure VM Remote Desktop File in PowerShell

I often just need the Remote Desktop file of a VM  to work. For that it takes a longer time to go to the portal and download. Rather I prefer the PowerShell way of doing it. $vm = "WGTFS2015" $service = "WGTFS2015" $file = "C:\Azure\WGTFS2015.rdp" Get-AzureRemoteDesktopFile -Name $vm -ServiceName $service -LocalPath $file Invoke-Item $file Namoskar!!!… Read more

How to create Shared Access Signature (SAS) for Blob and Container

There are few ways by which you could created Shared Access Signature (SAS) for Azure Storage Blob or Container. This one is probably the easiest. 1. Download and install Azure Storage Explorer from http://azurestorageexplorer.codeplex.com/ 2. Then add the storage account name and key 3. Then select a container or Blob and select “Security” 4. Then… Read more

Moving TFS 2015 VM to Azure as an Image and Creating Machine from It

As I had to use TFS 2015 and the quickest option was to get the ready VM by Visual Studio ALM team and push it to Azure. This is what I did 1. Created a VM in Azure 2. Downloaded the TFS VM as described in Blog http://vsalmvm.azurewebsites.net/alm-vm-2015-available-now/ 3. You must use Free Download Manager… Read more

Azure Certification Free Trainings

Below are the related courses for Azure Certification For 70-532 use Developing Microsoft Azure Solutions http://www.microsoftvirtualacademy.com/training-courses/developing-microsoft-azure-solutions For 70-533 use Establish Microsoft Azure IaaS Technical Fundamentals http://www.microsoftvirtualacademy.com/training-courses/establish-microsoft-azure-iaas-technical-fundamentals For 70-534 use Architecting Microsoft Azure Solutions http://www.microsoftvirtualacademy.com/training-courses/architecting-microsoft-azure-solutions Namoskar!!!… Read more

PowerShell why should you learn and how must start

If you really care about performing Automation in your System dominated by Microsoft products its high time that you start thinking seriously about PowerShell. Now since you are forced to use PowerShell a many of you might already have started but getting difficulties of interpreting the way it is written. Or you are writing in… Read more

Azure PowerShell Know the differences

There are a bunch of confusing PowerShell commands which looks the same by their name. Add-AzureDataDisk : Adds a data disk to a virtual machine. The Add-AzureDataDisk cmdlet adds a new or existing data disk to an Azure virtual machine object. Use the CreateNew  parameter to create a new data disk that has a specified… Read more

Azure PowerShell Getting the Remote Desktop File

When you are on Go and Portal is not responding well, you might be in need to get the remote desktop file of a Virtual machine Step 1: Login to Azure > Add-AzureAccount Point to the right subscription > Select-AzureSubscription -SubscriptionName "Your Subscription Name" Step 2: Then get the list of Virtual machines > Get-AzureVM… Read more

New Improved Blog Editor

Since the support for Live Writer was missing in Windows 10 I was heavily impacted. I am a blogger who is bit lazy and the Live Writer was just a perfect fit for me. Like many other things it was just like typing in word. You don’t need to worry about the place to keep… Read more

Manage your own Azure Subscription using PowerShell

You might be using a Dev/Test Azure account and to save the money you would like to Shutdown all the VMs. Since VMs are creating ad-hoc you don’t know the exact name. But you need to shut them down all. Let’s see 1.       Open Azure PowerShell 2.       Run Get-AzurePublishSettingsFile. This will ask login, log in… Read more

Delete an Azure Active Directory

Problem When you try to delete an Active Directory you will go crazy because  You will get an error   You will clean all the users but will still get the below error.   You try to clean up all the applications in the list of applications. You select “Applications my Company owns” and the… Read more

Azure Free E-Books

Azure eBooks Data Science in the Cloud with Microsoft Azure Machine Learning and R Azure Essentials – Azure Automation Azure Essentials – Fundamentals of Azure Azure Essentials – Azure Machine Learning Azure Essentials – Azure Web Apps for Developers Introducing Microsoft Azure HDInsight Developing Big Data Solutions on Microsoft Azure HDInsight   Namoskar!!!… Read more

Tips for Microsoft Certification : Developing Microsoft Azure Solutions (70-532)

Life is a continuous learning process and equally unlearning. Especially in the cloud space where everything is changing rapidly. I have been working with Azure since its inception. Much before Azure came into the market and got announced in PDC 2009 (if I recall), I was accessing it with early access. Back then it was… Read more

ADO.NET EF and Repository Pattern

This is a fantastic blog series by Julie and who don’t know Julie??? Repository Pattern this is ideal for testing and mocking. Julie is one of the wizards of EF has written a series, Agile Entity Framework 4 Repository: Part 1- Model and POCO Classes http://thedatafarm.com/data-access/agile-entity-framework-4-repository-part-1-model-and-poco-classes/ Agile Entity Framework 4 Repository: Part 2- The Repository… Read more

Connecting on-premises SQL Server using Azure Service Bus Relay

This issue seems very common rather we can call it a requirement. Business Need. We have a Web Site (assume hosted in Azure). Now we have a SQL Server located locally behind the firewall. We cannot move this database outside of our data center. One of the easiest ways to use it through Service Bus… Read more

Top 10 things while migrating existing Web Applications to Azure

Microsoft Azure is another sophisticated hosting platform. For Web Sites where we have code written and wanted to move it to Azure we would obviously be facing some challenges if it as never designed for distributed environment, 1. Should not use In-Proc Sessions. In Web development it is very common to use sessions. Sessions are… Read more

Azure PowerShell : Forbidden Error: The server failed to authenticate the request

You have used Add-AzureAccount command to connect to Azure Account or might have used .publishsettings file. But even after you have successfully connected you get this error every time you want to run any Azure command Forbidden Error: The server failed to authenticate the request Your frustration mounts. Many try, many searches in various forums…. Read more

Windows 10 – Latest Developer Resources

Microsoft Virtual Academy Training A Developer’s Guide to Windows 10 BUILD 2015 Sessions Introducing the Windows 10 App Model – https://channel9.msdn.com/Events/Build/2015/2-617 What’s New in XAML for Universal Apps – https://channel9.msdn.com/Events/Build/2015/2-629 UX Patterns and Responsive Techniques for Universal Windows Apps – https://channel9.msdn.com/Events/Build/2015/2-658 All That is New in the Windows Store – https://channel9.msdn.com/Events/Build/2015/2-664 From the Small Screen… Read more

DocumentDB Add and Read – Simple Approach

I wanted to create a simple sample which would Add and Read records in DocumentDB. Created one Windows Forms Application, added NuGet Package Then in the Windows Forms I have added simple Text box to enter data and grid to display it. The data model would look like, this has dependency using Newtonsoft.Json;   //Employee… Read more

Effectively use Azure MSDN Account to avoid exceeding the quota

Many of you use Free MSDN Azure account for Dev/Test. This post is all about using Free Azure account which has a limited quota for use. A lot of times where these kind accounts are temporarily suspected due to the excess use. I am writing this based on my personal experience maintaining similar account for… Read more

Azure Runbook Schedule Time Zone

When we select the time to create the Runbook Automation Scheduler we get confused which timezone it would take. Here are they, 1. When you use portal to create the Schedule Job for Runbook it takes the browser time and converts it to UTC 2. When you use PowerShell or SDK then you must use… Read more

Azure PowerShell : Shutdown All Azure VMs

To Shutdown all Azure VM you don’t need to go to individual and then press the button. But run an elegant PowerShell $AzureSubscriptions = Get-AzureSubscription foreach ($subscription in $AzureSubscriptions) { Write-Host $subscription.SubscriptionName Select-AzureSubscription -SubscriptionName $subscription.SubscriptionName #Write-Host $subscription.SubscriptionName foreach ($vm in Get-AzureVM) { $name = $vm.Name $servicename = $vm.ServiceName If($vm.Status -ne ‘StoppedDeallocated’) { # Add the… Read more

Azure PowerShell : Get the List of VM Images

Addition: Thanks Roy Lofthus, I love the comment and hence adding You can run below comment to get the grid. Get-AzureVMImage | Select * | Out-Gridview –Passthru The –Passthru will get the context back to PowerShell window. You can do the further filter etc in that Grid. To get all the VM Images you can… Read more

Azure and PowerShell

Azure and PowerShell are the couples. If you talk about only one of them then you are not talking complete story. We have got couple of PowerShell modules available in Azure and many things can only be done through PowerShell. Here are few easy steps to connect to Azure through PowerShell 1. Run “PowerShell_ISE” 2…. Read more