Setting a StaticIP on Azure Server Returns an Error

by Codewiz51 5. October 2014 15:24

If you ever get the error: "Update-AzureVM : BadRequest: The value for parameter 'SubnetNames' is null or empty.", do not fret.  The fix is simple.  The VM that you are trying to assign a static IP does not exist in the subnet you are trying to assign it too.  I ended up deleting and recreating the server, making sure I used the "Gallery" and not the "Quick" creation option.  Then, ensure you create the VM in your private network.



Switching to Git from TFS

by Codewiz51 25. December 2013 09:44

I've been involved with Git at work since late May of 2013.  Transitioning to Eclipse, Java and Git was a bit intimidating in the beginning.  However, after some bumps in the road learning how to utilize Git, I became a convert to this version control system.  It's light weight, fast and runs well on Windows Server 2012.  I'm slowly migrating my projects off of TFS 2010 to a local Git repository.  What really sold me on Git is the ease of branching and merging operations.  Then, I discovered the add-in component for VS 2013 works as well or better than Eclipse's integration of Git.  About the only thing I am losing when I leave TFS is work item tracking.  However, that function will be filled by a $10 copy of Jira for my personal use.

I don't own powerful server hardware.  So Git is a Godsend compared to how TFS 2010 and Sharepoint 2010 drag on my outdated servers.

This series of blog posts will cover my experiences installing and configuring's version of Git for Windows:

  1. Stuff to download: (Prerequisites)
    • First, check out this post on MSDN to make sure your VS 2013 git client is operational. I strongly suggest you make sure you can connect VS 2013 to a github or bitbucket project and clone successfully before you even begin downloading anything else.  (I started out using github, but switched to bitbucket.  Bitbucket allows me access to Jira functionality (issue tracking) and code reviews (limited.)  It's free and allows private projects.
    • I like to install a command line git tool.  I use Chocolatey to install git command line tools.  I've run into some issues getting this to work over SSL, but I've solved all the problems and documented them in this series of articles.
    • If you are going to use Git over SSL, you'll may need OpenSSL for Windows.  GitStack needs an RSA key file, and OpenSSL is the only way I know to generate this file and create a certificate request tied to the key file.
    • You'll need the git installer.
    • I generally like to have a copy of Cygwin available.  This is completely optional, not required and not really used for this install (unless something goes incredibly wrong.)
    • There's probably some other stuff I've forgotten.  I'll add downloads here as time and memory permits. Cool
  2. Install
  3. Configure ports
  4. Firewall Changes
  5. Users and Groups
  6. LDAP/Active Directory
  7. OpenSSH/CertSrv/SSL
  8. Testing
  9. VS 2013 and Git
  10. Git-tfs

Since it's Christmas morning and the family is waking up, I'll fill in the details later today and tomorrow.  I need to go prepare Christmas breakfast for the World of Ware Crack crowd.


Design | Infrastructure | Programming

Discoveries while on call

by Codewiz51 16. March 2013 07:48

I was on call last week, during some incredibly hectic network switch overs and server patching.  I learned a lot about our infrastructure, and unfortunately, found out about several Windows Services that only one or two people knew about (and only one of the knowledgeable people was accessible.)  This little incident caused quite a few managers to be awakened in the middle of the night to handle a problem that was really quite simple to fix - if we had a smidgen of documentation.  This event was a very stark reminder to me that companies have to spend time documenting their environment.

If we had a cross reference of services running on the affected servers, we could have solved our problem in a couple of minutes instead of a few hours.

The problem that all companies face is staff turn over.  When a staff member leaves, and there is no documentation, the knowledge is lost.  If the company is lucky, you might be able to fish the information out of an email archive.  But mostly, the company is stuck with re-learning the process.  This is expensive, embarrassing when it affects customers and time consuming.

You have to make time to document your processes and develop operating manuals.

Tags: ,


Didn't keep good development notes? Here's some help

by Codewiz51 31. December 2012 15:13

If you use TFS, then you have help when you need to remember what you checked in over a period of time:

This command includes a date range:

tf history "$/<Your Project Path>/" /recursive /noprompt /format:detailed /user:<your user name> /version:D"11/1/12"~D"12/31/12"

How to run this command:

Start -> Visual Studio 2010->Visual Studio Tools-> Visual Studio 2010 Command Prompt.

Once the command prompt is ready, edit the above command, paste it into the command line, and you’ll soon have your list.  It’s big.  Really BIG!  It’ll overrun the output buffer of your command prompt window!

I suggest actually spooling the output to a text file:

tf history "$/DCDFLIB/" /recursive /noprompt /format:detailed /user:Gene /version:D"12/1/12"~D"12/31/12" > c:\mywork.txt

Then bring up mywork.txt in your favorite editor to see what you did last month!


Tags: , ,

Infrastructure | Programming

Upgraded Screwturn Wiki and BlogEngine.Net today

by Codewiz51 25. August 2012 21:47

I managed to upgrade my web site to .Net 4.0 today.  There was minimal trouble.  I had some minor trouble upgrading Screwturn wiki to use .Net 4.0.  I ultimately downloaded the source code and recompiled everything for .Net 4.0.  I also had to add a trust attribute to the web.config file.  Hopefully, I can get back into the swing of things.

I'm enjoying working on some e-commerce projects, but mostly I enjoy working on some very low level Windows 7 coding in my spare time.  I'm taking a course in Computer Security at Rose State this fall.




This blog represents my personal hobby, observations and views. It does not represent the views of my employer, clients, especially my wife, children, in-laws, clergy, the dog, the cat or my daughter's horse. In fact, I am not even sure it represents my views when I take the time to reread postings.  So, take most of what I say with a grain of salt.

© Copyright 2008-2014