<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>/|/| VirtualMite</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/virtual-mite/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/virtual-mite/feed.xml</link>
    <description>Viridian was just the beginning...</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:50:17 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Windows Azure Pack - Subscription Active (Out Of Sync) (Again)...</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/windows-azure-pack-subscription-active-out-of-sync-again</link>
      <pubDate>Tue, 10 Mar 2015 08:22:27 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2015/03/10/windows-azure-pack-subscription-active-out-of-sync-again/</guid>
      <description><![CDATA[Recently been playing around with Azure Pack in my lab and came across the issue of assigned...]]></description>
      <content:encoded><![CDATA[<p>Recently been playing around with Azure Pack in my lab and came across the issue of assigned subscriptions appearing as Active (Out of Sync). As we are way past UR1, my previous post is not valid in this case (<a href="/b/virtual-mite/archive/2014/03/21/windows-azure-pack-subscription-active-out-of-sync.aspx">https://blogs.technet.com/b/virtual-mite/archive/2014/03/21/windows-azure-pack-subscription-active-out-of-sync.aspx</a>).</p>
<p>So here&#39;s my symptoms:</p>
<p>Problem: When adding&nbsp;a new&nbsp;subscription to a new user the status of that subscription appears Active (Out of Sync).</p>
<p>Noted Event Errors:</p>
<p><strong>Event ID 262 - MgmtSVC-AdminAPI/Operational</strong> (Example: &quot;Job &#39;fdce0927-9137-4346-8616-999aa8a8b962&#39; failed: System.Exception: Tenant for subscription cf02b3f9-1598-41bb-8b61-5f4f039221c0 does not exist.&quot;)<br /><strong>Event ID 204 - MgmtSVC-AdminAPI/Operational</strong> (Example: &quot;Resource provider unexpected exception for fanout request with verb &#39;POST&#39;, operation name &#39;Fanout&#39;, request URI &#39;https://localhost:8090/provider/subscriptions&#39;,&nbsp; version &#39;&#39;, client request Id &#39;&#39;, server request Id &#39;&#39;, status code &#39;InternalServerError&#39;, reason &#39;Internal Server Error&#39;, body &#39;Failed to create subscription. Reason: Message : An error occurred while processing this request., InnerMessage: &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&quot;)</p>
<p>Another symptom of this issue is, when you create and assign the new user to the subscription the account is not created in VMM, under Settings/Security/User Roles.</p>
<p>Working through the symptoms I narrowed it down to being an issue with SPF (Service Provider Foundation) communicating to VMM. I checked the <em>localspf </em> user permissions and all appears fine. </p>
<p>Looking in IIS, I checked over the SPF site. The Binding appeared fine...but when looking at the account used to run the Provider, it appeared as Network Service (<em>obviously over-looked during setup!). </em>Changing this &quot;Identity&quot; to a domain account and after&nbsp;hitting &quot;Recycle&quot; on the Provider I was able to successfully create a new user and assign a subscription. Which resulted in the new account appearing in VMM.</p>
<p>IIS Manager -&gt; Application Pools:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/7026_120413_1128_WindowsAzur18.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/7026_5F00_120413_5F00_1128_5F00_WindowsAzur18.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/7026_120413_1128_WindowsAzur18.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/7026_5F00_120413_5F00_1128_5F00_WindowsAzur18.png" border="0" /></a></p>
<p>Useful Azure Pack setup blog: <a href="/b/privatecloud/archive/2013/12/06/windows-azure-pack-installing-amp-configuring-series.aspx">https://blogs.technet.com/b/privatecloud/archive/2013/12/06/windows-azure-pack-installing-amp-configuring-series.aspx</a> </p>]]></content:encoded>
    </item>
    <item>
      <title>PowerShell to discover the version of Hyper-V Integration Services installed</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/powershell-to-discover-the-version-of-hyper-v-integration-services-installed</link>
      <pubDate>Wed, 21 Jan 2015 05:38:00 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2015/01/21/powershell-to-discover-the-version-of-hyper-v-integration-services-installed/</guid>
      <description><![CDATA[I am frequently required, when checking the health of a Hyper-V cluster and VMs, to check whether...]]></description>
      <content:encoded><![CDATA[<p>I am frequently required, when checking the health of a Hyper-V cluster and VMs, to check whether the VMs have the relevant version of Integration Services installed. So I put together a quick PowerShell script, which queries all nodes and their hosted VMs in a cluster. The results are then outputted to a .htm file. The script will need to ideally be run on one of the hosts in the cluster, but this will depend on your environment.</p>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9643/00/00/03/64/39/69/Check_installed_IS.zip" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9643-00-00-03-64-39-69/Check_5F00_installed_5F00_IS.zip">Check_installed_IS.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Exposing the Cluster Reserve calculations in SCVMM using PowerShell</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/exposing-the-cluster-reserve-calculations-in-scvmm-using-powershell</link>
      <pubDate>Wed, 07 Jan 2015 03:04:00 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2015/01/07/exposing-the-cluster-reserve-calculations-in-scvmm-using-powershell/</guid>
      <description><![CDATA[Recently,&nbsp; I have been working with a customer who has a number of clusters in their VMM...]]></description>
      <content:encoded><![CDATA[<p>Recently,&nbsp; I have been working with a customer who has a number of clusters in their VMM environment that appear with a <em>Warning</em> triangle next too the cluster icon in the console. The obvious question they initially put to me was &quot;Why are my clusters over-committed?&quot; to which I jokingly replied &quot;Because VMM says so!&quot;.</p>
<p>Having finished rolling around laughing! I began to look into the calculations behind the feature. Trying to find good information on this feature, at the time, was extremely difficult.</p>
<p>In an attempt to publicize this feature further I would simply like to reiterate the information now available in a blog article by Hilton Lange: <a href="/b/scvmm/archive/2014/12/15/taking-a-closer-look-at-the-virtual-machine-manager-cluster-overcommit-algorithm.aspx">https://blogs.technet.com/b/scvmm/archive/2014/12/15/taking-a-closer-look-at-the-virtual-machine-manager-cluster-overcommit-algorithm.aspx</a></p>
<p>In Hilton&#39;s blog he talks about the 2 methods (Simple &amp; Proof) and the 4 checks (Proof-simple, Slot-simple, Proof-full &amp; Slot-full), VMM undertakes to attempt to prove that a cluster is not over-committed. If any 1 of the checks results in an &quot;OK&quot; (cluster not over-committed) VMM will mark the cluster as &quot;OK&quot;.</p>
<table class="MsoTableGrid" style="border:currentColor;border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr></tr>
<tr>
<td width="208" valign="top" style="width:155.8pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt;">
<div style="margin-bottom:.0001pt;line-height:normal;"><span lang="EN-US">&nbsp;</span></div>
</td>
<td width="208" valign="top" style="width:155.85pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt;">
<div style="margin-bottom:.0001pt;line-height:normal;"><i><span lang="EN-US">Proof method</span></i></div>
</td>
<td width="208" valign="top" style="width:155.85pt;border:solid windowtext 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt;">
<div style="margin-bottom:.0001pt;line-height:normal;"><i><span lang="EN-US">Slot method</span></i></div>
</td>
</tr>
<tr>
<td width="208" valign="top" style="width:155.8pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt;">
<div style="margin-bottom:.0001pt;line-height:normal;"><i><span lang="EN-US">Simple check</span></i></div>
</td>
<td width="208" valign="top" style="width:155.85pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt;">
<div style="margin-bottom:.0001pt;line-height:normal;"><span lang="EN-US">Proof-simple</span></div>
</td>
<td width="208" valign="top" style="width:155.85pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt;">
<div style="margin-bottom:.0001pt;line-height:normal;"><span lang="EN-US">Slot-simple</span></div>
</td>
</tr>
<tr>
<td width="208" valign="top" style="width:155.8pt;border:solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt;">
<div style="margin-bottom:.0001pt;line-height:normal;"><i><span lang="EN-US">Full complexity check</span></i></div>
</td>
<td width="208" valign="top" style="width:155.85pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt;">
<div style="margin-bottom:.0001pt;line-height:normal;"><span lang="EN-US">Proof-full</span></div>
</td>
<td width="208" valign="top" style="width:155.85pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt;">
<div style="margin-bottom:.0001pt;line-height:normal;"><span lang="EN-US">Slot-full</span></div>
</td>
</tr>
</tbody>
</table>
<p>So all of this information is great, but how do you know WHY or WHEN your cluster is likely to be Over-committed? The answer to both these questions would normally involve a lot of numbers and manual calculations. However following on from a PowerShell script I discovered (<a href="https://www.miru.ch/unveiling-cluster-overcommit-in-scvmm-2012-hyper-v/">https://www.miru.ch/unveiling-cluster-overcommit-in-scvmm-2012-hyper-v/) </a>I have created a method of checking all clusters, within a single HostGroup, to confirm if they are or indeed when they are likely to become over-committed. The PowerShell script only performs the Proof-full check on HostsGroups with a Cluster Reserve set to 1. Using the output report you will have the data to manually check the remaining methods and indeed in some cases where the Cluster Reserve is set &gt;1.</p>
<p>The output file details what would happen to the memory resources of each host if it were to fail. The output also details the remaining cluster capacity in the event of each host failure. When attempting to pin-point a time when a cluster may become over-committed, by simply increasing either the memory allocated or demand, on a VM, the increased value will be deducted from each of the &quot;Remaining cluster capacity (GB)&quot; calculated for each of the host failure scenario.</p>
<p>It is my intention to develop this and further PowerShell scripts, to aid everyone to check and understand the Cluster Reserve feature as well as the people that wrote it!</p>
<p>If you have previous experience with this setting and have developed your own method of calculating your Cluster Reserve, please share them...this is the only way everyone (who needs to) will learn.</p>
<p>(The attached script is intended to be a guide and a method of exposing the values used to calculate the Cluster Reserve result)</p>
<p><!--[if gte mso 9]>
 
  
 
<![endif]--></p>
<p><!--[if gte mso 9]>
 
  Normal
  0
  
  
  
  
  false
  false
  false
  
  EN-US
  X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
  
  
   
   
   
   
   
   
   
   
   
   
   
  
<![endif]--><!--[if gte mso 9]>
 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
<![endif]--><!--[if gte mso 10]>

 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&quot;Table Normal&quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:&quot;&quot;;
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin-top:0cm;
	mso-para-margin-right:0cm;
	mso-para-margin-bottom:8.0pt;
	mso-para-margin-left:0cm;
	line-height:107%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&quot;Calibri&quot;,sans-serif;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-ansi-language:EN-US;
	mso-fareast-language:EN-US;}
table.MsoTableGrid
	{mso-style-name:&quot;Table Grid&quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-priority:39;
	mso-style-unhide:no;
	border:solid windowtext 1.0pt;
	mso-border-alt:solid windowtext .5pt;
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-border-insideh:.5pt solid windowtext;
	mso-border-insidev:.5pt solid windowtext;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&quot;Calibri&quot;,sans-serif;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-ansi-language:EN-US;
	mso-fareast-language:EN-US;}

<![endif]--></p>
<!--[if gte mso 9]>
 
  
 
<![endif]--><!--[if gte mso 9]>
 
  Normal
  0
  
  
  
  
  false
  false
  false
  
  EN-US
  X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
  
  
   
   
   
   
   
   
   
   
   
   
   
  
<![endif]--><!--[if gte mso 9]>
 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
<![endif]--><!--[if gte mso 10]>

 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&quot;Table Normal&quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:&quot;&quot;;
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin-top:0cm;
	mso-para-margin-right:0cm;
	mso-para-margin-bottom:8.0pt;
	mso-para-margin-left:0cm;
	line-height:107%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&quot;Calibri&quot;,sans-serif;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-ansi-language:EN-US;
	mso-fareast-language:EN-US;}
table.MsoTableGrid
	{mso-style-name:&quot;Table Grid&quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-priority:39;
	mso-style-unhide:no;
	border:solid windowtext 1.0pt;
	mso-border-alt:solid windowtext .5pt;
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-border-insideh:.5pt solid windowtext;
	mso-border-insidev:.5pt solid windowtext;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&quot;Calibri&quot;,sans-serif;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-ansi-language:EN-US;
	mso-fareast-language:EN-US;}

<![endif]-->
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9643/00/00/03/64/32/92/Over-Committed_ProofFull_withOutput_v1.2.zip" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9643-00-00-03-64-32-92/Over_2D00_Committed_5F00_ProofFull_5F00_withOutput_5F00_v1.2.zip">Over-Committed_ProofFull_withOutput_v1.2.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>A Simple Script to Locate a VM</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/a-simple-script-to-locate-a-vm</link>
      <pubDate>Tue, 25 Nov 2014 06:53:44 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2014/11/25/a-simple-script-to-locate-a-vm/</guid>
      <description><![CDATA[For some of us finding a single VM in amongst several thousand can be a tiresome task. Of course you...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family:verdana,geneva;">For some of us finding a single VM in amongst several thousand can be a tiresome task. Of course you could opt to use the VMM Search feature, however if you don&#39;t have access to the console and you need a quick and painless way of locating <span style="font-size:x-small;"><span style="font-size:small;">a machine, this</span> <span style="font-size:small;">s</span></span><span style="font-size:small;">i</span>mple script should do the trick:</span></p>
<p><br /><span style="font-family:verdana,geneva;">Simply copy and paste the below into notepad, save as a .ps1 and run it!</span></p>
<!--[if gte mso 9]>
 
  
 
<![endif]-->
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;color:blue;"><br />Import-Module</span><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"> <span style="color:blueviolet;">virtualmachinemanager</span> <span style="color:navy;">-ErrorAction</span> <span style="color:blueviolet;">SilentlyContinue</span></span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">&nbsp;</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;color:orangered;">$VMName</span><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"> <span style="color:darkgray;">=</span> <span style="color:blue;">Read-Host</span> <span style="color:darkred;">&quot;Enter the virtual machine name&quot;</span></span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">&nbsp;</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;color:orangered;">$VM</span><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"> <span style="color:darkgray;">=</span> <span style="color:blue;">Get-SCVirtualMachine</span> <span style="color:navy;">-Name</span> <span style="color:orangered;">$VMName</span></span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">&nbsp;</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;color:orangered;">$Cluster</span><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"> <span style="color:darkgray;">=</span> <span style="color:blue;">Get-SCVMHostCluster</span> <span style="color:darkgray;">|</span> <span style="color:blue;">where</span> {<span style="color:orangered;">$_</span><span style="color:darkgray;">.</span>Nodes <span style="color:darkgray;">-contains</span> <span style="color:orangered;">$VM</span><span style="color:darkgray;">.</span>HostName}</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">&nbsp;</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;color:darkblue;">If</span><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"> (<span style="color:orangered;">$Cluster</span> <span style="color:darkgray;">-eq</span> <span style="color:orangered;">$null</span>){</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">&nbsp;</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;color:blue;">Write-Host</span><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"> <span style="color:darkred;">&quot;Virtual Machine&quot;</span> <span style="color:orangered;">$VMName</span> <span style="color:darkred;">&quot;not found&quot;</span> <span style="color:navy;">-ForegroundColor</span> <span style="color:blueviolet;">Red</span></span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">}</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">&nbsp;</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;color:darkblue;">Else</span><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">{</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">&nbsp;</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;color:blue;">Write-Host</span><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"> <span style="color:darkred;">&quot;The virtual machine&quot;</span> <span style="color:orangered;">$VMName</span> <span style="color:darkred;">&quot;is currently hosted on&quot;</span> <span style="color:orangered;">$VM</span><span style="color:darkgray;">.</span>HostName <span style="color:navy;">-ForegroundColor</span> <span style="color:blueviolet;">Cyan</span></span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">&nbsp;</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;color:blue;">Write-Host</span><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"> <span style="color:darkred;">&quot;Host&quot;</span> <span style="color:orangered;">$VM</span><span style="color:darkgray;">.</span>HostName <span style="color:darkred;">&quot;is a member of&quot;</span> <span style="color:orangered;">$Cluster</span><span style="color:darkgray;">.</span>Name <span style="color:navy;">-ForegroundColor</span> <span style="color:blueviolet;">Cyan</span></span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">&nbsp;</span></div>
<div style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;">} <br /></span></div>
<p style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"><span style="font-family:verdana,geneva;">You will be prompted for the VM Name, press enter and shortly after you will be given the Host and Cluster name where the VM is currently located.</span><br /></span></p>
<p style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/FindMyVM.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/FindMyVM.JPG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/FindMyVM.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/FindMyVM.JPG" alt=" " border="0" /></a></span></p>
<p style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"><span style="font-family:verdana,geneva;">I have also created another version that allows you to query multiple VMM Management servers</span>: [View:~/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/FindMyVM_5F00_MultipleVMMServers.txt:550:0]<br /></span></p>
<p style="margin-bottom:.0001pt;line-height:normal;background:white;"><span style="font-size:9.0pt;font-family:&#39;Lucida Console&#39;;"><span style="font-family:verdana,geneva;">Since creating this article I have developed the script further to allow it to be run remotely from any machine. You are required to enter your VMM Server FQDN in the script before it will work in your environment. When running the script you will be prompted for credentials, which will be used to connect to the VMM Server and the name of the VM you want to find: [View:~/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/FindMyVM_5F00_Remotely.txt:550:0]</span><br /></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Cluster Storage not appearing in VMM Cluster Properties</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/cluster-storage-not-appearing-in-vmm-cluster-properties</link>
      <pubDate>Fri, 31 Oct 2014 06:54:23 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2014/10/31/cluster-storage-not-appearing-in-vmm-cluster-properties/</guid>
      <description><![CDATA[I stumbled across this issue when working with a user that wanted to add additional Cluster Shared...]]></description>
      <content:encoded><![CDATA[<p>I stumbled across this issue when working with a user that wanted to add additional Cluster Shared Volumes (CSVs) to an already VMM-managed Hyper-V cluster.</p>
<p>The user needed to create a new volume copy a large number of .vhd files to it and then clone the volume, creating multiple disks to be added as separate CSVs. The copying of the data and the cloning of the disks appeared to work fine, even the adding of the new volumes and enabling them as CSVs worked perfect, in Failover Cluster Manager (FCM). The problem came when the user wanted to be able to attach the .vhds stored on the new volumes to existing Virtual Machines (VMs) using a PowerShell script which included VMM cmdlets. Whenever they attempted to run the script, there were advised that the new volumes do not exist. However we could see them in FCM and even browse/read/write to them via Explorer. However, when looking at the properties of the cluster in VMM the new volumes did not appear. Below is a couple of example screenshots of the experienced issue:</p>
<p>New volume appearing in FCM</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/FCM_CSV_Storage.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/FCM_5F00_CSV_5F00_Storage.JPG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/FCM_CSV_Storage.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/FCM_5F00_CSV_5F00_Storage.JPG" alt=" " border="0" /></a></p>
<p>Emtpy Shared Volume list in VMM, cluster properties</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Empty_CSV_Storage.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Empty_5F00_CSV_5F00_Storage.JPG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Empty_CSV_Storage.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Empty_5F00_CSV_5F00_Storage.JPG" alt=" " border="0" /></a></p>
<p>When analyzing the individual hosts and checking what storage they can <em>see</em>, interestingly we can see reference to the volume in FCM under the Hardware section on the host properties, example:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Host_Storage.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Host_5F00_Storage.JPG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Host_Storage.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Host_5F00_Storage.JPG" alt=" " border="0" /></a></p>
<p><strong><span style="text-decoration:underline;">With no number of manual VMM refresh tasks fixing the issue, I simply removed the storage, formatted the disk and re-added to the cluster (using FCM). After performing these simple tasks, in my case, the disk appeared in VMM cluster properties:</span></strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/WORKING_CSV_Storage.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/WORKING_5F00_CSV_5F00_Storage.JPG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/WORKING_CSV_Storage.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/WORKING_5F00_CSV_5F00_Storage.JPG" alt=" " border="0" /></a></p>
<p><br />After performing these tests and investigating the issue, I am still yet to find out why the disks did not appear in VMM cluster properties...however what I have learned is that VMM doesn&#39;t <em>appear</em> to like cluster disks that have been added to a cluster without being <em>freshly</em> formatted.</p>]]></content:encoded>
    </item>
    <item>
      <title>Duplicate VMs created on destination during cluster-to-cluster migration</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/duplicate-vms-created-on-destination-during-cluster-to-cluster-migration</link>
      <pubDate>Thu, 11 Sep 2014 03:13:46 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2014/09/11/duplicate-vms-created-on-destination-during-cluster-to-cluster-migration/</guid>
      <description><![CDATA[Following on from:...]]></description>
      <content:encoded><![CDATA[<p>Following on from: <a href="/b/virtual-mite/archive/2014/09/11/virtual-machine-migration-operation-failed-at-source-an-existing-connection-was-forcibly-closed.aspx">https://blogs.technet.com/b/virtual-mite/archive/2014/09/11/virtual-machine-migration-operation-failed-at-source-an-existing-connection-was-forcibly-closed.aspx</a></p>
<p>After fixing the errors when performing a Live (VSM) migration, we found that on the destination host/cluster duplicate VMs/Roles in Failover Cluster Manager were created. The following video demonstrates this behaviour:</p>
<p>[View:~/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/0825.clustertocluster_5F00_migration.avi:0:0]</p>
<p>This issue was acknowledged and now FIXED in VMM 2012 R2 Rollup 3 (<span style="color:#1f497d;font-family:&#39;Calibri&#39;,&#39;sans-serif&#39;;font-size:11pt;"><a href="https://support.microsoft.com/kb/2965414"><span style="color:#0563c1;">https://support.microsoft.com/kb/2965414</span></a></span>).</p>]]></content:encoded>
    </item>
    <item>
      <title>Virtual machine migration operation failed at source. An existing connection was forcibly closed</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/virtual-machine-migration-operation-failed-at-source-an-existing-connection-was-forcibly-closed</link>
      <pubDate>Thu, 11 Sep 2014 03:09:00 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2014/09/11/virtual-machine-migration-operation-failed-at-source-an-existing-connection-was-forcibly-closed/</guid>
      <description><![CDATA[I have recently been working on a project that involves migrating VMs between clusters. This project...]]></description>
      <content:encoded><![CDATA[<p>I have recently been working on a project that involves migrating VMs between clusters. This project came about due to a desire to upgrade the storage and host hardware within the infrastructure.</p>
<p>We investigated the possibilities of using Failover Cluster Manager to migrate the VMs/Roles between clusters, however in this instance that method did not fit, due to the method requiring that the old storage be mapped to the new hosts (not possible due to hardware restrictions), also perhaps more importantly this method would incur downtime! <br /><br />In addition to the environment&nbsp;being a&nbsp;mature Hyper-V estate, we were also very fortunate that the customer had previously chosen to centrally manage their environment using SCVMM 2012 R2. Within VMM, since SP1, we have the ability to perform cluster-to-cluster Live Storage Migrations, also referred to as&nbsp;&quot;Live (VSM)&quot; during the wizard.&nbsp;(AMAZING, I know!). For more details see: <a href="https://technet.microsoft.com/en-us/library/jj628158.aspx">https://technet.microsoft.com/en-us/library/jj628158.aspx</a></p>
<p>So using the Live (VSM) feature in VMM we attempted to migrate a single VM, which worked perfectly. We then set about migrating further machines, however after 3 successful migrations, the 4th FAILED!. We attempted the same migration shortly after and it COMPLETED! whilst working through the list of VMs we saw a number of RANDOM failures, all producing the following error (Error (12700)):</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/LiveVSM_error_VMM.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/LiveVSM_5F00_error_5F00_VMM.JPG"><img width="551" height="123" style="width:583px;height:140px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/LiveVSM_error_VMM.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/LiveVSM_5F00_error_5F00_VMM.JPG" border="0" /></a></p>
<p>The same error may also appear when attempting a Storage Migration using the Hyper-V Manager console:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Repro.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Repro.JPG"><img width="545" height="531" style="width:349px;height:427px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Repro.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Repro.JPG" border="0" /></a></p>
<p>Whilst investigating the error messages, I found that the Live Migration authentication method was set to CredSSP, instead of Kerberos (see for details: <a href="https://technet.microsoft.com/en-us/library/jj134199.aspx">https://technet.microsoft.com/en-us/library/jj134199.aspx</a>). After configuring all hosts with Constrained Delegation, we no longer received the above error when performing Live (VSM) migrations, in VMM,&nbsp;between clusters.</p>
<p>Although the initial issue had been resolved, we were left with another....(see for details: <a href="/b/virtual-mite/archive/2014/09/11/duplicate-vms-created-on-destination-during-cluster-to-cluster-migration.aspx">https://blogs.technet.com/b/virtual-mite/archive/2014/09/11/duplicate-vms-created-on-destination-during-cluster-to-cluster-migration.aspx</a>)</p>]]></content:encoded>
    </item>
    <item>
      <title>How to Move a VMM SQL Database</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/how-to-move-a-vmm-sql-database</link>
      <pubDate>Mon, 02 Jun 2014 03:09:15 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2014/06/02/how-to-move-a-vmm-sql-database/</guid>
      <description><![CDATA[I was previously asked by a customer &quot;What is the best way to move a VMM SQL database to...]]></description>
      <content:encoded><![CDATA[<p>I was previously asked by a customer &quot;What is the best way to move a VMM SQL database to another server?&quot;. The customer also advised that they had attempted to research the scenario, but were not able to find any documentation/blogs.&nbsp;So without &quot;<em>official&quot; </em> guidance I worked with the customer to create a Migration Task List. Following the items on the list we successfully moved their VMM DB between the SQL servers, &quot;<em>Hooray!!&quot;&nbsp;.</em>&nbsp;Unfortunately I am unable to&nbsp;personally assist everyone that has to do this, which is why<em>&nbsp;</em>I have put this article together, to highlight&nbsp;the steps we performed and hopefully help anyone else faced with a similar task:</p>
<p>The final task list included 22 steps, split into 3 sections (Prerequisites, Implementation and Testing). The majority of the steps involved were environmentally specific and will not apply to all setups. So here are the generic tasks that we had to complete in order to achieve a successful DB move:</p>
<p><strong>Prerequisites</strong></p>
<ol>
<li>Ensure you have a recent backup of the VMM Management servers - <em>In our case the customer used LUN Cloning technology to achieve this.</em></li>
<li>Backup the VMM DB, using SQL Management Studio</li>
<li>Ensure the relevant permissions are configured, as per the VMM Installation Prerequisites (<a href="https://technet.microsoft.com/en-us/library/gg610592.aspx">https://technet.microsoft.com/en-us/library/gg610592.aspx</a>)</li>
<li>Restore the backed up DB to the destination SQL Server - <em>if you have HA VMM Management servers, you are required to clear the HAVMMNAME and HAVMMNodes entries in the restored DB (see for details: <a href="/b/virtual-mite/archive/2014/02/13/reinstalling-clustered-scvmm-management-server-using-existing-sql-database.aspx">https://blogs.technet.com/b/virtual-mite/archive/2014/02/13/reinstalling-clustered-scvmm-management-server-using-existing-sql-database.aspx</a>) </em></li>
</ol>
<p><strong>Implementation<br /></strong><strong><br /></strong>(If you have a standalone VMM Management server perform Steps 4 and 6)</p>
<ol>
<li>Take the VMM cluster resource offline - <em>In Failover Cluster Manager select the SCVMM highly available role and &quot;Take Offline&quot;</em></li>
<li>Stop the System Center Virtual Machine Manager service on the active node - <em>This will stop VMM users logging into the console whilst maintenance is performed</em></li>
<li>Uninstall SCVMM from passive node(s) &amp; reboot</li>
<li>Uninstall SCVMM from active node &amp; reboot - <em>During the uninstallation wizard select &quot;Retain the database&quot;, as a precaution</em></li>
<li>Delete DNS and WINS entries, for the VMM Cluster Name</li>
<li>Install VMM on the first node, pointing to the restored DB on the destination SQL Server. After completion, install the latest rollup patches</li>
<li>Install VMM on the other node(s). After complete install the latest rollup patches</li>
</ol>
<p><strong>Testing<br /></strong></p>
<ol>
<li>Login to the VMM Console and confirm all Resources/Infrastructure Servers/VM Templates/Profiles...are available, as they were when using the original source SQL Server</li>
</ol>
<p>(Each VMM environment/IT Admin may have their own testing plan to confirm functionality)</p>
<p><br />The above steps will also apply, in most cases, when upgrading your VMM installation. However, you will need to perform additional tasks (example: upgrading the Vmmagent version on the hosts) to complete a successful upgrade.</p>]]></content:encoded>
    </item>
    <item>
      <title>Output formatted PowerShell data to file (LogWrite)</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/output-formatted-powershell-data-to-file-logwrite</link>
      <pubDate>Thu, 27 Mar 2014 10:01:00 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2014/03/27/output-formatted-powershell-data-to-file-logwrite/</guid>
      <description><![CDATA[I am sure that I am not the only person that got frustrated with not being able to output formatted...]]></description>
      <content:encoded><![CDATA[<p>I am sure that I am not the only person that got frustrated with not being able to output formatted PowerShell tables to file (am I?!)...If you too are still seeing this logged in your output file, read on:<br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Capture_nologwrite.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Capture_5F00_nologwrite.JPG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Capture_nologwrite.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Capture_5F00_nologwrite.JPG" border="0" /></a></p>
<p>The above output file was a result of the following command: <span style="font-size:small;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">Get-SCVirtualMachine</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;">|</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">ft</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;"><span style="color:#8a2be2;font-family:Lucida Console;"><span style="color:#8a2be2;font-family:Lucida Console;">Name</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;">|</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">export-csv</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;"><span style="color:#8a2be2;font-family:Lucida Console;"><span style="color:#8a2be2;font-family:Lucida Console;">C:\Output.txt </span></span></span></span></p>
<p>In order to overcome this issue I have discovered &quot;LogWrite&quot;, by simply adding the following lines to the beginning of your script, you will be able to log any results/comments to the output file:</p>
<p><span style="font-size:small;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$Logfile</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;">=</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">Read-Host</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#8b0000;font-family:Lucida Console;"><span style="color:#8b0000;font-family:Lucida Console;"><span style="color:#8b0000;font-family:Lucida Console;">&quot;Enter the LogFile Path (example: C:\Output.txt)&quot;<br /></span></span></span></span><span style="font-size:small;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;">Function</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;"><span style="color:#8a2be2;font-family:Lucida Console;"><span style="color:#8a2be2;font-family:Lucida Console;">LogWrite<br /></span></span></span></span><span style="font-size:small;">{<br /></span><span style="font-size:small;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;">Param</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> (</span></span><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;">[</span></span></span><span style="color:#008080;font-family:Lucida Console;"><span style="color:#008080;font-family:Lucida Console;"><span style="color:#008080;font-family:Lucida Console;">string</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;">]</span></span></span><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$logstring</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;">)</span></span></span></p>
<p><span style="font-size:small;"><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">Add-content</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$Logfile</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#000080;font-family:Lucida Console;"><span style="color:#000080;font-family:Lucida Console;"><span style="color:#000080;font-family:Lucida Console;">-value</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$logstring<br /></span></span></span></span><span style="font-size:small;">}</span></p>
<p>So, now using the above command I am able to create a script that will return the values I was originally attempting to capture.<br /><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Capture_logwrite.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Capture_5F00_logwrite.JPG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/96/43/Capture_logwrite.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-96-43/Capture_5F00_logwrite.JPG" border="0" /></a></p>
<p>Script used to generate the above Output.txt:</p>
<p><span style="font-size:small;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$Logfile</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;">=</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">Read-Host</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#8b0000;font-family:Lucida Console;"><span style="color:#8b0000;font-family:Lucida Console;"><span style="color:#8b0000;font-family:Lucida Console;">&quot;Enter the LogFile Path (example: C:\Output.txt)&quot;<br /></span></span></span></span><span style="font-size:small;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;">Function</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;"><span style="color:#8a2be2;font-family:Lucida Console;"><span style="color:#8a2be2;font-family:Lucida Console;">LogWrite<br /></span></span></span></span><span style="font-size:small;">{<br /></span><span style="font-size:small;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;">Param</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> (</span></span><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;">[</span></span></span><span style="color:#008080;font-family:Lucida Console;"><span style="color:#008080;font-family:Lucida Console;"><span style="color:#008080;font-family:Lucida Console;">string</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;">]</span></span></span><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$logstring</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;">)<br /></span></span></span><span style="font-size:small;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">Add-content</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$Logfile</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#000080;font-family:Lucida Console;"><span style="color:#000080;font-family:Lucida Console;"><span style="color:#000080;font-family:Lucida Console;">-value</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$logstring<br /></span></span></span></span><span style="font-size:small;">}<br /></span><span style="font-size:small;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">LogWrite</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#8b0000;font-family:Lucida Console;"><span style="color:#8b0000;font-family:Lucida Console;"><span style="color:#8b0000;font-family:Lucida Console;">&quot;VMName&quot;<br /></span></span></span></span><span style="font-size:small;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;">ForEach</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> (</span></span><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$VM</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;"><span style="color:#00008b;font-family:Lucida Console;">in</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">Get-SCVirtualMachine</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;">){<br /></span></span></span><span style="font-size:small;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;"><span style="color:#0000ff;font-family:Lucida Console;">LogWrite</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;"><span style="color:#ff4500;font-family:Lucida Console;">$VM</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;"><span style="color:#a9a9a9;font-family:Lucida Console;">.</span></span></span><span style="font-family:Lucida Console;"><span style="font-family:Lucida Console;">Name<br /></span></span></span><span style="font-size:small;">}</span></p>
<p>This is just another one of those simple&nbsp;PowerShell tricks that allow you to overcome a frustrating task.</p>]]></content:encoded>
    </item>
    <item>
      <title>Windows Azure Pack - Subscription Active (Out of Sync)</title>
      <link>https://docs.microsoft.com/archive/blogs/virtual-mite/windows-azure-pack-subscription-active-out-of-sync</link>
      <pubDate>Fri, 21 Mar 2014 02:07:00 GMT</pubDate>
      <dc:creator><![CDATA[Daniel Brind]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/virtual-mite/2014/03/21/windows-azure-pack-subscription-active-out-of-sync/</guid>
      <description><![CDATA[I recently assisted with a&nbsp;Distributed installation of Windows Azure Pack (WAP). For those of...]]></description>
      <content:encoded><![CDATA[<p>I recently assisted with a&nbsp;Distributed installation of Windows Azure Pack (WAP). For those of us that are not familiar with the different installation methods, here is a quick break down:</p>
<p>Express Installation - This type of installation should only be used in test and development environments. An Express installation allows you to install all of the WAP roles on a single server. This method is NOT supported in a production environment</p>
<p>Distributed installation - This method requires you to install the WAP roles on separate servers. The entry level installation using this method requires 8 servers (physical or virtual). This method is supported in production. Below is a list of the 8 roles (7 of which&nbsp;are installed using the Web Platform Installer (WPI))&nbsp;that make up an installation of WAP.</p>
<p>1. Microsoft SQL Server for Windows Azure Pack management databases<br />2. Admin API<br />3. Tenant API<br />4. Tenant public API<br />5. Admin authentication site<br />6. Tenant authentication site<br />7. Admin site (management portal for administrators)<br />8. Tenant site (management portal for tenants)</p>
<p>For more information see: <a href="https://technet.microsoft.com/en-us/library/dn296442.aspx">https://technet.microsoft.com/en-us/library/dn296442.aspx</a></p>
<p>Although the above information is useful, the reason for writing this post was to add further publicity to an issue&nbsp;we experienced during the installation.</p>
<p>Once we had completed the installation, we registered SPF in WAP and created a User Account. We then continued to create a Plan for a Cloud that we had created in VMM. When it came to adding the Plan to the User Account, as a Subscription. The Subscription status remained in &quot;Active (Out of Sync)&quot;, which meant that we were unable to deploy VMs using this account and subscription. After a bit of effort it was highlighted that in order to over come this issue, we had to install VMM 2012 R2 Rollup 1 (<a target="_blank" title="https://support.microsoft.com/kb/2904712" href="https://support.microsoft.com/kb/2904712">https://support.microsoft.com/kb/2904712</a>) <a href="https://support.microsoft.com/kb/2904712)"></a> <strong>As part of the installation you must also ensure that you run the SQL query included in the KB, otherwise the problem will persist.</strong></p>]]></content:encoded>
    </item>
  </channel>
</rss>