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.

Advertisements

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.

NAV on Azure SQL on NAVTechDays

Last week we finished one of the best NAV conferences this year. NAV Tech Days this year had about 950 NAV passionate attendees from all around the world. Everything in organization was the amazing; Luc did a great job.

This NAV Tech Days was very special for me, because I was the speaker on this conference for the first time. My topic on NAV Tech Days was “Deploying and Managing Dynamics NAV 2016 with Azure SQL Database”. This is something new in Microsoft Dynamics NAV 2016. I know, a lot of partners still not use NAV on Azure, but by my opinion this feature can move all of us forward. Azure SQL can save a money and we finally have a good tool for managing our multitenant environment – Management Service Portal.

I gave a word to people on my session that I’ll publish my presentation and PowerShell scripts on my blog. You can find them here:

In few following scripts, I’ll describe all details about using NAV 2016 on Azure SQL Server and give you some answers on additional questions I already got.

2015-11-23_13-19-19.png

My NAV Lectures This Fall

To the end of this year, there will be a few very interesting NAV Conferences. I will go on most of them, but on few of them I will be a lecturer. Now, I can present schedules of my lectures this fall.

DirectionsEMEA

First, I’m starting at Directions EMEA, Mannheim, GermanyOctober 5-7, 2015

I was on almost all Directions EMEA Conferences, but it will be my first time as lecturer. I still remember Paris 2008, but now it is really huge conference (it will be conference with 1.300+ attendees). Topic will be how you can implement NAV in construction business. I think I have a lot of experiences in this topic and I think it will be very interesting. I still don’t know exact term, but I’ll publish it in a timely manner. I will be there few days earlier. See you there.

Sinergija

In second half of October, I will start with MS Sinergija, Belgrade, SerbiaOctober 21-23, 2015

MS Sinergija is my favorite Serbian IT Conference. It will be my tenth lecture on this conference. Conference will be at inconvenient times this year because my trip to US, but it will be a jubilee lecture and I cannot miss it. I’m still not sure about topic, but it will be for sure about something new in NAV 2016. I hope it will be interesting for people in my country.

DirectionsNA

Only one day after Sinergija I will fly to US on Directions NA, Orlando, USAOctober 25-28, 2015

This will be my first time on Directions NA and I hope not the last J. I expect to meet a lot of good people there. On this Conference, I will have the same session as on Directions EMEA – How to implement NAV in construction business. This lecture is part of MVP Best Practices Track and it is already scheduled as session BP 450 on 1:15 PM – 2:15 PM, Tuesday, October 27. This year, I will stay in USA two weeks. After this conference, I will be few days in San Francisco and in Seattle on MVP Summit after that, as well.

NAVTechDays

And on the end, as my the last conference this year, I’ve planned NAV TechDays, Antwerp, BelgiumNovember 19-20, 2015

Last year, I was on this conference for the first time and I just fell in love. I will have one session this year: Deploying and Managing Microsoft Dynamics NAV 2016 with Azure SQL Database. It will be completely technical session and I hope you will recognize it as interesting topic. It is an honor to be with these great people on this conference. This session is already scheduled at 11:00 – 12:30, Friday, November 20.

I hope I’ll see and meet a lot of good people on all these conferences. In meantime, I will also be on MVP Summit in Redmond, US – November 2-5, 2015. See you there.

Unfortunately, I will not be on NAVUG Summit, Microsoft Business Summit Asia and on Convergence EMEA because of my tight schedule on the end of year. But I hope, maybe next year.

Deploying NAV 2016 on Azure SQL on NAVTechDays

I have already wrote about NAV TechDays 2015. By my opinion, this is the best global NAV technical conference. I didn’t introduce you in my session, because in this moment this topic was still by NDA. But now, we heard about it on WPC in Atlanta this week.

Now I can introduce you in my session about Deploying and Managing Microsoft Dynamics NAV 2016 with Azure SQL Server. You can learn a lot about this awesome feature. I have already introduced in this topic with small article on my blog, but on this session I will present full concept with lot of demos. You can find more about this session here.

But beside my session, there will be a lot of good sessions by other lecturers and you can find all of them here. I think all these sessions will be good reason to register for this conference in Antwerp.

See you there…