Philippines Community Leaders Meetup with Microsoft MVP’s

banner

So I had a chance to attend this meetup hosted at Fairmont hotel last December 6.

WP_20161210_15_16_29_Pro

Got to meet new faces and met some older (much older) ones. Its an exciting time to work with these fellow leaders, especially on the OSS community here in the Philippines.

coms

So thanks to Microsoft PH DX and our South East Asia Lead for inviting us and meeting us also in the event. Hope you guys can fly back here and see you guys soon!

MVP

Side by Side comparison of Windows Server 2016 Installation Memory Utilization (Hyper-V)

So I have 3 freshly installed Windows Server Virtual Machines with nothing installed but the base operating system. These are running on Windows 10 Enterprise with Hyper-V.

1. Windows Server 2012 R2 (GUI)

2. Windows Server 2016 (GUI)

3. Windows Server 2016 (Core

image

image

image

These virtual machines are on a strict memory diet Smile I have configured all three to have 32mb available RAM but on dynamic memory.

image

With no user logged-in and with only default services running, here are the results:

image

We see that the Windows Server 2016 Core installation runs at 454 MB next to it is the GUI for 2016 then finally at 692 MB for 2012 R2.

Now with Administrator Logged-in:

image

Now with Administrator Logged-in but closing server manager for virtual machines with GUI installed.

image

Trying to install IIS on all three VM using PowerShell:

image

image

After Installation:

image

I also tried browsing the default web site installation of each IIS as seen on this screenshot and here’s the memory assignment from Hyper-V:

image

I’m signing out of the server to make sure no UI is running or services other than the web server that we have just installed.

image

*Launches 3 Visual Studio 2015 and creates 3 web performance test projects*

I have created 3 simple load test from Visual Studio to simulate browsing to the websites. If you are familiar with Visual Studio impremise load test, you will notice that the scenario is a single webtest that will be invoked multiple times by a load test. The multiplied scenario is a just basic web request.

image

Lets run the load test:

image

We are running the load test for 5 minutes:

image

And after a few more minutes:

image

I want you to draw your own conclusions based on the data that I have shown in this blog. I also wanted to publish the Load Test Results, but thats for another time. Until then, see ya!

image

The movable cloud

I am moving my blog from this platform to this platform. Its more modern world where-in you can move from one PaaS to another. And I am inviting you to come with  me on this journey, bring snacks. Only snacks this will be quick but I’d pace my posts this time to allow context and to allow me be on a project today which is another beauty of the cloud. I am not lifting any servers today,

image

This will be a four part story on how to migrate your WordPress content to Microsoft Azure Web App.

Part 1: Exporting Content (TODO)

Part 2: Creating a Web App (TODO)

Part 3: Importing Your Content (TODO)

Part 4: Customizing Your Site (TODO)

How to disable clutter [Fixed]

Send Grid never failed me, I had never used the plain’ol SMTP way back when I started using Azure. But today, I have been pulling my hairs out because it seems my password reset is not sending any email.

I checked, double checked my IIdentityMessageService implementation and I know this works. I changed to my personal Office 365, refreshed it again and still no avail. But wait, what is this? Clutter. Clutter is a feature already as described here.

image

To turn this off, go to your Mail options by clicking the cog in the right hand corner and then click  options.

Navigate to Options > Mail > Automatic Processing > Clutter.

image

Uncheck “Separate items identified as clutter. Then click save.

image

There ya go, now back to the forgot password thingy.

Error CS1061 'ApplicationDbContext' does not contain a definition for 'ApplicationUsers' (Fixed)

Visual Studio ASP.NET MVC controller with views and EF template creates db.ApplicationUsers instead of just db.Users. 

Workaround summary:

1. Rename ApplicationUsers to Users

2. Delete the Controller and View

3. Close and Re-open VS and Project. Rebuild.

4. Recreate the Controller!

 

So its in the morning, you said lets scaffold! And you got this error:

image

This happens when you reference a foreign key your “ApplicationUsers” that is used in the IdentityDbContext that inherits IdentityUser.

image

And then when you add a new controller with views using EF the scaffold will generate the ApplicationUsers but its DbSet or property of the object will not be available. 

One workaround is to rename your ApplicationUsers to only “Users”.

image

image

Now this is important, delete the controller and its views folder after renaming. Then you need to close visual studio. 

Open the project once more and rebuild your solution.

You should now be able to scaffold the controller.

image

Happy Scaffoldings!

Chain Commands in Package Manager Console and PowerShell

So its late, I am in a hurry and am very hungry. I needed this to be quick.

image

You can actually “Chain” or have sequential commands in one line using PowerShell. To do this use a semicolon “;” in each statement or command.

What it does is execute each statement or command then brings back the cursor to you after the last command was executed.

Since Package Manager Console uses PowerShell. In fact, a simple get-command will display a long list of commands and modules (As I demonstrate… a long list, not a good idea without any filters on get-command on a development computer).

image

So using PowerShell’s Sub expressions, you can also chain your commands like enabling the migration and then adding an initial migration then finally update the database on one command inside package manager console.

It’s the little things.

PHIWUG Presents–Tech Preview

We just did our last technical session for the year 2015!

John Delizo Hosting and a quick demo on Docker and container technologies for deploying applications. And deploying applications to Windows Server 2016 Tech Preview.

Ren Narvaez on Microsoft Infrastructure Datacenter Security Today

WP_20151210_002

Milo Pacamara on PH Emerging threat landscape and why upgrade

WP_20151210_003

Felmar Tanada on Windows Server 2016 Preview: Nano Servers

WP_20151210_009

Thank you for attending this session!

WP_20151210_013

September 2015 MSDN Session at Globe–Event

Thank you PHINUG for the invitation to talk about continuous integration with Visual Studio online and Microsoft Azure.

2

Warren Yu, Microsoft MVP: Application Lifecycle Management

b

Michael Peña, MSP Alumnus currently at Avanade

5

Jerome Punsalan’s lightning intermission number to perk up while eating.

c

Me (John) Taking questions from the audiences.

4

Again thank you and see you on the next PHINUG event!

1