<?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>Windows Azure</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/lalitesh_kumar/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/lalitesh_kumar/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:43:01 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Static IP, Reserved IP and Instance Level IP in Azure</title>
      <link>https://docs.microsoft.com/archive/blogs/lalitesh_kumar/static-ip-reserved-ip-and-instance-level-ip-in-azure</link>
      <pubDate>Mon, 06 Oct 2014 06:42:00 GMT</pubDate>
      <dc:creator><![CDATA[LaliteshKumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lalitesh_kumar/2014/10/06/static-ip-reserved-ip-and-instance-level-ip-in-azure/</guid>
      <description><![CDATA[Static IP, Reserved IP and Instance Level IP in Azure   Loosing public IP for the cloud service and...]]></description>
      <content:encoded><![CDATA[<p>Static IP, Reserved IP and Instance Level IP in Azure </p>  <p>Loosing public IP for the cloud service and then adjusting the DNS entries in the external server is a pain? Microsoft has recently introduced a few IP related features which makes life easier.</p>  <p>It is very important to understand which one fits the bill.</p>  <p>In this blog we are going to cover the Static IP, reservedIP and instance level IP in Azure, their usage scenarios and different PS cmdlets to create manage and release them.</p>  <p>Static IP <a href="https://msdn.microsoft.com/en-us/library/azure/dn630228.aspx">https://msdn.microsoft.com/en-us/library/azure/dn630228.aspx</a></p>  <p>Reserved IP <a href="https://msdn.microsoft.com/en-us/library/azure/dn690120.aspx">https://msdn.microsoft.com/en-us/library/azure/dn690120.aspx</a></p>  <p>Instance level IP <a href="https://msdn.microsoft.com/en-us/library/azure/dn690118.aspx">https://msdn.microsoft.com/en-us/library/azure/dn690118.aspx</a></p>  <p><strong><font size="4">Static Internal IP Address</font></strong></p>  <p>Static internal IP = A private IP address assigned to a VM from a pool of IP addresses available in the Virtual Network within the Subnet(s) that are carved out.</p>  <p>Scenario of the using static internal IP are </p>  <ol>   <li>DNS server </li>    <li>Domain controller </li> </ol>  <p>A static DIP stays with the VM even through a stop/deprovision state. You can specify a static DIP by using PowerShell at the time you create the VM, or you can update an existing VM.</p>  <p>You can assign the internal IP address using preview portal or PowerShell</p>  <p>Let's create a Virtual Network named testVNet</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/5661.clip_image001_6F7321CA.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/5661.clip_5F00_image001_5F00_6F7321CA.jpg"><img title="clip_image001" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image001" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/2084.clip_image001_thumb_0D04FCCA.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/2084.clip_5F00_image001_5F00_thumb_5F00_0D04FCCA.jpg" width="365" height="138" /></a></p>  <p>From the above address space, we see there are three usable Private IPs viz. 10.0.0.4 | 10.0.0.5 | 10.0.0.6.</p>  <p>So we have address space for 8 machine.</p>  <p>Now I want my machine to have a static IP with the address 10.0.0.5 and we see that it is available</p>  <p>Now let us assign 10.0.0.5 to the VM &quot;testVNet&quot; via PowerShell. Let us check the availability of the IP by using the following PowerShell command.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/8304.clip_image002_5D66DE3D.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/8304.clip_5F00_image002_5F00_5D66DE3D.jpg"><img title="clip_image002" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/4540.clip_image002_thumb_3B9B05AC.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/4540.clip_5F00_image002_5F00_thumb_5F00_3B9B05AC.jpg" width="371" height="81" /></a></p>  <p>The result of the above command says the IP is available.</p>  <p>Set the storage account to be in the same region where you are creating your VM </p>  <p>PS C:\&gt; Set-AzureSubscription -SubscriptionName &quot;dsdazure-lkumar&quot; -CurrentStorageAccountName &quot;paol&quot;</p>  <p>Assigning a Static IP while provisioning a new VM</p>  <p>Here make sure that the VM </p>  <p>New-AzureVMConfig -Name lkumartestVM -ImageName $img –InstanceSize Small | Add-AzureProvisioningConfig -Windows -AdminUsername $usr -Password $pwd&#160; |Set-AzureSubnet&#160; –SubnetNames $sub&#160; | Set-AzureStaticVNetIP -IPAddress 10.0.0.5 | New-AzureVM –ServiceName $vmsvc1 -VNetName testVNet -Location &quot;east asia&quot;</p>  <p>OperationDescription&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationId&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationStatus&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>--------------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -----------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ---------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>New-AzureVM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 8fe32d65-802f-0a67-9749-fee23742b3fb&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Succeeded&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>New-AzureVM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; b06a7aba-2966-04af-8d49-6b11a254e7f0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Succeeded&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>The above PowerShell command succeeded in creating a new VM &quot;testVNet&quot; in the cloud service&#160; and assigned the IP 10.0.0.5 to the VM&#160; </p>  <p>Let us now confirm the same from the Azure Portal:</p>  <p>The screenshot below confirms that the VM is assigned 10.0.0.5 as intended.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/6136.clip_image003_33373055.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/6136.clip_5F00_image003_5F00_33373055.jpg"><img title="clip_image003" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image003" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/1780.clip_image003_thumb_66FF26A6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/1780.clip_5F00_image003_5F00_thumb_5F00_66FF26A6.jpg" width="203" height="97" /></a></p>  <p>Let us now restart the VM and see if the IP 10.0.0.5 is still bound to the same VM.</p>  <p>And here is the screenshot again which confirms that the IP 10.0.0.5 is still bound to the same VM.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/3364.clip_image0031_0C88A408.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/3364.clip_5F00_image0031_5F00_0C88A408.jpg"><img title="clip_image003[1]" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image003[1]" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/1641.clip_image0031_thumb_2B5F17E6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/1641.clip_5F00_image0031_5F00_thumb_5F00_2B5F17E6.jpg" width="211" height="109" /></a></p>  <p>Let us now stop the VM and see what happens when we try to assign the same IP to another VM</p>  <p>PS C:\&gt; New-AzureVMConfig -Name lkumartestVM1 -ImageName $img –InstanceSize Small&#160; | Add-AzureProvisioningConfig -Windows -AdminUsername $usr -Password $pwd&#160; |Set-AzureSubnet&#160; –SubnetNames $sub&#160; | Set-AzureStaticVNetIP -IPAddress 10.0.0.5 | New-AzureVM –ServiceName $vmsvc1 -VNetName testVNet -Location &quot;east asia&quot;</p>  <p>OperationDescription&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationId&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationStatus&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>--------------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -----------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ---------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>New-AzureVM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 48ffa950-82c0-0cd6-8613-105f40b9b48d&#160;&#160;&#160;&#160;&#160;&#160; Succeeded&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>New-AzureVM : Networking.DeploymentVNetAddressAllocationFailure : Unable to allocate the required address spaces for the deployment in a new or predefined subnet that is contained within the specified virtual </p>  <p>network.</p>  <p>At line:1 char:234</p>  <p>+ ... ess 10.0.0.5 | New-AzureVM –ServiceName $vmsvc1 -VNetName testVNet -Location &quot;ea ...</p>  <p>+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>  <p>&#160;&#160;&#160; + CategoryInfo&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : CloseError: (:) [New-AzureVM], CloudException</p>  <p>&#160;&#160;&#160; + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.PersistentVMs.NewAzureVMCommand</p>  <p>So even after Stopping the VM, the IP sticks to it and is not released to the IP pool.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/6886.clip_image004_6E5AE653.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/6886.clip_5F00_image004_5F00_6E5AE653.jpg"><img title="clip_image004" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/7823.clip_image004_thumb_28D5E628.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/7823.clip_5F00_image004_5F00_thumb_5F00_28D5E628.jpg" width="244" height="207" /></a></p>  <p>Let me start the VM and see if it gets the same </p>  <p>And I confirmed that this is the same IP 10.0.0.5</p>  <p>If we delete the VM then we can reuse the internal IP</p>  <p>So the learning is that internal IP will stay with the VM till it is deleted . It will not change even if we keep it on stopped(deallocated)</p>  <p>If you feel this is difficult in PowerShell, we are coming up with doing it in UI in new preview portal</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/6204.clip_image005_5269B15B.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/6204.clip_5F00_image005_5F00_5269B15B.jpg"><img title="clip_image005" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image005" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/8625.clip_image005_thumb_36E4AF58.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/8625.clip_5F00_image005_5F00_thumb_5F00_36E4AF58.jpg" width="668" height="292" /></a></p>  <p><strong><font size="4">ReservedIP</font></strong></p>  <p>This has been a big request from the cx who does not want their IP address change when they accidently deallocated the last VM .that means they need not to change their IP in the&#160; DSN records that they are managing on 3rd party servers/sites</p>  <p>Few facts about reserved IP</p>  <p>1.Reserved IP is one of the public IP associated with the subscription .this can exist even when it is not attached with the cloud service . So you can delete the cloud service and use the same IP with the new cloud service if you wish and the IP will remain the same </p>  <ol>   <li>You can get upto 5 reservedip with your subscription . More details can be found <a href="https://msdn.microsoft.com/en-us/library/azure/dn690120.aspx">here</a>. </li>    <li>Right now you can only create reserved IP with the PowerShell but we are working to incorporate this feature in portal. </li> </ol>  <p>Lets test it out</p>  <p>I want to create a Virtual Machine in East Asia and I want to use a reservedIP address</p>  <p>Let me see if I already have any reservedIP</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/0753.clip_image006_4299F68A.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/0753.clip_5F00_image006_5F00_4299F68A.jpg"><img title="clip_image006" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/2337.clip_image006_thumb_20CE1DF9.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/2337.clip_5F00_image006_5F00_thumb_5F00_20CE1DF9.jpg" width="617" height="68" /></a></p>  <p>Let me see create another IP address in East Asia which I will use in this blog</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/4375.clip_image007_316618E7.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/4375.clip_5F00_image007_5F00_316618E7.jpg"><img title="clip_image007" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image007" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/8831.clip_image007_thumb_3D87930E.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/8831.clip_5F00_image007_5F00_thumb_5F00_3D87930E.jpg" width="620" height="53" /></a></p>  <p>Let me see if it is listed now </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/2526.clip_image008_20323B44.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/2526.clip_5F00_image008_5F00_20323B44.jpg"><img title="clip_image008" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image008" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/0486.clip_image008_thumb_2C53B56B.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/0486.clip_5F00_image008_5F00_thumb_5F00_2C53B56B.jpg" width="623" height="43" /></a></p>  <p>So at this point , I can tell my clients that I will be using the IP 23.101.2.156.</p>  <p>As I don't want to keep the other IP myip4 (23.101.0.140) , I am going to release so anybody else can use it </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/2425.clip_image009_23EFE014.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/2425.clip_5F00_image009_5F00_23EFE014.jpg"><img title="clip_image009" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image009" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/4118.clip_image009_thumb_490D2A80.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/4118.clip_5F00_image009_5F00_thumb_5F00_490D2A80.jpg" width="632" height="67" /></a></p>  <p>Before removing the reservedIP ,we will get a confirmation dialog box asking if we really want to release it </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/4035.clip_image010_6E96A7E1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/4035.clip_5F00_image010_5F00_6E96A7E1.jpg"><img title="clip_image010" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image010" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/1754.clip_image010_thumb_4617C5CD.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/1754.clip_5F00_image010_5F00_thumb_5F00_4617C5CD.jpg" width="244" height="74" /></a></p>  <p>And now we can confirm , we no more have the ip that we released.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/2604.clip_image011_4BF26966.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/2604.clip_5F00_image011_5F00_4BF26966.jpg"><img title="clip_image011" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image011" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/6355.clip_image011_thumb_2A2690D5.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/6355.clip_5F00_image011_5F00_thumb_5F00_2A2690D5.jpg" width="640" height="90" /></a></p>  <p>Now let's try to create the virtual machine and use the newly created reservedIP address</p>  <p>PS C:\&gt; $image=&quot;3a50f22b388a4ff7ab41029918570fa6__Windows-Server-2012-Essentials-20131018-enus&quot;</p>  <p>PS C:\&gt; New-AzureVMConfig -Name &quot;myBlogVM&quot; -InstanceSize Small -ImageName $image | Add-AzureProvisioningConfig -Windows -AdminUsername cloudguy -Password Abc123@@@ | New-AzureVM -ServiceName &quot;myBlogService&quot; –ReservedIPName resTest -Location &quot;East Asia&quot;</p>  <p>OperationDescription&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationId&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationStatus&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>--------------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -----------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ---------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>New-AzureVM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 745f5509-6b1e-18a0-9901-a7050a69baf1&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Succeeded&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>New-AzureVM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 182a3421-e9d6-19f7-bac2-985b9803a2e4&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Succeeded&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>Let us see from the portal if we got the desired reservedIP address</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/4667.clip_image012_21568889.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/4667.clip_5F00_image012_5F00_21568889.jpg"><img title="clip_image012" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image012" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/4276.clip_image012_thumb_46E005EA.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/4276.clip_5F00_image012_5F00_thumb_5F00_46E005EA.jpg" width="244" height="145" /></a></p>  <p>So above confirms that we got the desired VIP reserved</p>  <p>Now this VIP is assigned to the cloud service myBlogService</p>  <p>This can be confirmed in the powershell again </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/7762.clip_image013_3E7C3093.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/7762.clip_5F00_image013_5F00_3E7C3093.jpg"><img title="clip_image013" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image013" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/3404.clip_image013_thumb_4A9DAABA.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/3404.clip_5F00_image013_5F00_thumb_5F00_4A9DAABA.jpg" width="640" height="44" /></a></p>  <p>Please note this IP is bound to the subscription , so even if you delete the cloud service , the Reserved IP will still be there with the subscription and can be used. It will only go back to the pool of azure public IP address when it is removed from the subscription using Remove-AzureReservedIP .</p>  <p>Before moving on to other section of the blog , let us discussion about affinity group.</p>  <p>ReservedIP cannot be assigned to the cloud service which are using affinity group bound VNETs(Old VNETs). For the regional VNET, you can specify the affinity group and VNET at the time of the VM creation. The difference is the Regional VNETS are not bound to the affinity group and there we can use&#160; ReservedIP address for the cloud service .</p>  <p>Let us test the above observation </p>  <p>I created affinity group blogAffinity and regional VNET blogVNET in east asia</p>  <p>PS C:\&gt; $image=&quot;3a50f22b388a4ff7ab41029918570fa6__Windows-Server-2012-Essentials-20131018-enus&quot;</p>  <p>PS C:\&gt; New-AzureVMConfig -Name &quot;myBlogVM&quot; -InstanceSize Small -ImageName $image | Add-AzureProvisioningConfig -Windows -AdminUsername cloudguy -Password Abc123@@@ | New-AzureVM -ServiceName &quot;myBlogService&quot; –ReservedIPName resTest -AffinityGroup &quot;blogAffinity&quot; -VNetName &quot;blogVNET&quot;</p>  <p>OperationDescription&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationId&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationStatus&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>--------------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -----------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ---------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>New-AzureVM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; e911c256-217a-1e77-b89e-55bfdad763f4&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Succeeded&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>New-AzureVM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 410b5f2b-2697-1f12-883d-a067b61344f5&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Succeeded&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/2772.clip_image014_221EC8A6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/2772.clip_5F00_image014_5F00_221EC8A6.jpg"><img title="clip_image014" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image014" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/3487.clip_image014_thumb_32B6C394.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/3487.clip_5F00_image014_5F00_thumb_5F00_32B6C394.jpg" width="567" height="25" /></a></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/5305.clip_image015_4D82E9A0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/5305.clip_5F00_image015_5F00_4D82E9A0.jpg"><img title="clip_image015" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image015" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/7558.clip_image015_thumb_0C083747.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/7558.clip_5F00_image015_5F00_thumb_5F00_0C083747.jpg" width="510" height="47" /></a></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/2211.clip_image016_63F58827.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/2211.clip_5F00_image016_5F00_63F58827.jpg"><img title="clip_image016" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image016" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/6864.clip_image016_thumb_02CBFC06.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/6864.clip_5F00_image016_5F00_thumb_5F00_02CBFC06.jpg" width="225" height="51" /></a></p>  <p>So we can see this VM is correctly placed with the affinity group ,VNET and reserved IP address</p>  <p>You can find more details on reservedIP on the blog from product group </p>  <p><a href="https://azure.microsoft.com/blog/2014/05/14/reserved-ip-addresses/">https://azure.microsoft.com/blog/2014/05/14/reserved-ip-addresses/</a></p>  <p><a href="https://msdn.microsoft.com/en-us/library/azure/dn690120.aspx">https://msdn.microsoft.com/en-us/library/azure/dn690120.aspx</a></p>  <p>Now let's move to the last section of this blog, instance level IP </p>  <p><strong><font size="4">Instance level IP (PIP)</font></strong></p>  <p>You can assign public IP addresses to your virtual machines so they become directly addressable, and eliminate the need to map an endpoint for direct access. Once you’re done, you’ll be able to do things like run FTP servers in Azure and monitor virtual machines directly using their IPs. The virtual machine will also use this public IP as its outgoing IP for all connections that is sourced from this VM. During preview you get two free public IP addresses per subscription.</p>  <p>An instance level public IP (PIP) is an IP address that you can assign directly to your VM, rather than to the cloud service that your VM resides within. This doesn’t take the place of the VIP that is assigned to your cloud service. Rather, it’s additional IP address that you can use to connect to your VM. You can assign one PIP for each VM. </p>  <p>As per MSDN,</p>  <p>If you want to be able to connect to your VM or role instance by an IP address assigned directly to it, rather than using the cloud service VIP:&lt;portnumber&gt;, request a PIP for your VM or your role instance.</p>  <ul>   <li>Passive FTP - By having a PIP on your VM, you can receive traffic on just about any port, you will not have to open up an endpoint to receive traffic. This enables scenarios like passive FTP where the ports are chose dynamically. </li>    <li>Outbound IP - Outbound traffic originating from the VM goes out with PIP as the source and this uniquely identifies the VM to external entities. </li> </ul>  <p>Let's create another VM in the same cloud service where I want to specify a PIP</p>  <p>PS C:\&gt; New-AzureVMConfig -Name &quot;myBlogVM01&quot; -InstanceSize Small -ImageName $image | Add-AzureProvisioningConfig -Windows -AdminUsername cloudguy -Password Abc123@@@ |Set-AzurePublicIP -PublicIPName &quot;ftpip&quot; |New-AzureVM -ServiceName myBlogService&#160; </p>  <p>OperationDescription&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationId&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OperationStatus&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>--------------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -----------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ---------------&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>New-AzureVM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 762adde3-5ce8-19d0-8eec-80fc37aaff81&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Succeeded&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>  <p>Below we can see the publiIPAddress assigned to second VM</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/5722.clip_image017_5AB94CE6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/5722.clip_5F00_image017_5F00_5AB94CE6.jpg"><img title="clip_image017" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image017" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/2134.clip_image017_thumb_66DAC70D.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/2134.clip_5F00_image017_5F00_thumb_5F00_66DAC70D.jpg" width="670" height="57" /></a></p>  <p>Please note this IP is different from the reservedIP assigned to the cloud service. Also we cannot reserve the PIP.</p>  <p>Let&#160; me restart the VM and see what happen to the PIP</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/1325.clip_image018_49856F43.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/1325.clip_5F00_image018_5F00_49856F43.jpg"><img title="clip_image018" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image018" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/8637.clip_image018_thumb_55A6E96A.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/8637.clip_5F00_image018_5F00_thumb_5F00_55A6E96A.jpg" width="666" height="47" /></a></p>  <p>So no change after the VM was restarted</p>  <p>Let me stop and start again</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/8662.clip_image019_142C3711.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/8662.clip_5F00_image019_5F00_142C3711.jpg"><img title="clip_image019" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image019" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/8688.clip_image019_thumb_204DB138.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/8688.clip_5F00_image019_5F00_thumb_5F00_204DB138.jpg" width="673" height="73" /></a></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/7870.clip_image020_5ED2FEDE.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/7870.clip_5F00_image020_5F00_5ED2FEDE.jpg"><img title="clip_image020" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="clip_image020" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/19/18/metablogapi/2577.clip_image020_thumb_0F19D395.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-19-18-metablogapi/2577.clip_5F00_image020_5F00_thumb_5F00_0F19D395.jpg" width="674" height="52" /></a></p>  <p>So once the Vm is deallocated , you will lose the PIP</p>  <p>PIP cannot only be assigned to the new VM but this can be assigned to an existing VM and it can also be removed from the exiting VM</p>  <p>Assign PIP to existing VM</p>  <p>Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Set-AzurePublicIP -PublicIPName ftpip | Update-AzureVM</p>  <p>Remove the PIP from a VM</p>  <p>Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Remove-AzurePublicIP | Update-AzureVM</p>  <p>Please refer <a href="https://msdn.microsoft.com/en-us/library/azure/dn690118.aspx">https://msdn.microsoft.com/en-us/library/azure/dn690118.aspx</a> for more details on instance level IP(PIP)</p>  <p>With this we come to end of discussion on static DIP, ReservedIP and PIP. Hopefully this article will add to your existing understanding of these feature&#160; ,usage scenario and limitation.</p>]]></content:encoded>
    </item>
    <item>
      <title>SQLEXPRESS required as a user instance</title>
      <link>https://docs.microsoft.com/archive/blogs/lalitesh_kumar/sqlexpress-required-as-a-user-instance</link>
      <pubDate>Sat, 07 Mar 2009 20:36:00 GMT</pubDate>
      <dc:creator><![CDATA[Lalitesh]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lalitesh_kumar/2009/03/07/sqlexpress-required-as-a-user-instance/</guid>
      <description><![CDATA[The other day i wasworking with one cx where he was willing to add one .mdf file to the Visual...]]></description>
      <content:encoded><![CDATA[<div><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"></p><p></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">The other day i wasworking with one cx where he was willing to add one .mdf file to the Visual StudioProject in an XP machine under app_data folder<o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">and he was littlefrustrated why that is failing on one Vista machine and does not work on thisXP machine and i found that OS difference  was not the real difference.While looking into his issue and looking at the Documents/articles,Which are already availableI thought to compile it and put it on the blogs.</span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> </o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">Specially for the developmentenvironment while developing the database centric application all users doesnot get the necessary permission on the databases because of the businessreasons and that make it nasty . The developers <o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> </o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">expect something whichwould give them freedom to develop the database application and put the DBA notto think too much about the Dev permission issues all the times .<o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> And here comes the Userinstance feature which was intentionally added to the SQLEXPRESS edition ...</o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">To read more about howthe SQL User instance works SQL Server 2005 Express Edition User Instances <a href="https://msdn.microsoft.com/en-us/library/bb264564.aspx#">https://msdn.microsoft.com/en-us/library/bb264564.aspx#</a><o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> The difference we foundwas the he had SQL Developer edition installed rather than the SQLExpressone. </o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">We were actually getting2 type of issues there. The database which the cx wanted to attach with the VSProject was actually attached with the SQL Developer edition at that time andwe were getting the error as below <o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"> <span class="Apple-style-span" style="color: rgb(227, 108, 10); ">"File cannot be opened because it is being used byanother process"<span class="Apple-style-span" style="color: rgb(0, 0, 0); "> <span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">Please note whileworking on my machines sometimes I got favorite </span><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:#E36C0A;mso-themecolor:accent6;mso-themeshade:191">"Access Denied error”</span></span></span></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> After detaching the SQLServer database from the Developer instance we found the real culprit and theerror was </o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> <span class="Apple-style-span" style="color: rgb(227, 108, 10); ">Connections to SQL Server files (*.mdf) requires SQL ServerExpress 2005 to function properly. Please verify the installation of thecomponent or download from the URLhttps://go.microsoft.com/fwlink/LinkId=49251"</span></o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"> while looking intoreproducing this on my windows 2008 machine  found while the VS is lookingfor the SQLEXPRESS it is reaching to the following registry key.</span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black;background:yellow;mso-highlight:yellow">HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MicrosoftSQL Server\Instance Names\</span><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">and then searching for SQLEXPRESS.Remember you cannot fool VS by making one ofthe instances named as SQLEXPRESS as other instance maynot be the User instance.</span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> </o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">After installing the SQLExpressedition there the issue actually got resolved but i have seen some of theissues where the following option in the VS is not properly set even afterinstallation of the SQLExpress edition  and you  would <o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> Like to change it to putSQLEXPRESS there.</o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> TOOLS --> Options-->-->Database Tools-->Data Connections -->SQL Server InstanceName </o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> Here the other questionscomes what would i do to change it to some other instance (for ex SQLEnterprise instance) in my dev?</o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">Well... you would needto change the connection string and to put the user instance =false and alsosetting the correct user permission in the SQL server so that the user is not deprived.And you will have to check which user you are <o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">Actually passing toconnect to the SQL Server instance before that. </span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> </o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">Hopefully aboveinformation will help you..<o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black"><o:p> </o:p></span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal;background:white"><span style="font-size:10.0pt;font-family:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';color:black">~Lalitesh<o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p><p></p><p></p><p></p></div>]]></content:encoded>
    </item>
  </channel>
</rss>