<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Add An Existing Virtual Machine To An Availability Set In Azure	</title>
	<atom:link href="https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/feed/" rel="self" type="application/rss+xml" />
	<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-existing-virtual-machine-availability-set-azure</link>
	<description>A blog about Azure Kubernetes Service (AKS) and more...</description>
	<lastBuildDate>Sat, 08 Oct 2022 00:58:16 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>
		By: Freir Man		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-546</link>

		<dc:creator><![CDATA[Freir Man]]></dc:creator>
		<pubDate>Sat, 08 Oct 2022 00:58:16 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-546</guid>

					<description><![CDATA[When I tried to run this script, it just deleted all the resources related to VM (VM instance, disk and nik) So I need to redeploy all the things ...
New-AzureRmResourceGroupDeployment : 3:47:50 AM - Resource Microsoft.Compute/virtualMachines &#039;AZ-UKS-DAP-P02&#039; failed with message &#039;{
  &quot;error&quot;: {
    &quot;code&quot;: &quot;NotFound&quot;,
    &quot;message&quot;: &quot;Disk AZ-UKS-DAP-P02_OsDisk_1_2ca17bd584a541998d5f44f9f13642e8 is not found.&quot;,
    &quot;target&quot;: &quot;/subscriptions/d6d1eeeb-1796-4e08-b4d1-f2b2cacb1486/resourceGroups/FG-UKS-HUB-DuoAuthProxy-RG/providers/Microsoft.Compute/disks/AZ-UKS-DAP-P02_OsDi
sk_1_2ca17bd584a541998d5f44f9f13642e8&quot;
  }
New-AzureRmResourceGroupDeployment : 3:47:50 AM - Template output evaluation skipped: at least one resource deployment operation failed. Please list deployment 
operations for details. Please see https://aka.ms/DeployOperations for usage details.
At C:\Users\XXX\Documents\WindowsPowerShell\Modules\AzureRm.AvailabilitySetManagement\1.0.0.1\AzureRm.AvailabilitySet.CoreHelper.psm1:239 char:8
+ ...             New-AzureRmResourceGroupDeployment -Name &quot;SettingUpAvaila ...]]></description>
			<content:encoded><![CDATA[<p>When I tried to run this script, it just deleted all the resources related to VM (VM instance, disk and nik) So I need to redeploy all the things &#8230;<br />
New-AzureRmResourceGroupDeployment : 3:47:50 AM &#8211; Resource Microsoft.Compute/virtualMachines &#8216;AZ-UKS-DAP-P02&#8217; failed with message &#8216;{<br />
  &#8220;error&#8221;: {<br />
    &#8220;code&#8221;: &#8220;NotFound&#8221;,<br />
    &#8220;message&#8221;: &#8220;Disk AZ-UKS-DAP-P02_OsDisk_1_2ca17bd584a541998d5f44f9f13642e8 is not found.&#8221;,<br />
    &#8220;target&#8221;: &#8220;/subscriptions/d6d1eeeb-1796-4e08-b4d1-f2b2cacb1486/resourceGroups/FG-UKS-HUB-DuoAuthProxy-RG/providers/Microsoft.Compute/disks/AZ-UKS-DAP-P02_OsDi<br />
sk_1_2ca17bd584a541998d5f44f9f13642e8&#8221;<br />
  }<br />
New-AzureRmResourceGroupDeployment : 3:47:50 AM &#8211; Template output evaluation skipped: at least one resource deployment operation failed. Please list deployment<br />
operations for details. Please see <a href="https://aka.ms/DeployOperations" rel="nofollow ugc">https://aka.ms/DeployOperations</a> for usage details.<br />
At C:\Users\XXX\Documents\WindowsPowerShell\Modules\AzureRm.AvailabilitySetManagement\1.0.0.1\AzureRm.AvailabilitySet.CoreHelper.psm1:239 char:8<br />
+ &#8230;             New-AzureRmResourceGroupDeployment -Name &#8220;SettingUpAvaila &#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Oleg		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-425</link>

		<dc:creator><![CDATA[Oleg]]></dc:creator>
		<pubDate>Sun, 22 Mar 2020 16:30:18 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-425</guid>

					<description><![CDATA[Good, working solution with good description.
It&#039;ll be good to  add info, that for PShell 5.1+ AzureRM-commandlets can&#039;t be used with az-commandlets in parallel (they override each other).
So, to make this script work I&#039;ve installed AzureRM modules with next command:
&quot;Install-Module -Name AzureRM -RequiredVersion 5.1.1  -AllowClobber&quot;. Restarted PS. And then went step-by-step with your instructions.
Thanks a lot!]]></description>
			<content:encoded><![CDATA[<p>Good, working solution with good description.<br />
It&#8217;ll be good to  add info, that for PShell 5.1+ AzureRM-commandlets can&#8217;t be used with az-commandlets in parallel (they override each other).<br />
So, to make this script work I&#8217;ve installed AzureRM modules with next command:<br />
&#8220;Install-Module -Name AzureRM -RequiredVersion 5.1.1  -AllowClobber&#8221;. Restarted PS. And then went step-by-step with your instructions.<br />
Thanks a lot!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jörg Schoppmann		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-417</link>

		<dc:creator><![CDATA[Jörg Schoppmann]]></dc:creator>
		<pubDate>Fri, 14 Feb 2020 08:43:12 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-417</guid>

					<description><![CDATA[Just found your post here and wondering if there is any data carried over to the new VM... I have an existing CA Server in Azure (not used yet but configuration is done) and would like it to be in an availability set but not set up everything from scratch .Is this something I can accomplish with your script?

Cheers from Germany]]></description>
			<content:encoded><![CDATA[<p>Just found your post here and wondering if there is any data carried over to the new VM&#8230; I have an existing CA Server in Azure (not used yet but configuration is done) and would like it to be in an availability set but not set up everything from scratch .Is this something I can accomplish with your script?</p>
<p>Cheers from Germany</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pixel Robots.		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-350</link>

		<dc:creator><![CDATA[Pixel Robots.]]></dc:creator>
		<pubDate>Tue, 30 Apr 2019 11:53:51 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-350</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-349&quot;&gt;palms&lt;/a&gt;.

I don&#039;t believe it will have a new SID, but will have a new Azure resource ID so will probably need to be added into ASR again.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-349">palms</a>.</p>
<p>I don&#8217;t believe it will have a new SID, but will have a new Azure resource ID so will probably need to be added into ASR again.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: palms		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-349</link>

		<dc:creator><![CDATA[palms]]></dc:creator>
		<pubDate>Tue, 30 Apr 2019 11:51:05 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-349</guid>

					<description><![CDATA[Appreciate the quick response, thank you. If this is the case then, if teh original server is being backed up or part of ASR or anything else, does all that need to put back because this is essentially a new computer with I assume a new SID?]]></description>
			<content:encoded><![CDATA[<p>Appreciate the quick response, thank you. If this is the case then, if teh original server is being backed up or part of ASR or anything else, does all that need to put back because this is essentially a new computer with I assume a new SID?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pixel Robots.		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-348</link>

		<dc:creator><![CDATA[Pixel Robots.]]></dc:creator>
		<pubDate>Tue, 30 Apr 2019 11:21:07 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-348</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-347&quot;&gt;palms&lt;/a&gt;.

This script deletes the original and creates a new one in the AV set.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-347">palms</a>.</p>
<p>This script deletes the original and creates a new one in the AV set.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: palms		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-347</link>

		<dc:creator><![CDATA[palms]]></dc:creator>
		<pubDate>Tue, 30 Apr 2019 10:55:22 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-347</guid>

					<description><![CDATA[Hi, are you moving the VM to an AV Set, or deleting the original and re-creating it in the Av Set?]]></description>
			<content:encoded><![CDATA[<p>Hi, are you moving the VM to an AV Set, or deleting the original and re-creating it in the Av Set?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pixel Robots.		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-346</link>

		<dc:creator><![CDATA[Pixel Robots.]]></dc:creator>
		<pubDate>Wed, 24 Apr 2019 08:11:42 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-346</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-344&quot;&gt;Jeremiah Allen&lt;/a&gt;.

I have only ever used it with managed disks so yes.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-344">Jeremiah Allen</a>.</p>
<p>I have only ever used it with managed disks so yes.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jeremiah Allen		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-344</link>

		<dc:creator><![CDATA[Jeremiah Allen]]></dc:creator>
		<pubDate>Wed, 24 Apr 2019 00:09:53 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-344</guid>

					<description><![CDATA[Is this process works for Managed disks?]]></description>
			<content:encoded><![CDATA[<p>Is this process works for Managed disks?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: netlabindia		</title>
		<link>https://pixelrobots.co.uk/2018/02/add-existing-virtual-machine-availability-set-azure/#comment-298</link>

		<dc:creator><![CDATA[netlabindia]]></dc:creator>
		<pubDate>Tue, 19 Feb 2019 13:34:04 +0000</pubDate>
		<guid isPermaLink="false">https://pixelrobots.co.uk/?p=15487#comment-298</guid>

					<description><![CDATA[I get the error below while adding existing VM to AV set

PS C:\windows\system32&#062; Add-AzureRmAvSetVmToAvailabilitySet -ResourceGroupName &quot;CIN-INTDEV-UTX-WL-RG1&quot; -VMName &quot;CENTOS7&quot; -OsType Linux -AvailabilitySet &quot;testAV&quot;
VERBOSE: Original resource group ARM template file name: C:\Program Files (x86)\WindowsPowerShell\Modules\AzureRm.AvailabilitySetManag
ement\1.0.0.1\OriginalTemplate-2019-02-19_070014.json
VERBOSE: New resource group ARM template file name: C:\Program Files (x86)\WindowsPowerShell\Modules\AzureRm.AvailabilitySetManagement
\1.0.0.1\NewTemplate-2019-02-19_070014.json
VERBOSE: Getting the existing AvailabilitySet
VERBOSE: Exporting resource group
WARNING: ExportTemplateCompletedWithErrors : Export template operation completed with errors. Some resources were not exported. Please
 see details for more information.
WARNING: ExportTemplateProviderError : Could not get resources of the type &#039;Microsoft.OperationalInsights/workspaces/dataSources&#039;. Res
ources of this type will not be exported.
WARNING: ExportTemplateProviderError : Could not get resources of the type &#039;Microsoft.Storage/storageAccounts/managementPolicies&#039;. Res
ources of this type will not be exported.
WARNING: ExportTemplateProviderError : Could not get resources of the type &#039;Microsoft.Storage/storageAccounts/blobServices&#039;. Resources
 of this type will not be exported.
WARNING: ExportVirtualMachineExtensionNotSupported : Virtual machine extension &#039;Microsoft:2EEnterpriseCloud:2EMonitoring-OmsAgentForLi
nux&#039; is not supported for template export.
WARNING: ExportVirtualMachineExtensionNotSupported : Virtual machine extension &#039;Microsoft:2EAzure:2EDiagnostics-LinuxDiagnostic&#039; is no
t supported for template export.

VERBOSE: Generating the new JSON Template to be executed to import the VMs back.
Add-AzureRmAvSetVmToAvailabilitySet : An error ocurred: Resouces section of template is empty after transformations, aborting 
operation.
At line:1 char:1
+ Add-AzureRmAvSetVmToAvailabilitySet -ResourceGroupName &quot;CIN-INTDEV-UT ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Add-AzureRmAvSetVmToAvailabilitySet]]></description>
			<content:encoded><![CDATA[<p>I get the error below while adding existing VM to AV set</p>
<p>PS C:\windows\system32&gt; Add-AzureRmAvSetVmToAvailabilitySet -ResourceGroupName &#8220;CIN-INTDEV-UTX-WL-RG1&#8221; -VMName &#8220;CENTOS7&#8221; -OsType Linux -AvailabilitySet &#8220;testAV&#8221;<br />
VERBOSE: Original resource group ARM template file name: C:\Program Files (x86)\WindowsPowerShell\Modules\AzureRm.AvailabilitySetManag<br />
ement\1.0.0.1\OriginalTemplate-2019-02-19_070014.json<br />
VERBOSE: New resource group ARM template file name: C:\Program Files (x86)\WindowsPowerShell\Modules\AzureRm.AvailabilitySetManagement<br />
\1.0.0.1\NewTemplate-2019-02-19_070014.json<br />
VERBOSE: Getting the existing AvailabilitySet<br />
VERBOSE: Exporting resource group<br />
WARNING: ExportTemplateCompletedWithErrors : Export template operation completed with errors. Some resources were not exported. Please<br />
 see details for more information.<br />
WARNING: ExportTemplateProviderError : Could not get resources of the type &#8216;Microsoft.OperationalInsights/workspaces/dataSources&#8217;. Res<br />
ources of this type will not be exported.<br />
WARNING: ExportTemplateProviderError : Could not get resources of the type &#8216;Microsoft.Storage/storageAccounts/managementPolicies&#8217;. Res<br />
ources of this type will not be exported.<br />
WARNING: ExportTemplateProviderError : Could not get resources of the type &#8216;Microsoft.Storage/storageAccounts/blobServices&#8217;. Resources<br />
 of this type will not be exported.<br />
WARNING: ExportVirtualMachineExtensionNotSupported : Virtual machine extension &#8216;Microsoft:2EEnterpriseCloud:2EMonitoring-OmsAgentForLi<br />
nux&#8217; is not supported for template export.<br />
WARNING: ExportVirtualMachineExtensionNotSupported : Virtual machine extension &#8216;Microsoft:2EAzure:2EDiagnostics-LinuxDiagnostic&#8217; is no<br />
t supported for template export.</p>
<p>VERBOSE: Generating the new JSON Template to be executed to import the VMs back.<br />
Add-AzureRmAvSetVmToAvailabilitySet : An error ocurred: Resouces section of template is empty after transformations, aborting<br />
operation.<br />
At line:1 char:1<br />
+ Add-AzureRmAvSetVmToAvailabilitySet -ResourceGroupName &#8220;CIN-INTDEV-UT &#8230;<br />
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException<br />
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Add-AzureRmAvSetVmToAvailabilitySet</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
