NAV TechDays 2016 Presentations

NAV TechDays 2016 has just finished a few days ago. Unfortunately, I missed it this year. I wanted to be there with you in Antwerp and I already announced session with Steven Renders about Power BI, but I had to cancel my attendance. I know, Steven perfect prepared this session without me because he is an expert for this topic.

OK, life goes on. I really hope I missed only this year and I’ll be there the next year. Now, all sessions are already published and I want to have all of them on the one place. There are all of them:

The Power of Power BI and Dynamics NAV by Steven Renders

Office 365 for NAV Techies by Arend-Jan Kauffmann

Best Practices in Developing Microsoft Dynamics NAV 2017 Extensions by Waldo

Real Life Source Code Management by Soren Klemmensen

Modern Developer Tools for Dynamics 365 and on premise NAV by Michael Hammond & Esben Nyhuus Kristoffersen

Bad Habits of NAV Developers by Waldo, Vjeko Babic and Gary Winter

Migrating to Events by Gunnar Gestsson

Building Cool Experience with NAV Everywhere by Horina Serbanescu, Eygo Kawatani and Andrea Tino

Design Patterns in NAV 2017 by Anders Larsen & Nikola Kukrika

JavaScript Architecture – Turning Pain Into Gain by Vjeko Babic

Get Some Smartness into Dynamics NAV / 365 with Notifications and Cortana Intelligence by Klaus Marius Hansen & Jesper Schulz-Wedde

Building the Dynamics 365 for Finacials Services by Kamil Koclega & Constantin Daniil

Enjoy…

Final List of My Lectures – Fall 2016

I’ve already wrote about my sessions during this fall conferences, but now I have the final agenda for all conferences where I’ll attend. If you want to come on some of my lectures, I’ll be happy and I’ll try to help you as far as I can.

conferencesthisfall.jpg

Directions NA, Chandler, AZ, US

Directions EMEA, Prague, Czech Republic

MS Sinergija, Belgrade, Serbia

NAV TechDays, Antwerp, Belgium

My Session on NAV TechDays 2016

Recently, I’ve published information about my sessions this fall. But now, I’m spreading a scope of my lecture to the end of this year. After Directions NA and Directions EMEA, where I’ll speak about choosing the best Azure platform for NAV and about using combined waterfall and agile project methodology, I’ll be lecturer on local Microsoft conference in Serbia – MS Sinergija. On this conference I’ll speak about differences between NAV 2017 and Project Madeira (Dynamics 365).

And finally, on the end of this year conference season, I’ll be lecturer on NAV TechDays. First I wasn’t sure if I have enough time to make session by my standards, but I decided to have common session with Steven Renders about, by my opinion very interesting topic – Power BI and NAV.

NAVTechDays.jpg

We chose the title: The Power of Power BI and Dynamics NAV. We will speak together and this will be the first time to have a common session with some colleague. I hope, Steven and I will synchronize everything very good and you will love this session. If you want to know more about topic, you can use link above.

But in short lines, you will see what it takes to develop a dashboard in Power BI Desktop. Starting from getting the data out of Dynamics NAV, we will create a data model. On one hand we will see how to achieve this using Power Query, which we will enhance with measures, calculated columns and tables using DAX. On the other hand we will use OLAP Cubes, connected to Dynamics NAV and other sources, to build the data model. How to create dashboards… what about DAX, M and R… how to compare using of OLAP cubes with ODATA Web Services based data…

See you there, soon.

Development Environment on Azure SQL

After my session on NAV TechDays about deployment of NAV 2016 on Azure SQL Server, I got a lot of questions about using Development Environment in this situation.

Using Development Environment can be done absolutely normal. If you want to use DE from your local computer, first you have to add your IP address to Azure SQL firewall (SQL Databases > Servers > choose server > Configure). You can do it to allow connection between your computer and Azure SQL server.

DE01

After that, open Development Environment and type your full Azure SQL server name to Server Name (xxxxx.database.windows.net), choose Database Server Authentication, your username and password and on the end normally choose your database.

DE02

You can work with design, but if you want to open table for example, you have to make some additional configurations. Before it, you have to make connection between your local NAV Windows Client and Azure VM. You need to use certificate and encryption key. After you configure them, everything will be OK.

If you want to use Development Environment directly on Azure VM, you just need to open DE and login to Azure SQL server (I already described), nothing else. In this situation you can work what you want.

DE00

You can see it on previous picture. Database is opened from Azure SQL and you can do everything as you used to.

Cannot Connect Web Client to NAV on Azure SQL

In my last two articles, I’ve showed you how to deploy Microsoft Dynamics NAV 2016 on Azure using Azure SQL Server. Now, if you already finished it any you want to use NAV Web Client, you have to install Web Server components on VM you configured as service tier and create Endpoint for WebClient on this VM, opening port 8080. Now you have to login with different username (for example, Admin username you already used on your VM). Now, you have to type the following URL: http://<AzureVM_Name>.cloudapp.net:8080/DynamicsNAV90/WebClient/

If you have problem with connecion and get the error message, this is probably because port 8080 is not opened. If you want to open this port, you have to open Remote Desktop Connection to your VM and run the following: Control Panel > Windows Firewall > Advanced Settings > Inbound Rules.

AzuWC_CP_Fw.png

If you can find “Microsoft Dynamics NAV 2016 Web Client” as rule, you need to add 8080 as Local Port. But if you cannot find it, create a new rule (using the command in the right pane) and add this name and local port.

How to Deploy BACPAC on Azure SQL

This topic is in connection with my session “Deploying and Managing Dynamics NAV 2016 with Azure SQL Database” on NAV TechDays 15 and I want to continue my previous article.

Before I start with BACPAC deployment, first I have to make a small correction of my previous article. Last time, I forget one important thing. Before you create BACPAC file, you have to delete all Windows users from your source database.

You can do it in following way. In SQL Server Management Studio, find your source database and collapse it until you find Security > Users. Then check all users (right-click > Properties > General).

You need to check User Type field; if you find Windows User, you need to delete it. Right-click on this these users and choose Delete.

sql1

Now, you can continue with all steps I’ve already described in previous article. Now, we can start with deployment.

First, we have to have Azure subscription and create Azure SQL Server. When you open your Microsoft Azure Portal (https://manage.windowsazure.com), choose SQL DATABASES and choose SERVER tab. Click ADD and type your Login Name, Login Password, Region and click on Complete.

sql2.png

You will get some weird name as Azure SQL Server. Click on this SQL Server, go to DASHBOARD tab and copy this SQL Server name. Add .database.windows.net to your SQL Server name; this will be your full SQL Server name. Now, go to CONFIGURE tab and Add Allowed IP address to Azure SQL firewall. This step is necessary if you want to use this SQL Server from your local computer (with this step, you added your computer IP address to Azure). Every time you want to connect from some other computer to your Azure SQL Server, you have to repeat this step.

Now, you need to make connection from your SQL Server Management Studio to your Azure SQL Server. In Server Name, you need to type your full Azure SQL Name and your Login and Password.

sql3

When we make connection, we can start with deployment. Go to Database, right-click and choose Import Data-tier Application. You need to choose your BACPAC file, your target Database file and continue until system finish with deployment.

sql4.png

Now we can check result. We can find new database on SQL Server Management Studio on Azure SWL connection. Also, we can see in on Azure Portal; choose DATABASE tab on SQL DATABASES.

In process of deployment, it is possible to have one issue. This is situation if you can only select the obsolete service tiers of Azure SQL Database, Web and Business, with a maximum database size of 150 gigabytes (GB), when you try to set target database. Of course, in this situation, there is no option to select the new service tiers, Basic, Standard and Premium. If you try to upload on obsolete service tiers, you will get the error message.

This issue occurs because SQL Server Management Studio 2014 is not updated to match the current service tier offerings. This issue was first fixed in the Cumulative Update 5 for SQL Server 2014. You just need to install this CU 5 and repeat deployment step.

How to Create BACPAC for Azure SQL

A BACPAC is a Windows file with a .bacpac extension that encapsulates a database’s schema and data. The primary use case for a BACPAC is to move a database from one server to another – or to migrate a database from a local server to the cloud. I’ll write about BACPAC because I want to introduce you with NAV 2016 database migration to Azure SQL Server. I already had a session with this topic on NAV TechDays in Antwerp and I want to introduce more people with this processes.

If you want to prepare BACPAC file from your NAV 2015 database, you need to run Microsoft SQL Management Studio and find your local database from where you want to create BACPAC file.

SQL1.png

Right-click on database and choose Task > Extract Data-tier Application. Click Next and choose where you want to save your BACPAC file.

If you want to save it on local HDD, choose “Save to local disk” and browse the location where you want to save this file on your local computer.

SQL2.png

If you want to deploy it to Azure storage, choose “Save to Windows Azure”, click Connect and type your Storage Account and Storage Key and choose Container. If you want to change BACPAC temporary name and location, change the file name and browse the location. This temporary file and location is file where system will put BACPAC file before it’ll be uploaded to Azure storage; after that system will delete it. Click Next and Finish and wait. System will create BACPAC file.