Install SQL Server 2012 Web edition on Azure (2VM script)

Capone
Member Posts: 125
Hi!
Since I'm a newbie on installing stuff on Azure I would like to share my experiences.
I was going to do a installation with the 2VM script (http://msdn.microsoft.com/en-us/library/dn168972(v=nav.70).aspx) but ended up with some problems with the SQL Server 2012 Web edition image.
If you look at the SQL images you can use on azure (http://msdn.microsoft.com/en-us/library ... aspx#about) Web edition image of SQL 2012 only exists with OS Windows Server 2008.
What I discovered is that Windows Server 2008 doesn't have the right version of powershell to fully succeed with the 2VM script.
Instead you will get the errors:
VERBOSE: Loading module from path 'C:\REMOTE\NAVAdministration\Microsoft.Dynamics.Nav.Management.dll'.
Could not load file or assembly 'file:///C:\REMOTE\NAVAdministration\Microsoft.Dynamics.Nav.Management.dll' or one of its dependencies. This assembly i
s built by a runtime newer than the currently loaded runtime and cannot be loaded.
+ CategoryInfo : NotSpecified: (:) [Import-Module], BadImageFormatException
+ FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand
+ PSComputerName : processpumpsql.cloudapp.net
and
VERBOSE: Creating database DynamicsNAV71 based on C:\Install\Database\Demo Database NAV (7-1).bak...
The term 'New-NAVDatabase' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (New-NAVDatabase:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : processpumpsql.cloudapp.net
So what to do then?
Well, the major steps are to execute the 2VM script up to the point where it needs the new powershell version, then install the new powershell version. After that execute the rest of the 2VM script.
In detail, first start Windows PowerShell ISE, run the entire script (F5) and break (CTRL+C in the console) when all the librarys has been loaded.
Then mark all the code up to the section HowTo-AddNAVInstance, that is the failing part. Press F8.
Once the script is finnished, connect to the SQL VM and follow this guide http://technet.microsoft.com/en-us/library/hh847837.aspx#BKMK_InstallingOnWindowsServer2008LH
After that mark the rest of code in the 2VM script and execute (F8) and it should work.
Since I'm a newbie on installing stuff on Azure I would like to share my experiences.
I was going to do a installation with the 2VM script (http://msdn.microsoft.com/en-us/library/dn168972(v=nav.70).aspx) but ended up with some problems with the SQL Server 2012 Web edition image.
If you look at the SQL images you can use on azure (http://msdn.microsoft.com/en-us/library ... aspx#about) Web edition image of SQL 2012 only exists with OS Windows Server 2008.
What I discovered is that Windows Server 2008 doesn't have the right version of powershell to fully succeed with the 2VM script.
Instead you will get the errors:
VERBOSE: Loading module from path 'C:\REMOTE\NAVAdministration\Microsoft.Dynamics.Nav.Management.dll'.
Could not load file or assembly 'file:///C:\REMOTE\NAVAdministration\Microsoft.Dynamics.Nav.Management.dll' or one of its dependencies. This assembly i
s built by a runtime newer than the currently loaded runtime and cannot be loaded.
+ CategoryInfo : NotSpecified: (:) [Import-Module], BadImageFormatException
+ FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand
+ PSComputerName : processpumpsql.cloudapp.net
and
VERBOSE: Creating database DynamicsNAV71 based on C:\Install\Database\Demo Database NAV (7-1).bak...
The term 'New-NAVDatabase' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (New-NAVDatabase:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : processpumpsql.cloudapp.net
So what to do then?
Well, the major steps are to execute the 2VM script up to the point where it needs the new powershell version, then install the new powershell version. After that execute the rest of the 2VM script.
In detail, first start Windows PowerShell ISE, run the entire script (F5) and break (CTRL+C in the console) when all the librarys has been loaded.
Then mark all the code up to the section HowTo-AddNAVInstance, that is the failing part. Press F8.
Once the script is finnished, connect to the SQL VM and follow this guide http://technet.microsoft.com/en-us/library/hh847837.aspx#BKMK_InstallingOnWindowsServer2008LH
After that mark the rest of code in the 2VM script and execute (F8) and it should work.
Hello IT, have you tried to turn it off and on?
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com
0
Comments
-
Hi,
When the nav uploading process is done, what message did you get? (the white text). is it successful or failed with exception?0 -
The white text at the end of "HowTo-AddNAVInstance" looked "normal" it doesn't end with any special error messages.Hello IT, have you tried to turn it off and on?
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions