<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Satish Pandita Blogs</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:25:05 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Enabling Azure Disk Encryption for Windows IaaS VMs using PowerShell</title>
      <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/enabling-azure-disk-encryption-for-windows-iaas-vms-using-powershell</link>
      <pubDate>Sun, 15 May 2016 00:33:54 GMT</pubDate>
      <dc:creator><![CDATA[satish pandita]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/?p=135</guid>
      <description><![CDATA[In this post, I will enable disk Encryption for a Windows IaaS VM using PowerShell for an existing...]]></description>
      <content:encoded><![CDATA[In this post, I will enable disk Encryption for a Windows IaaS VM using PowerShell for an existing VM. This is an example with step by step instructions to give you a high level overview. For detailed information on Azure Disk Encryption including prerequisites, supportability and  different options to enable encryption , please refer to the links below:

<a href="https://blogs.msdn.microsoft.com/azuresecurity/2016/01/22/azure-disk-encryption-white-paper-updated/"><span style="color: #0000ff;font-family: Calibri">https://blogs.msdn.microsoft.com/azuresecurity/2016/01/22/azure-disk-encryption-white-paper-updated/</span></a>

<a href="https://azure.microsoft.com/en-us/documentation/articles/key-vault-get-started/"><span style="color: #0000ff;font-family: Calibri">https://azure.microsoft.com/en-us/documentation/articles/key-vault-get-started/</span></a>

<a href="https://azure.microsoft.com/en-us/documentation/videos/azure-key-vault-with-amit-bapat/"><span style="color: #0563c1;font-family: Calibri">https://azure.microsoft.com/en-us/documentation/videos/azure-key-vault-with-amit-bapat/</span></a>

<a href="https://channel9.msdn.com/events/Microsoft-Azure/AzureCon-2015/ACON214"><span style="color: #0563c1;font-family: Calibri">https://channel9.msdn.com/events/Microsoft-Azure/AzureCon-2015/ACON214</span></a>

&nbsp;
<h2> Enabling Disk Encryption for Windows IaaS VMs using PowerShell</h2>
<h4> <strong><span style="text-decoration: underline">Connect to your Subscription </span></strong></h4>
<h5 style="padding-left: 30px"><em>PS C:\WINDOWS\system32&gt; Login-AzureRmAccount</em></h5>
<h3><strong><span style="text-decoration: underline">Create a New Resource Group or use an existing</span></strong></h3>
<h5 style="padding-left: 30px"><em>PS C:\WINDOWS\system32&gt; New-AzureRmResourceGroup -Name “skpkeyvaultgroup” -location “East US”</em></h5>
<p style="padding-left: 90px">ResourceGroupName : skpkeyvaultgroup
Location          : eastus
ProvisioningState : Succeeded
Tags              :
ResourceId        : /subscriptions/3a0d1a4f-1d45-4dbc-bb68-xxxxxxxxxxxxx/resourceGroups/skpkeyvaultgroup</p>

<h4></h4>
<h3><strong><span style="text-decoration: underline">Create a New Key Vault </span></strong></h3>
<h5><em>PS C:\WINDOWS\system32&gt; New-AzureRmKeyVault -VaultName "skpkeyvault"  -ResourceGroupName "skpkeyvaultgroup" -location "East US"</em></h5>
<p style="padding-left: 120px">Vault Name                       : skpkeyvault
Resource Group Name              : skpkeyvaultgroup
Location                         : East US
Resource ID                      : /subscriptions/3a0d1a4f-1d45-4dbc-bb68-891422694ec1/resourceGroups/skpkeyvaultgroup/
providers/Microsoft.KeyVault/vaults/skpkeyvault
Vault URI                        : https://skpkeyvault.vault.azure.net
Tenant ID                        : 9aaa5c65-a5d0-415f-9964-ac32ea83c1b1
SKU                              : Standard
Enabled For Deployment?          : False
Enabled For Template Deployment? : False
Enabled For Disk Encryption?     : False
Access Policies                  :
Tenant ID                :    9aaa5c65-a5d0-415f-9964-xxxxxxxxxxx
Object ID                :    e0a21a69-899e-4f98-bc0d-xxxxxxxxxx
Application ID           :
Display Name             :    satish pandita
(#EXT#@youemailaddresshotmail.onmicrosoft.com)
Permissions to Keys      :    get, create, delete, list, update, import, backup,
restore
Permissions to Secrets   :    all</p>

<h3><strong><span style="text-decoration: underline">Provision a Key Encryption Key to add a key or secret to the key Vault</span></strong></h3>
<h5> <em>PS C:\WINDOWS\system32&gt; $key = Add-AzureKeyVaultKey -VaultName 'skpKeyVault' -Name 'skpFirstKey' -Destination 'Software'</em></h5>
<h5><em>PS C:\WINDOWS\system32&gt; get-azurekeyvaultkey -vaultname "skpkeyvault"</em></h5>
<p style="padding-left: 150px">Vault Name : skpkeyvault
Name       : skpFirstKey
Version    :
Id         : https://skpkeyvault.vault.azure.net:443/keys/skpFirstKey
Enabled    : True
Expires    :
Not Before :
Created    : 5/14/2016 3:04:29 AM
Updated    : 5/14/2016 3:04:29 AM</p>
<span lang="EN-AU"><span style="color: #000000;font-family: Calibri">To see a specific URI Version </span></span>
<h4><em>PS C:\WINDOWS\system32&gt; $key.key.kid</em></h4>
<p style="padding-left: 120px">https://skpkeyvault.vault.azure.net/keys/skpFirstKey/1fc92a75728c4d389997f</p>

<h3></h3>
<h3><strong><span style="text-decoration: underline">Next Register and authorize an application with Azure Active Directory </span></strong></h3>
&nbsp;

<span lang="EN-AU"><span style="color: #000000;font-family: Calibri">Go to Active Directory Tab and add an application (see screen captures below)</span></span>

<a href="https://msdnshared.blob.core.windows.net/media/2016/05/pic1.jpg"><img class="alignleft size-medium wp-image-145" src="https://msdnshared.blob.core.windows.net/media/2016/05/pic1-300x233.jpg" alt="pic1" width="300" height="233" /></a>

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

.<a href="https://msdnshared.blob.core.windows.net/media/2016/05/pic1.jpg"><img class="alignleft size-medium wp-image-145" src="https://msdnshared.blob.core.windows.net/media/2016/05/pic1-300x233.jpg" alt="pic1" width="300" height="233" /></a>

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

Next click on "Add an Application"

<a href="https://msdnshared.blob.core.windows.net/media/2016/05/pic3.jpg"><img class="alignleft size-medium wp-image-165" src="https://msdnshared.blob.core.windows.net/media/2016/05/pic3-300x193.jpg" alt="pic3" width="300" height="193" /></a>

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

<a href="https://msdnshared.blob.core.windows.net/media/2016/05/pic4.jpg"><img class="alignleft size-medium wp-image-175" src="https://msdnshared.blob.core.windows.net/media/2016/05/pic4-300x156.jpg" alt="pic4" width="300" height="156" /></a>

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

Next <span style="color: #000000;font-family: Calibri">Generate the new key and save the key to be generated and click on save button and copy the Client ID and Secret Key, these will be required for enabling encryption</span>

<a href="https://msdnshared.blob.core.windows.net/media/2016/05/pic5.jpg"><img class="alignleft wp-image-177 size-full" src="https://msdnshared.blob.core.windows.net/media/2016/05/pic5.jpg" alt="pic5" width="472" height="526" />
</a>

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

<strong>Set Key Vault Access Policy to provide AAD Application the required rights to access keys or secrets in the vault and Enable the Disk Encryption </strong>

(in this example my VM "skpvm1" is in "skpvmresourcegroup" and key vault is in "skpkeyvaultgroup")
<h6 style="padding-left: 60px"><em>$rgName = ‘skpkeyvaultgroup'</em></h6>
<h6 style="padding-left: 60px"><em> $vmName = ‘skpvm1'</em></h6>
<h6 style="padding-left: 60px"><em> $aadClientID = "74ece368-e67c-4aad-8b35-38xxxxxxxxx"</em></h6>
<h6 style="padding-left: 60px"><em>$aadClientSecret = " r1u53gTueP+5On9hRhcHOfMhBNkYH8riecKxxxxxxxx"</em></h6>
<h6 style="padding-left: 60px"><em>$KeyVaultName = ‘skpKeyVault'</em></h6>
<h6 style="padding-left: 60px"><em>$KeyVault = Get-AzureRmKeyVault -VaultName $KeyVaultName -ResourceGroupName $rgname;</em></h6>
<h6 style="padding-left: 60px"><em>$diskEncryptionKeyVaultUrl = $KeyVault.VaultUri</em></h6>
<h6 style="padding-left: 60px"><em>$KeyVaultResourceId = $KeyVault.ResourceId</em></h6>
<h6 style="padding-left: 60px"><em> Set-AzureRmKeyVaultAccessPolicy -VaultName $KeyVaultName -ServicePrincipalName $aadClientID -PermissionsToKeys all -PermissionsToSecrets all -ResourceGroupName $rgname;</em></h6>
<h6 style="padding-left: 60px"><em> Set-AzureRmKeyVaultAccessPolicy -VaultName $KeyVaultName -ResourceGroupName $rgname -EnabledForDiskEncryption</em></h6>
<h6 style="padding-left: 60px"><em> Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName skpvmresourcegroup -VMName $vmName -AadClientID $aadClientID -AadClientSecret $aadClientSecret -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $KeyVaultResourceId;</em></h6>
The enabling of  encryption will reboot the machine and  can can take take 10-15 minutes to finish.
<h3><span style="text-decoration: underline"><span style="color: #000000;font-family: Calibri;text-decoration: underline">Verify the Encryption status</span></span></h3>
&nbsp;
<h5><em>C:\WINDOWS\system32&gt; Get-AzureRmVMDiskEncryptionStatus -ResourceGroupName  skpvmresourcegroup -VMName skpvm1</em></h5>
<p style="padding-left: 150px">OsVolumeEncrypted          : <span style="color: #339966">True</span>
OsVolumeEncryptionSettings : {
"diskEncryptionKey": {
"secretUrl": "https://skpkeyvault.vault.azure.net/secrets/1528B96D-AA71-4313-AB26-xxxxxxxxxxx
D4/77b94cbbb0ed4d73b9109ef0bxxxxx6",
"sourceVault": {
"id": "/subscriptions/3a0d1a4f-1d45-4dbc-bb68-8914xxxxx/resourceGroups/skpkeyvaultgroup
/providers/Microsoft.KeyVault/vaults/skpkeyvault"
}
},
"keyEncryptionKey": null,
"enabled": true
}
DataVolumesEncrypted       :<strong><span style="color: #339966"> True</span></strong></p>

<h3><strong><span style="text-decoration: underline">To  disable volume encryption</span> </strong></h3>
<h5><em>PS C:\WINDOWS\system32&gt; Disable-AzureRmVMDiskEncryption -ResourceGroupName skpvmresourcegroup -VMName skpvm1 -VolumeType All</em></h5>
<h5> <em>PS C:\WINDOWS\system32&gt; Get-AzureRmVMDiskEncryptionStatus -ResourceGroupName skpvmresourcegroup -VMName skpvm1</em></h5>
<p style="padding-left: 240px">OsVolumeEncrypted          : <strong><span style="color: #339966">False</span></strong>
OsVolumeEncryptionSettings : {
"diskEncryptionKey": null,
"keyEncryptionKey": null,</p>
<p style="padding-left: 240px">"enabled": false
}
DataVolumesEncrypted       : <strong><span style="color: #339966">False</span></strong></p>
 Few things to note:
<ol>
	<li>If the OS volume is not encrypted,  then the  data volumes cannot be encrypted</li>
	<li>If you add another data volume later, You can explicitly run the PS cmdlets Set-AzureRmVMDiskEncryptionExtension with -Volumetype Data  or ARM template to turn on encryption on the newly added data volume  or if you  reboot the VM.  the bitlocker extension will encrypt any un-encrypted data volumes presuming the VM was previously configured to encrypt data volumes/all volumes.</li>
	<li>For bitlocker enabled VMs' you will notice another  Volume "Bek Volume", it is  local volume in which the BitLocker keys [secret] are stored locally so that the encrypted OS volume can boot on start/reboot etc. This volume is local to the VM and is not persisted in storage</li>
</ol>
<h3></h3>
Special thanks to Anand Kumar-Microsoft Azure PFE for reviewing and assisting with this post. <a href="https://social.msdn.microsoft.com/Profile/ranand12">https://social.msdn.microsoft.com/Profile/ranand12</a>

DISCLAIMER: This posting is provided “AS IS” with no warranties and confers no rights

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;]]></content:encoded>
    </item>
    <item>
      <title>Backup and Restore of Azure IaaS VMS</title>
      <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/backup-and-restore-of-azure-iaas-vms</link>
      <pubDate>Sat, 11 Apr 2015 16:04:00 GMT</pubDate>
      <dc:creator><![CDATA[satish pandita]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/2015/04/11/backup-and-restore-of-azure-iaas-vms/</guid>
      <description><![CDATA[In this exercise I&nbsp;will cover Backup and Restore of Azure VMs that was recently...]]></description>
      <content:encoded><![CDATA[<p>In this exercise I&nbsp;will cover Backup and Restore of Azure VMs that was recently announced.&nbsp; Very simple process.</p>
<p>Before I proceed with this exercise, Consider to review following blogs for overall information on Azure Backups.</p>
<p>Azure Backup Overview: <a href="https://msdn.microsoft.com/en-us/library/azure/hh831419.aspx">https://msdn.microsoft.com/en-us/library/azure/hh831419.aspx</a></p>
<p>Azure Backups with DPM, where Azure Backup Service communicates with DPM server to push backups into Cloud and thus backup all DPM workload to azure as a long term retention. Use Cloud as your tape replacement&nbsp; and offsite backups..</p>
<p><a href="http://azure.microsoft.com/en-us/documentation/articles/backup-azure-backup-cloud-as-tape/#what-is-the-backup-schedule">http://azure.microsoft.com/en-us/documentation/articles/backup-azure-backup-cloud-as-tape/#what-is-the-backup-schedule</a></p>
<p><a href="http://blogs.technet.com/b/systemcenter/archive/2014/03/16/using-azure-backup-with-dpm.aspx">http://blogs.technet.com/b/systemcenter/archive/2014/03/16/using-azure-backup-with-dpm.aspx</a></p>
<p>Azure VM Backups:<a href="http://azure.microsoft.com/blog/2015/03/26/azure-backup-announcing-support-for-backup-of-azure-iaas-vms">http://azure.microsoft.com/blog/2015/03/26/azure-backup-announcing-support-for-backup-of-azure-iaas-vms</a></p>
<p>Power of backing up to Azure: <a href="http://azure.microsoft.com/en-us/services/backup/">http://azure.microsoft.com/en-us/services/backup/</a></p>
<p>Backup Pricing:<a href="http://azure.microsoft.com/en-in/pricing/details/backup/">http://azure.microsoft.com/en-in/pricing/details/backup/</a></p>
<p>&nbsp;To backup Azure VMs&nbsp;&nbsp;</p>
<ol>
<li>Discover the Azure VM&rsquo;s that you want to backup</li>
<li>Register the VMs to install backup extension for backup preparation</li>
<li>Protect the VM&rsquo;s by setting backup and retention policy</li>
</ol>
<p>Few things to note during backup and restore:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.You can backup a VM regardless it is&nbsp;online or offline</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;If you have deleted original VM, you can restore the VM with same or different instance Name&nbsp;on existing or different cloud service</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3.&nbsp;If original VM is online or offline, you cannot restore the VM with same instance name, You have to restore VM with a different instance Name</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4. All disk associated with the VM's will&nbsp; automatically be restored with data&nbsp;during restore time</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5.No need to deploy any agent on Azure VM's, it is automatically handled by azure-backup service</p>
<p>&nbsp;</p>
<p>&nbsp;In the following example I want to backup a VM called &lsquo;test&rdquo;, that has and OS and Data disk</p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3568.pic1.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3568.pic1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3568.pic1.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3568.pic1.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Create a Backup Vault in the same region as your Azure VMs</p>
<p>&nbsp;Form the portal go to &ldquo;Recovery Services&rdquo;-&gt;&rdquo;New&rdquo;-&gt; &ldquo;Backup Vault&rdquo;-&gt;&rdquo;Quick Create&rdquo;. In this example the name for Backup Vault is &ldquo;AzureBackupVault1&rdquo; and click on &ldquo;Create Vault&rdquo;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3580.pic2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3580.pic2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3580.pic2.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3580.pic2.jpg" alt="" border="0" /></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/51/67/1234.pic3.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1234.pic3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1234.pic3.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1234.pic3.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Next Click on the &ldquo;AzureBackupVault1 -&gt;&rdquo; that was just created</p>
<p>To Protect Azure Virtual Machines, following 3 steps as shown in following screen capture will be performed.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6560.pic4.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6560.pic4.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6560.pic4.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6560.pic4.jpg" alt="" width="550" height="435" border="0" /></a></p>
<p>&nbsp;</p>
<p>Click on &ldquo;Discover Virtual Machines&rdquo; &nbsp;and &nbsp;on &ldquo;Discover&rdquo; as shown in following picture</p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3073.pic5.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3073.pic5.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3073.pic5.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3073.pic5.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Once is discover is completed Click on &ldquo;Register&rdquo;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6574.PIC6.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6574.PIC6.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6574.PIC6.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6574.PIC6.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>To verify registration is successful. Click on &ldquo;Jobs&rdquo;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1524.PIC7.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1524.PIC7.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1524.PIC7.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1524.PIC7.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Next go to &ldquo;Policies&rdquo; and define the backup policy and add the registered VM &ldquo;Test&rdquo; in the backup policy</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3718.PIC8.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3718.PIC8.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3718.PIC8.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3718.PIC8.jpg" alt="" border="0" /></a></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1031.PIC9.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1031.PIC9.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1031.PIC9.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1031.PIC9.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Go to &ldquo;Jobs&rdquo; to verify the status, as shown below</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5807.PIC11.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5807.PIC11.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5807.PIC11.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5807.PIC11.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>In my case, I&nbsp; initiated the first backup: &nbsp;Go to &ldquo;Protected Items&rdquo; and click on &ldquo;Backup Now&rdquo;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1325.PIC12.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1325.PIC12.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1325.PIC12.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1325.PIC12.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Next click on &ldquo;Jobs&rdquo; to check backup status</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8625.PIC13.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8625.PIC13.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8625.PIC13.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8625.PIC13.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>To restore the VM, Go to Protected Items, Click on &ldquo;Restore&rdquo; and select a Recovery Point</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1067.PIC14.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1067.PIC14.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1067.PIC14.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1067.PIC14.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Select the VM Instance&nbsp;Name, it could be different Name or same name in same or different cloud service. In my example I deleted the test VM and restored it with<br />a new Instance&nbsp;Name</p>
<p>Please Note: VM Name does not change, Instance Name can be changed, depending on how you restore</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5074.PIC15.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5074.PIC15.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5074.PIC15.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5074.PIC15.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6811.pic16.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6811.pic16.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6811.pic16.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6811.pic16.jpg" alt="" border="0" /></a></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8358.pic17.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8358.pic17.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8358.pic17.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8358.pic17.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>DISCLAIMER: This posting is provided "AS IS" with no warranties and&nbsp;confers no rights&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Network Security Groups - Managing VMs in Azure IAAS with Azure PowerShell- Part 2</title>
      <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/network-security-groups-managing-vms-in-azure-iaas-with-azure-powershell-part-2</link>
      <pubDate>Sun, 18 Jan 2015 15:40:00 GMT</pubDate>
      <dc:creator><![CDATA[satish pandita]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/2015/01/18/network-security-groups-managing-vms-in-azure-iaas-with-azure-powershell-part-2/</guid>
      <description><![CDATA[Controlling traffic between subnets within a VNET
In this exercise we will work on using Network...]]></description>
      <content:encoded><![CDATA[<p style="text-align: justify;">Controlling traffic between subnets within a VNET</p>
<p style="text-align: justify;">In this exercise we will work on using Network Security Group feature, which is part of Azure Networking stack to control traffic between VMs or between subnets within a VNET. This feature allows us to secure backend and frontend server communication.&nbsp;</p>
<p><span style="text-decoration: underline;">Current Configuration in the lab environment:</span> <br />1.&nbsp; Storage Accounts:&nbsp;&nbsp;satishlocalstorage <br />2.&nbsp;Cloud Service: satishVnet1cloudsvc<br />3.&nbsp;VNET:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VNET &ldquo;SatishVnet1&rdquo; has 3 subnets&nbsp;&nbsp; InfraSubnet1, APPSubnet1 and DBSubnet1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i.&nbsp;Subnet &ldquo;InfraSubnet1&rdquo; 192.168.10.0/ 24&nbsp; contains VM&nbsp; ClientVM1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ii.&nbsp;Subnet &ldquo;APPSubnet1&rdquo;&nbsp; 192.168.11.0/24 contains&nbsp; VM WebVM1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iii.&nbsp;Subnet &ldquo;DBSubnet1&rdquo;&nbsp; 192.168.12.0/24 contains VM SQLVM1</p>
<p>Before I set few scenarios for this exercise, let us review the current VNET and VM Configuration to ensure VMs are in correct subnet.<br />1.&nbsp;<span style="text-decoration: underline;">Use following PS cmdlets to review current address space for VNET &ldquo;SatishVnet1&rdquo;</span><br /><em>Get-AzureVNetConfig | select -ExpandProperty XMLconfiguration</em></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">&lt;AddressSpace&gt;</span><br /><span style="font-size: xx-small;">&nbsp; &lt;AddressPrefix&gt;192.168.0.0/16&lt;/AddressPrefix&gt;</span><br /><span style="font-size: xx-small;">&lt;/AddressSpace&gt;</span><br /><span style="font-size: xx-small;">&lt;Subnets&gt;</span><br /><span style="font-size: xx-small;">&nbsp; &lt;Subnet name="InfraSubnet1"&gt;</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp; &lt;AddressPrefix&gt;192.168.10.4/24&lt;/AddressPrefix&gt;</span><br /><span style="font-size: xx-small;">&nbsp; &lt;/Subnet&gt;</span><br /><span style="font-size: xx-small;">&nbsp; &lt;Subnet name="APPSubnet1"&gt;</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp; &lt;AddressPrefix&gt;192.168.11.4/24&lt;/AddressPrefix&gt;</span><br /><span style="font-size: xx-small;">&nbsp; &lt;/Subnet&gt;</span><br /><span style="font-size: xx-small;">&nbsp; &lt;Subnet name="DBSubnet1"&gt;</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp; &lt;AddressPrefix&gt;192.168.12.4/24&lt;/AddressPrefix&gt;</span><br /><span style="font-size: xx-small;">&nbsp; &lt;/Subnet&gt;</span><br /><span style="font-size: xx-small;">&nbsp; &lt;Subnet name="GatewaySubnet"&gt;</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp; &lt;AddressPrefix&gt;192.168.0.0/29&lt;/AddressPrefix&gt;</span><br /><span style="font-size: xx-small;">&nbsp; &lt;/Subnet&gt;</span></p>
<p>Or <br /><em>PS C:\azuretest&gt; Get-AzureVNetConfig -ExportToFile c:\azuretest\satishvnetconfig.xml</em></p>
<p>2.&nbsp;<span style="text-decoration: underline;">Review the VM configuration status</span><br /><em>PS C:\test\scripts&gt; get-azurevm -ServiceName satishVnet1cloudsvc | select-object name, ipaddress, instancestatus | where&nbsp; {$_.instancestatus -eq "ReadyRole"}</em></p>
<p style="padding-left: 30px;"><span style="font-size: xx-small;">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IpAddress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InstanceStatus</span><br /><span style="font-size: xx-small;">----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------------</span><br /><span style="font-size: xx-small;">ClientVM1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.10.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadyRole</span><br /><span style="font-size: xx-small;">SQLVM1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.12.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadyRole</span><br /><span style="font-size: xx-small;">webvm1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.10.100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadyRole</span></p>
<p style="padding-left: 30px;">&nbsp;</p>
<p>&nbsp;The first thing I want to do is move VM &ldquo;webvm1&rdquo; in the correct subnet &ldquo;APPSubnet1" which is 192.168.11.0/24<br />(In my scenario since webvm1 is having static IP address, I had to perform additional steps)</p>
<p><br />3.&nbsp;<span style="text-decoration: underline;">Get a static IP address of the VM</span><br /><em>PS C:\azuretest&gt; $staticipvm=get-azurevm -servicename 'satishVnet1cloudsvc' -name 'webvm1'</em><br /><em>PS C:\azuretest&gt; Get-AzureStaticVNetIP -vm $staticipvm</em></p>
<p style="padding-left: 60px;">IPAddress<br />---------<br />192.168.10.100</p>
<p>&nbsp;<br />4.&nbsp;<span style="text-decoration: underline;">Remove Static IP from VM webvm1 and move it to subnet &ldquo;APPSubnet1&rdquo;</span></p>
<p><em>PS C:\azuretest&gt; Get-AzureVM -ServiceName satishVnet1cloudsvc -Name webvm1 | Remove-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AzureStaticVNetIP | Update-AzureVM</em></p>
<p><em>PS C:\azuretest&gt; Get-AzureVM &ndash;ServiceName satishVnet1cloudsvc &ndash;Name webvm1 | Set-AzureSubnet &ndash;SubnetNames APPSubnet1 | Update-AzureVM</em></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Wait for a minute or so for the VM to restart</p>
<p><span style="text-decoration: underline;">5.&nbsp;Review the VM Configuration Status to verify webvm1 is on 192.168.11.0/24 subnet</span></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IpAddress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InstanceStatus</span><br /><span style="font-size: xx-small;">----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; ---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; --------------</span><br /><span style="font-size: xx-small;">ClientVM1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.10.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadyRole</span><br /><span style="font-size: xx-small;">SQLVM1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.12.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadyRole</span><br /><span style="font-size: xx-small;">webvm1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.11.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadyRole</span></p>
<p>Now let us test few scenarios to control traffic between subnets within a VNET</p>
<p><span style="text-decoration: underline;"><strong>Scenario</strong></span></p>
<p>a.&nbsp; Create a rule to allow port 80&nbsp; from subnet&nbsp; &ldquo;InfraSubnet1&rdquo;&nbsp; to subnet &ldquo;APPSubnet1&rdquo; and block all other traffic from subnet &ldquo;InfraSubnet1&rdquo;&nbsp; to subnet &ldquo;APPSubnet1&rdquo;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (VM &ldquo;WEBVM1&rdquo; in subnet &ldquo;APP1Subnet1&rdquo; currently listens on TCP port 25/53/80)</p>
<p>b.&nbsp;Block all traffic&nbsp; to 192.168.11.0 except http inbound from 192.168.10.0/24 to 192.168.11.0/24</p>
<p>c.&nbsp;Create&nbsp; another&nbsp; rule to allow another port 25&nbsp; from subnet&nbsp; &ldquo;InfraSubnet1&rdquo;&nbsp; to subnet &ldquo;APPSubnet1&rdquo; and block all other traffic to subnet &ldquo;APPSubnet1&rdquo;</p>
<p>d.&nbsp;Remove the rule that you created for Task&nbsp; &ldquo;a&rdquo; and &ldquo;c&rdquo; above and allow VM&rsquo;s in subnet &ldquo;APPSubnet1&rdquo; to listen on a port range from 25 to 80 from subnet &ldquo;InfraSubnet1&rdquo; instead of port 25 and 80 only and ensure task &ldquo;b&rdquo; does not get affected.</p>
<p>e.&nbsp;Review network security group rules</p>
<p>f.&nbsp;Remove Network Security Group (roll back to default setting)</p>
<p>a)<span style="text-decoration: underline;"> Create a rule to allow port 80&nbsp; from subnet&nbsp; &ldquo;InfraSubnet1&rdquo;&nbsp; to subnet &ldquo;APPSubnet1&rdquo; and block all other traffic from subnet &ldquo;InfraSubnet1&rdquo;&nbsp; to subnet &ldquo;APPSubnet1</span>&rdquo;</p>
<p>&nbsp;<strong>Create a Security Group called "AzureSNG1-80"</strong><br /><em>PS C:\scripts&gt; New-AzureNetworkSecurityGroup -Name "AzureSNG1-80" -location "East US"</em></p>
<p style="padding-left: 90px;"><span style="font-size: xx-small;">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Location&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br /><span style="font-size: xx-small;">----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;--------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br /><span style="font-size: xx-small;">AzureSNG1-80&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; East US</span></p>
<p><strong>Associate Security Group to "APPSubnet1"</strong> <br /><em>PS C:\ &gt; Get-AzureNetworkSecurityGroup -Name "AzureSNG1-80"&nbsp; | set-AzureNetworkSecurityGrouptoSubnet -VirtualNetworkName " SatishVnet1" -subnetname "APPSubnet1"</em></p>
<p><strong>Allow http traffic to&nbsp; "APPSubnet1" from &ldquo;InfraSubnet1&rdquo;</strong><br /><em>PS C:\ &gt; get-AzureNetworkSecurityGroup -name "AzureSNG1-80" | set-AzureNetworkSecurityRule -Name "Allow Http" -type Inbound -priority 100 -action Allow -sourceaddressprefix "192.168.10.0/24" -sourceportrange "*"&nbsp; -destinationaddressprefix "192.168.11.0/24" -destinationportrange "80" -protocol TCP</em></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">Name&nbsp; : AzureSNG1-80</span><br /><span style="font-size: xx-small;">Rules :</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type: Inbound</span></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Priority&nbsp; Action&nbsp;&nbsp; Source Address&nbsp; Source Port&nbsp;&nbsp; Destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Destination&nbsp;&nbsp;&nbsp; Protocol</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prefix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Range&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Address Prefix&nbsp;&nbsp; Port Range</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------&nbsp; ------&nbsp;&nbsp; --------------- ------------- ---------------- -------------- --------</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow Http&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow&nbsp;&nbsp;&nbsp; 192.168.10.0/24 *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.11.0/24&nbsp; 80&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TCP</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p><strong>Block all other traffic from 192.168.10.0/24 to 192.168.11.0/24</strong><br /><em>PS C:\test\scripts&gt; Get-AzureNetworkSecurityGroup -Name "AzureSNG1-80" | SET-AzureNetworkSecurityRule -name "Block all" -type Inbound -Priority 200 -action Deny -sourceaddressprefix "192.168.10.0/24" -sourceportrange "*" -destinationaddressprefix "192.168.11.0/24" -destinationportrange "*" -protocol *</em></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">Name&nbsp; : AzureSNG1-80</span><br /><span style="font-size: xx-small;">Rules :</span></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type: Inbound</span></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Priority&nbsp; Action&nbsp;&nbsp; Source Address&nbsp; Source Port&nbsp;&nbsp; Destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Destination&nbsp;&nbsp;&nbsp; Protocol</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prefix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Range&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Address Prefix&nbsp;&nbsp; Port Range</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------&nbsp; ------&nbsp;&nbsp; --------------- ------------- ---------------- -------------- --------</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow Http&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow&nbsp;&nbsp;&nbsp; 192.168.10.0/24 *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.11.0/24&nbsp; 80&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TCP</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Block all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Deny&nbsp;&nbsp;&nbsp;&nbsp; 192.168.10.0/24 *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.11.0/24&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *</span></p>
<p>&nbsp;</p>
<p><strong>Test/Verify the results</strong><br />C:\PortQryV2&gt;portqry -n 192.168.11.4 -p tcp -e 80</p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">Querying target system called:</span><br /><span style="font-size: xx-small;">&nbsp;192.168.11.4</span><br /><span style="font-size: xx-small;">Attempting to resolve IP address to a name...</span><br /><span style="font-size: xx-small;">Failed to resolve IP address to name</span><br /><span style="font-size: xx-small;">querying...</span><br /><span style="font-size: xx-small;">TCP port 80 (http service): LISTENING</span><br /><span style="font-size: xx-small;">C:\PortQryV2&gt;portqry -n 192.168.11.4 -p tcp -e 25</span><br /><span style="font-size: xx-small;">Querying target system called:</span><br /><span style="font-size: xx-small;">&nbsp;192.168.11.4</span><br /><span style="font-size: xx-small;">Attempting to resolve IP address to a name...</span><br /><span style="font-size: xx-small;">Failed to resolve IP address to name</span><br /><span style="font-size: xx-small;">querying...</span><br /><span style="font-size: xx-small;">TCP port 25 (smtp service): FILTERED</span></p>
<p>&nbsp;b.<span style="text-decoration: underline;"> Block all traffic&nbsp; to 192.168.11.0 except http inbound&nbsp; from 192.168.10.0/24 to 192.168.11.0/24</span></p>
<p><em>PS C:\&gt; Get-AzureNetworkSecurityGroup -Name "AzureSNG1-80" | SET-AzureNetworkSecurityRule -name "Block all" -type Inbound -Priority 200 -action Deny -sourceaddressprefix "*" -sourceportrange "*" -destinationaddressprefix "192.168.11.0/24" -destinationportrange "*" -protocol *</em></p>
<p>c. <span style="text-decoration: underline;">Create&nbsp; another&nbsp; rule to allow another port 25&nbsp; from subnet&nbsp; &ldquo;InfraSubnet1&rdquo;&nbsp; to subnet &ldquo;APPSubnet1&rdquo; and block all other traffic to subnet &ldquo;APPSubnet1&rdquo;</span></p>
<p><em>PS C:\&gt; get-AzureNetworkSecurityGroup -name "AzureSNG1-80" | set-AzureNetworkSecurityRule -Name "Allow smtp" -type Inbound -priority 110 -action Allow -sourceaddressprefix "192.168.10.0/24" -sourceportrange "*"&nbsp; -destinationaddressprefix "192.168.11.0/24" -destinationportrange "25" -protocol TCP</em></p>
<p>d. <span style="text-decoration: underline;">Remove the rule that you created for Task&nbsp; &ldquo;a&rdquo; and &ldquo;c&rdquo; above and allow VM&rsquo;s in subnet &ldquo;APPSubnet1&rdquo; to listen on a port range from 25 to 80 from subnet &ldquo;InfraSubnet1&rdquo; instead of port 25 and 80 only and ensure task &ldquo;b&rdquo; does not get affected</span><em>.</em></p>
<p><em>PS C:\&gt; Get-AzureNetworkSecurityGroup -name "AzureSNG1-80" | remove-azurenetworksecurityrule -name "Allow http"</em><br /><em>PS C:\&gt; Get-AzureNetworkSecurityGroup -name "AzureSNG1-80" | remove-azurenetworksecurityrule -name "Allow smtp"</em><br /><em>PS C:\&gt; get-AzureNetworkSecurityGroup -name "AzureSNG1-80" | set-AzureNetworkSecurityRule -Name "Allow Http" -type Inbound -priority 100 -action Allow -sourceaddressprefix "192.168.10.0/24" -sourceportrange "*"&nbsp; -destinationaddressprefix "192.168.11.0/24" -destinationportrange "25-80" -protocol TCP</em></p>
<p>e .<span style="text-decoration: underline;"> Review network security group rules</span></p>
<p><em>PS C:\&gt; Get-AzureNetworkSecurityGroup -name "AzureSNG1-80" -detailed</em></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">Name&nbsp; : AzureSNG1-80</span><br /><span style="font-size: xx-small;">Rules :</span></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type: Inbound</span></p>
<p style="padding-left: 60px;"><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Priority&nbsp; Action&nbsp;&nbsp; Source Address&nbsp; Source Port&nbsp;&nbsp; Destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Destination&nbsp;&nbsp;&nbsp; Protocol</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prefix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Range&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Address Prefix&nbsp;&nbsp; Port Range</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------&nbsp; ------&nbsp;&nbsp; --------------- ------------- ---------------- -------------- --------</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow Http&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow&nbsp;&nbsp;&nbsp; 192.168.10.0/24 *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.11.0/24&nbsp; 25-80&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TCP</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Block all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Deny&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.11.0/24&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ALLOW VNET INBOUND&nbsp;&nbsp; 65000&nbsp;&nbsp;&nbsp;&nbsp; Allow&nbsp;&nbsp;&nbsp; VIRTUAL_NETWORK *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VIRTUAL_NETWORK&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *</span></p>
<p>f. <span style="text-decoration: underline;">Remove the Network Security Group</span></p>
<p><em>PS C:\&gt; Get-AzureNetworkSecurityGroup -Name "AzureSNG1-80"&nbsp; | Remove-AzureNetworkSecurityGroupfromSubnet -VirtualNetworkName " SatishVnet1" -subnetname "APPSubnet1"</em><br /><em>PS C:\&gt; Remove-AzureNetworkSecurityGroup "AzureSNG1-80"</em><span style="text-decoration: underline;"><br /></span></p>
<p>More details:</p>
<p><a href="http://msdn.microsoft.com/en-us/library/azure/dn848316.aspx">http://msdn.microsoft.com/en-us/library/azure/dn848316.aspx</a></p>
<p><a href="http://azure.microsoft.com/blog/2014/11/04/network-security-groups/">http://azure.microsoft.com/blog/2014/11/04/network-security-groups/</a></p>
<p>&nbsp;</p>
<p>DISCLAIMER: This posting is provided "AS IS" with no warranties and&nbsp;confers no rights&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Managing Azure VMs with Azure PowerShell-Part 1</title>
      <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/managing-azure-vms-with-azure-powershell-part-1</link>
      <pubDate>Fri, 28 Nov 2014 16:33:00 GMT</pubDate>
      <dc:creator><![CDATA[satish pandita]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/2014/11/28/managing-azure-vms-with-azure-powershell-part-1/</guid>
      <description><![CDATA[&nbsp;Managing&nbsp; Azure&nbsp;VMs with Azure PowerShell-Part 1
Working on creating some VMs in my...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;<strong>Managing&nbsp; Azure&nbsp;VMs with Azure PowerShell-Part 1</strong></p>
<p>Working on creating some VMs in my lab environment, thought why not post it as a reference for others</p>
<p><span style="text-decoration: underline;">Service Configurations</span><br />1.&nbsp;Storage Accounts: satishlocalstorage, satishvnet1sa<br />2.&nbsp;Cloud Service: satishcloud, satishVnet1cloudsvc<br />3.&nbsp;VNET: Satishnetwork (infrasubnet, websubnet SQLsubnet), Satishvnet1 (infrasubnet1, appsubnet1)</p>
<p><br /><span style="text-decoration: underline;">Goal </span></p>
<p>1. Deploy&nbsp; VMs&nbsp; in a specific &nbsp;storage account, cloud service and&nbsp; VNET<br />2. Setting a static IP address for your existing VM<br />3. Create a New VM and configure a static IP during the VM deployment<br />4. Capturing a Sysprep&rsquo;ed / generalized&nbsp;VM testvm2&nbsp;as a template for future deployments&nbsp; &amp; deploy the image<br />5. Capturing a running VM image for a quick snapshot &amp; redeploy the VM to a good point in time from the latest capture</p>
<p><strong>1.&nbsp;Deploy&nbsp; VMs&nbsp; in a specific &nbsp;storage account, cloud service and&nbsp; VNET</strong><br /><span style="text-decoration: underline;">Associate subscription to the storageaccount</span> <br />PS C:\&gt; <em>Set-AzureSubscription -SubscriptionName "yoursubscriptionaname" -CurrentStorageAccountName "satishlocalstorage"</em><br />&nbsp;&nbsp;(All VM&rsquo;s will now be created in &ldquo;satishlocalstorage&rdquo; account&rdquo; by default</p>
<p><span style="text-decoration: underline;">Create a VM and from a latest image release date(best practice)</span> <br /><em>PS C:\&gt; $image=(get-azurevmimage | where {$_.imagefamily -eq "windows Server 2012 R2 DataCenter"} | sort publisheddate -descending | select-object -first 1).imagename</em></p>
<p><em>PS C:\&gt; New-AzureVMConfig -Name "testvm1" -InstanceSize "Basic_A1" -imagename $image | add-azureprovisioningconfig -windows -adminusername userid -Password yourpassword | set-azuresubnet -subnetnames "infrasubnet" | New-AzureVM -ServiceName "satishcloud" &ndash;vnetname &ldquo;satishnetwork&rdquo;</em></p>
<p><span style="text-decoration: underline;">&nbsp;VM status</span> <br /><em>PS C:\&gt; Get-AzureVM -ServiceName "satishcloud" -name "testvm1"&nbsp; | select-object name, ipaddress, powerstate, servicename</em></p>
<p><span style="font-size: xx-small;">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IpAddress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PowerState&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServiceName</span><br /><span style="font-size: xx-small;">----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; -----------</span><br /><span style="font-size: xx-small;">testvm1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.101.2.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; satishcloud</span></p>
<p><strong>2.&nbsp;Setting a static IP address&nbsp;for your existing VM</strong></p>
<p><span style="text-decoration: underline;">Configure VM &ldquo;testvm1&rdquo; with a static ip address of 10.101.2.99 or 10.101.2.5(whichever is available)</span></p>
<p><em>PS C:\&gt; Test-AzureStaticVNetIP -vnetname "satishnetwork" -IPAddress "10.101.2.5"</em></p>
<p><em>&nbsp;PS C:\&gt; Test-AzureStaticVNetIP -vnetname "satishnetwork" -IPAddress "10.101.2.99"</em><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: xx-small;">IsAvailable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : True</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AvailableAddresses&nbsp;&nbsp; : {}</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;OperationDescription : Test-AzureStaticVNetIP</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;OperationId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : d497b983-d876-3c22-a266-c4eb0c0c773e</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;OperationStatus&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Succeeded</span></p>
<p><em>PS C:\&gt; get-azurevm -servicename "satishcloud" -name "testvm1" |Set-AzureStaticVNetIP -&nbsp;&nbsp;&nbsp; iPAddress "10.101.2.99" | update-Azurevm</em><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (This command will restart and update the VM with new static IP address)</p>
<p><em>PS C:\&gt; Get-AzureVM -ServiceName "satishcloud" -name "testvm1"&nbsp; | select-object name, ipaddress, powerstate, servicename</em></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-size: xx-small;">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IpAddress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PowerState&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServiceName</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -----------</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; testvm1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 10.101.2.99&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Started&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; satishcloud</span></p>
<p><em>PS C:\&gt; $staticipvm=get-azurevm -servicename 'satishcloud' -name 'testvm1'</em><br /><em>PS C:\&gt; Get-AzureStaticVNetIP -vm $staticipvm</em></p>
<p><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IPAddress</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---------</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.101.2.99</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;If you want to remove static IP for a VM, run</span><br />Get-AzureVM -ServiceName &ldquo;satishcloud&rdquo; -Name &ldquo;testvm1l&rdquo;&nbsp; | Remove-AzureStaticVNetIP | Update-AzureVM</p>
<p><strong>3.&nbsp;Create a New VM and with a static IP address</strong></p>
<p><em>PS C:\&gt; $image=(get-azurevmimage | where {$_.imagefamily -eq "windows Server 2012 R2 DataCenter"} | sort publisheddate -descending | select-object -first 1).imagename</em></p>
<p><em>PS C:\&gt; New-AzureVMConfig -Name "Testvm2" -InstanceSize "Basic_A1" -imagename $image &nbsp;| add-azureprovisioningconfig -windows -adminusername username -Password yourpassword | set-azuresubnet -subnetnames "infrasubnet" | Set-AzureStaticVNetIP -IPAddress "10.101.2.100" | New-AzureVM -ServiceName "satishcloud" &ndash;vnetname &ldquo;satishnetwork&rdquo;</em></p>
<p><strong>4.&nbsp; Capturing a Sysprep&rsquo;ed / generalized&nbsp;VM "testvm2"&nbsp;as a template for future deployments&nbsp; &amp; deploy the image</strong></p>
<p><em>PS C:\&gt;&nbsp; Save-AzureVMImage -ServiceName satishcloud -Name testvm2 -ImageName webtemplate1 -ImageLabel webtemplate1 -OSState Generalized<br /></em>(this command will delete the VM testvm2 and create an image from this VM</p>
<p><span style="text-decoration: underline;"><em>&nbsp;&nbsp;Deploy a new VM called webvm1 from the capured generalized image webtemplate1</em></span></p>
<p><em>PS C:\&gt;&nbsp; New-AzureVMConfig -Name "webvm1" -InstanceSize "Basic_A1" -imagename webtemplate1 | add-azureprovisioningconfig&nbsp;&nbsp;-windows -adminusername&nbsp;userid1 -Password&nbsp;yourpassword | set-azuresubnet -subnetnames "infrasubnet" &nbsp;| Set-AzureStaticVNetIP -IPAddress "10.101.2.100" | New-AzureVM -ServiceName "satishcloud" &ndash;vnetname &ldquo;satishnetwork"</em></p>
<p><em>PS C:\&gt; get-azurevm -ServiceName "satishcloud" -name "webvm1" | select-object name, ipaddress, status</em><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IpAddress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ------</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; webvm1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.101.2.100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadyRole</span></p>
<p><br /><strong>5. Capturing a running VM "webvm1" for a quick snapshot &amp; redeploy the VM to a good point in time from the latest capture&nbsp; </strong></p>
<p><em><br />PS C:\&gt; Save-AzureVMImage -ServiceName satishcloud -Name webvm1 -ImageName webvm1snapshot -ImageLabel webvm1snapshot -OSState Specialized<br />PS C:\&gt; Get-AzureVMImage | where {$_.imagename -like "web*"}&nbsp; |select-object imagename,category,RoleName<br /></em><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ImageName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Category&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RoleName</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; --------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;webtemplate1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; User&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Testvm2</span><br /><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;webvm1snapshot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; webvm1</span><em><br /></em></p>
<p><span style="text-decoration: underline;">(Next I Deleted the VM webvm1 and redeployed it, all previous configurations were intact including domainjoin in my case&nbsp;</span></p>
<p><em>&nbsp;PS C:\&gt; Remove-AzureVM -ServiceName "satishcloud" -name "webvm1" -DeleteVHD</em><br /><em>PS C:\&gt; New-AzureVMConfig -Name "webvm1" -InstanceSize "Basic_A1" -imagename webvm1snapshot | set-azuresubnet -subnetnames "infrasubnet" | Set-AzureStaticVNetIP -IPAddress "10.101.2.100" | New-AzureVM -ServiceName "satishcloud" &ndash;vnetname &ldquo;satishnetwork&rdquo;</em></p>
<p><em>Note: when the VM is back online,and when you try to login for the first time&nbsp;you will see a dialog pop up stating the VM was not properly shutdown, this&nbsp;may be an&nbsp;expected behavior, as we captured a running VM</em></p>
<p><span style="text-decoration: underline;"><em>Stopped all VMs in cloud service "satishcloud"</em></span></p>
<p><em>PS C:\&gt; get-azurevm -ServiceName "satishcloud" | stop-azurevm</em></p>
<p><em>DISCLAIMER: This posting is provided "AS IS" with no warranties and&nbsp;confers no rights&nbsp;</em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>VNet to VNet connectivity - Microsoft Azure</title>
      <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/vnet-to-vnet-connectivity-microsoft-azure</link>
      <pubDate>Tue, 26 Aug 2014 06:36:00 GMT</pubDate>
      <dc:creator><![CDATA[satish pandita]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/2014/08/26/vnet-to-vnet-connectivity-microsoft-azure/</guid>
      <description><![CDATA[Vnet to Vnet Communication
&nbsp;
By default &nbsp;all VM&rsquo;s within a VNET can communicate...]]></description>
      <content:encoded><![CDATA[<p><span style="text-decoration: underline;">Vnet to Vnet Communication</span></p>
<p><strong>&nbsp;</strong></p>
<p>By default &nbsp;all VM&rsquo;s within a VNET can communicate with each other, regardless what address space/subnet they belong to</p>
<p>&nbsp;By default communication between VNETs is blocked, you can establish communication between &nbsp;two or more virtual networks together and that too securely with IPsec/IKE S2S VPN tunnels</p>
<p>There could be several reasons why you want to enable communication between VNETS. e.g.</p>
<p><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You want to setup a custom geo-replication or synchronization&nbsp;&nbsp;without going over internet</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Company A wants to share specific data/web services &nbsp;with Company B in a secure way &nbsp;without going over internet or an inter org communication that are on multiple VNETS.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You want to setup SQL AO</p>
<p><strong>&nbsp;</strong><strong>In my scenario, I want to access:</strong></p>
<p>A website hosted on a &nbsp;VM named &nbsp;&ldquo;web1vnet2&rdquo; in VNET &ldquo;SatishVnet2&rdquo; from from VM named &ldquo;dc1vnet1&rdquo; in VNET &ldquo;SatishVnet1&rdquo; or ViceVersa</p>
<ol>
<li>&nbsp;Windows Firewall enabled on every VM with required exceptions in place</li>
<li>All endpoints for all VM&rsquo;s are removed</li>
<li>Web2Vnet2 is listening on port 80 only</li>
</ol>
<p><strong>&nbsp;</strong><strong>I will follow following &nbsp;6&nbsp; key sections for this configuration:</strong></p>
<p>1. Plan your IP address ranges &nbsp;&nbsp;&nbsp;</p>
<p>2. Create your virtual networks</p>
<p>3. Add local networks</p>
<p>4. Create the dynamic routing gateways for each VNet.</p>
<p>5. Connect the VPN gateways</p>
<p>6. Verify connectivity</p>
<p><strong>&nbsp;</strong>&nbsp;</p>
<p><span style="text-decoration: underline;">1. </span><strong><span style="text-decoration: underline;">Plan your IP address ranges. &nbsp;2. Create your virtual networks </span></strong></p>
<p><strong>&nbsp;</strong></p>
<p><strong><span style="text-decoration: underline;">VNET1</span></strong></p>
<p><strong><span style="text-decoration: underline;">VNET Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cloud Service Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StorageAccountName&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Location</span></strong></p>
<p>satishVnet1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; satishVnet1cloudsvc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; satishvnet1sa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; East US</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2438.pic1.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2438.pic1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2438.pic1.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2438.pic1.png" alt="" border="0" /></a></p>
<p><strong><span style="text-decoration: underline;">VM config</span></strong></p>
<p><strong><span style="text-decoration: underline;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1638.pic2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1638.pic2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1638.pic2.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1638.pic2.jpg" alt="" border="0" /></a></span></strong></p>
<p>&nbsp;</p>
<p>&nbsp;<strong><span style="text-decoration: underline;">VNET2</span></strong></p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration: underline;">VNET Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cloud Service Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StorageAccountName&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Location</span></strong></p>
<p>satishVnet2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; satishVnet2cloudsvc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; satishvnet2sa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; West US</p>
<p><strong><span style="text-decoration: underline;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3107.pic3.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3107.pic3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3107.pic3.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3107.pic3.jpg" alt="" border="0" /></a></span></strong></p>
<p><strong></strong>&nbsp;</p>
<p><strong><span style="text-decoration: underline;">VM Config</span></strong></p>
<p><strong><span style="text-decoration: underline;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2538.pic4.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2538.pic4.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2538.pic4.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2538.pic4.jpg" alt="" border="0" /></a></span></strong></p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration: underline;">3. Add local networks </span></strong></p>
<p>&nbsp;</p>
<p>Next we need to configure &ldquo;Add Local Network&rdquo; for cross<br />premises connectivity</p>
<p>From your portal click on</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; New-&gt;Network<br />Services-&gt;Virtual Network-&gt;Add Local Network</p>
<p>For VPN Device IP Address, use any &nbsp;dummy IP address for now, since we have not<br />created the gateway yet, once gateway is created we will upate the VPN Device<br />IP Address with the actual gateway IP</p>
<p>See picture below</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3386.Pic5.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3386.Pic5.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3386.Pic5.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3386.Pic5.jpg" alt="" border="0" /></a></p>
<p>and Next specify the address space</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6445.pic6.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6445.pic6.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6445.pic6.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6445.pic6.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Repeat the steps again &nbsp;for &nbsp;VNET &ldquo;SatishVnet2&rdquo;&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8764.pic7.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8764.pic7.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8764.pic7.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8764.pic7.jpg" alt="" width="492" height="151" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5554.jpeg8.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5554.jpeg8.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5554.jpeg8.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5554.jpeg8.jpg" alt="" width="508" height="123" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Next you&rsquo;ll point each VNet to the other as a local network.</p>
<p>In this case I will point VNET &nbsp;&ldquo;SatishVnet1&rdquo; to &ldquo;SatishVnet2&rdquo; and &nbsp;point VNET &ldquo;SatishVnet2&rdquo; to &ldquo;SatishVnet1&rdquo;</p>
<p>&nbsp;In the Management Portal, go to the <strong>Configure</strong> page for VNET &ldquo;SatishVnet&rdquo;. Under <strong>site-to-site<br />connectivity</strong>, select <strong>Connect to the local network</strong>, then select <strong>SatishVnet2-172addressspace</strong> as the local network<br />and add VPN Gatewaysubnet and then click &ldquo;Save&rdquo;</p>
<p>&nbsp;See screen capture below</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3312.pic9.gif" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3312.pic9.gif"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3312.pic9.gif" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3312.pic9.gif" alt="" width="550" height="265" border="0" /></a></p>
<p>.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4532.pic10.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4532.pic10.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4532.pic10.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4532.pic10.jpg" alt="" width="550" height="227" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">4. Create the dynamic routing gateways for each VNET</span></p>
<p>&nbsp;Go to &ldquo;Networks&rdquo;, Select &nbsp;VNET &ldquo;SatishVnet1&rdquo;,&nbsp; Select &ldquo;Dashboard&rdquo;&nbsp; and create the &ldquo;Dynamic Routing&rdquo;</p>
<p>See picture below</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4370.PIC12.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4370.PIC12.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4370.PIC12.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4370.PIC12.png" alt="" width="550" height="280" border="0" /></a></p>
<p>&nbsp;</p>
<p>Go to &ldquo;Networks&rdquo;, Select &nbsp;VNET &ldquo;SatishVnet2&rdquo;,&nbsp; Select &ldquo;Dashboard&rdquo;&nbsp; and create the &ldquo;Dynamic Routing&rdquo;</p>
<p>See picture below</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4101.PIC13.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4101.PIC13.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4101.PIC13.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4101.PIC13.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Wait for 15 to 20 minutes till gateway is created</p>
<p>See picture below (the gateway for SatishVnet1</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7558.PICa.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7558.PICa.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7558.PICa.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7558.PICa.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2376.PICb.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2376.PICb.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2376.PICb.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2376.PICb.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Next we need to update the VPN Device IP address for each &ldquo;Local Network&rdquo; &nbsp;with this new gateway 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/51/67/6175.PICc.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6175.PICc.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6175.PICc.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6175.PICc.png" alt="" width="550" height="235" border="0" /></a></p>
<p>.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7610.picD.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7610.picD.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7610.picD.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7610.picD.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration: underline;">5. Connect the VPN gateways&nbsp;&nbsp;</span></strong>&nbsp;</p>
<p>Set the IPsec/IKE pre-shared keys to be the same. You can use it with REST API or PowerShell,&nbsp; in this example I am using azure PowerShell, see pic below</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6840.pic18.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6840.pic18.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6840.pic18.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6840.pic18.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration: underline;">6. Verify connectivity is established using PowerShell or from portal</span></strong></p>
<p><strong><span style="text-decoration: underline;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3060.pic19.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3060.pic19.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3060.pic19.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3060.pic19.jpg" alt="" border="0" /></a></span></strong></p>
<p>&nbsp;</p>
<p>On Portal:&nbsp;&nbsp; Go to Networks-&gt; select VNET &ldquo;SatishVnet1&rdquo;-&gt;Dashboard</p>
<p>&nbsp;See picture below</p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/0407.PICe.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/0407.PICe.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/0407.PICe.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/0407.PICe.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3323.picF.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3323.picF.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3323.picF.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3323.picF.png" alt="" border="0" /></a></p>
<p>Launching website <a href="http://dc1vnet2">http://dc1vnet2</a>&nbsp; from VM dc1vnet1</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3821.pic23.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3821.pic23.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3821.pic23.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3821.pic23.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>DISCLAIMER: This posting is provided "AS IS" with no warranties and&nbsp;confers no rights&nbsp;</p>
<p>&nbsp;For more details go to : <a href="http://msdn.microsoft.com/en-us/library/azure/dn690122.aspx">http://msdn.microsoft.com/en-us/library/azure/dn690122.aspx</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Monitoring EMC Storage with SCOM using  EMC ESI SCOM Management Pack</title>
      <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/monitoring-emc-storage-with-scom-using-emc-esi-scom-management-pack</link>
      <pubDate>Fri, 27 Sep 2013 16:27:00 GMT</pubDate>
      <dc:creator><![CDATA[satish pandita]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/2013/09/27/monitoring-emc-storage-with-scom-using-emc-esi-scom-management-pack/</guid>
      <description><![CDATA[Monitoring&nbsp;EMC STORAGE with SCOM 2007 R2 &amp; UP&nbsp;using ESI SCOM Management Pack
One of...]]></description>
      <content:encoded><![CDATA[<p><strong><span style="color: #464847; font-family: 'Calibri','sans-serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-font-kerning: 14.0pt; mso-bidi-font-weight: bold;">Monitoring&nbsp;EMC STORAGE with SCOM 2007 R2 &amp; UP&nbsp;using ESI SCOM Management Pack</span></strong></p>
<p><span style="color: #464847; font-family: 'Calibri','sans-serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-font-kerning: 14.0pt; mso-bidi-font-weight: bold;">One of the options to&nbsp; Monitor EMC Storage e.g. VNX,&nbsp; CLARIION&nbsp; is using EMC Storage Integrator v3.0.1151.6309 for Windows Suite&nbsp;that includes ESI Service and ESI SCOM Management Pack. </span></p>
<p><span style="color: #464847; font-family: 'Calibri','sans-serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-font-kerning: 14.0pt; mso-bidi-font-weight: bold;">In this post, I will go through high level steps on monitoring EMC VNX Storage with SCOM 2007 R2/2012 </span></p>
<p>&nbsp;<strong>EMC Software Requirements</strong><strong></strong></p>
<ul>
<li>EMC Storage integrator setup file<br />(ESI.3.01151.Setup.X64.exe) aka ESI Service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Note:&nbsp;&nbsp;ESI Service is a communication link between ESI and ESI SCOM Management Packs.&nbsp;It supports all EMC Storage systems and its sub components.&nbsp;</li>
<li>SCOM Management pack<br />(ESI.SCOM.ManagementPscks.3.0.1151.6309.setup.exe)</li>
</ul>
<p>&nbsp;<strong>Hardware &amp; SCOM version Requirements</strong><strong></strong></p>
<ul>
<li>&nbsp;At least&nbsp;one&nbsp;dedicated Host/VM with Windows Server 2008R2 and up, &nbsp;on which ESI service will be installed, (Monitoring Station)</li>
<li>&nbsp;SCOM 2007 SP1/ SCOM 2007 R2, SCOM 2012 SP1&nbsp;(SCOM Server)</li>
</ul>
<p>&nbsp;<span style="font-size: medium;"><strong>Configuration Steps</strong></span></p>
<p>Once you extract the zip file. Folder &ldquo;x64&rdquo; contains EMC Storage integration Service aka ESI Service and Folder &ldquo;SCOM.ManagementPacks&rdquo; contains&nbsp; EMC management pack for SCOM (see below)</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8424.pic1.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8424.pic1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8424.pic1.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8424.pic1.jpg" alt="" width="389" height="297" border="0" /></a></p>
<p>&nbsp;</p>
<p><strong>INSTALLATION of ESI SERVICE on&nbsp;EMC Monitoring station</strong><strong></strong></p>
<p><strong></strong><br />Configure a dedicated server /VM as a Monitoring station with SCOM agent installed on it (The Operating system has to be Windows 2008 or Windows 2008 R2 or Windows 2012 only</p>
<p><strong>&nbsp;</strong></p>
<ol>
<li>Install&nbsp; EMC Storage Integrator</li>
<li>Verify &ldquo;ESI Service&rdquo; is running and&nbsp;as &ldquo;Network Service&rdquo;</li>
<li>On the monitoring station ,click on &ldquo;Start&rdquo; and launch &ldquo;EMC Storage Integrator&rdquo;</li>
<li>Go to EMC Storage Integrator-&gt;Storage Systems-&gt;Add Storage System</li>
<li>In this scenario,&nbsp;I chose the option &nbsp; VNX-Block as system type from the drop down menu</li>
<li>For username and password, pass the USERID and PASWORD that was created in VNX</li>
<li>Specify SPA and SPB IP address ( IP of storage processor)<ol>
<li>Repeat step 5 thru 7 for all&nbsp; type of different storage you have in the environment</li>
</ol></li>
<li>You can leave port number as 443 as default, or change if you want and configure the access accordingly.</li>
<li>Click on test connection, verify the results and the new Arrays will be added under storage systems.</li>
</ol>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/0005.pic2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/0005.pic2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/0005.pic2.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/0005.pic2.jpg" alt="" border="0" /></a></p>
<p>&nbsp;&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10. Next we need to publish the connection</p>
<ol>
<li>&nbsp;Go to &ldquo;EMC Storage Integration&rdquo;, -&gt; &ldquo;Publish Connection&rdquo;</li>
</ol>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b.&nbsp;&nbsp; &nbsp;Once you click on Publish Connection following screen will appear</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i.&nbsp;&nbsp;&nbsp; Under IP Address /Name you can type &ldquo;local host or the IP address of this server( EMC Monitoring station)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ii.&nbsp;&nbsp;&nbsp; Publish to should be &ldquo;ESI Service&rdquo;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iii.&nbsp;&nbsp; Click&nbsp; on &ldquo;Refresh&rdquo;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iv.&nbsp;&nbsp; Under&nbsp; &ldquo;Local -&nbsp; Storage and Replication Systems&rdquo;, you will see EMC devices that you added in above step&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v.&nbsp;&nbsp;&nbsp; Select the devices and click on &ldquo;Add&rdquo;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vi.&nbsp;&nbsp;&nbsp; At this point ESI Service is configured on the EMC Monitoring station</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6052.pic4.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6052.pic4.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6052.pic4.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6052.pic4.jpg" alt="" border="0" /></a></p>
<p>&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.&nbsp;&nbsp;&nbsp;To confirm HTTP/HTTPS connectivity(communication) between EMC Monitoring station and EMC Storage(VNX in this example),&nbsp; perform any&nbsp;&nbsp;&nbsp; of the following steps</p>
<p><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://IP_OF_EMC_Monitoring_Station:54500/esi/console&nbsp;&nbsp; or &nbsp;&nbsp;&nbsp;&nbsp; https://IP_OF_EMC_Monitoring_Station:54501/esi/console&nbsp;</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong>If you need to customize ports,&nbsp; implement new certificates,&nbsp; refer to document&nbsp;&nbsp; &ldquo;EMC Storage Integrator for Windows Suite&rdquo;</p>
<p>&nbsp;</p>
<p>12.&nbsp;&nbsp;On the EMC Monitoring station change&nbsp; the following registry to decimal 5120</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2248.pic5.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2248.pic5.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2248.pic5.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2248.pic5.jpg" alt="" border="0" /></a></p>
<p>&nbsp;<strong>Next Step is to Configure&nbsp; EMC Management PACK on SCOM SERVER</strong><strong></strong></p>
<p>&nbsp;</p>
<ol>
<li>Execute the MSI and import the&nbsp;&nbsp;EMC Management Packs on the SCOM Server</li>
<li>You will see the&nbsp; new View as "EMC Storage Integrator" in SCOM Console</li>
</ol>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.&nbsp; Configure&nbsp; Overrides:&nbsp;&nbsp;&nbsp; In SCOM Console go to:&nbsp;&nbsp;Authoring-&gt;Object Discovery,&nbsp;&nbsp;&nbsp; Search for &ldquo;EMC SI Service Discovery&rdquo;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2158.pic6.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2158.pic6.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2158.pic6.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2158.pic6.jpg" alt="" border="0" /></a></p>
<p>&nbsp;&nbsp;&nbsp;</p>
<ul>
<li>&nbsp;In the above screen capture on the overrides (in this example)</li>
<ul>
<li>Discovery is enabled</li>
<li>Override value&nbsp; for parameter &ldquo;ESI Service host&rdquo; is&nbsp; the IP address of the server on<br />which ESI Service was installed&nbsp;(EMC Monitoring Station)</li>
<li>If you want ESI Service to connect with an HTTP connection instead of an HTTPS,<br />you can set the override for the same(a security risk though)</li>
</ul>
</ul>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4. Next &nbsp;setup the ESI Monitoring Station as host override</p>
<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to &nbsp;Authoring-&gt;object Discoveries-&nbsp; and then Type &ldquo;EMC SI Service Discovery&rdquo;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Click on Override and select &ldquo;For a&nbsp; specific&nbsp; object of class: Windows Computer&rdquo; and Select the ESI Monitoring Station</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5. For additional overrides, custom configurations, refer to the EMC Storage integrator document</p>
<p>&nbsp;DISCLAIMER: This posting is provided "AS IS" with no warranties and&nbsp;confers no rights&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Compliance Settings SCCM 2012</title>
      <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/compliance-settings-sccm-2012</link>
      <pubDate>Fri, 21 Sep 2012 18:01:00 GMT</pubDate>
      <dc:creator><![CDATA[satish pandita]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/2012/09/21/compliance-settings-sccm-2012/</guid>
      <description><![CDATA[Compliance Setting&nbsp;in SCCM 2012
Compliance Setting in SCCM 2012 is to asses and remediate the...]]></description>
      <content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">Compliance Setting&nbsp;in SCCM 2012</span></strong></p>
<p>Compliance Setting in SCCM 2012 is to asses and remediate the configuration and&nbsp;compliance of servers, workstations, including&nbsp;mobile devices in your organization</p>
<p>In this post, I will pick few examples on using Compliance settings including reporting and reviewing few log files to&nbsp;see the record process information.</p>
<p>&nbsp;<strong>Example1:</strong></p>
<p>Assess/track the file version and report Compliance or Non-Compliance, &nbsp;if the file version does not match the specified version&nbsp; that is targeted to a specific device collection that has 2 members</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8360.1.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8360.1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8360.1.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8360.1.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Start with Configuration Item that will contain the configuration settings</p>
<p>Go to &ldquo; Asset and Compliance--&gt;Compliance Settings--&gt;Configuration items&rdquo;</p>
<p>Right click and select &ldquo;Create&nbsp; configuration Item&rdquo;&nbsp; Enter/select the following values and click &ldquo;Next&rdquo;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7455.2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7455.2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7455.2.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7455.2.jpg" alt="" width="608" height="463" border="0" /></a></p>
<p>&nbsp;</p>
<p>Select &ldquo;Always assume application is installed&rdquo;</p>
<p>If you have an application that has an MSI you can also select &ldquo;use Windows Installation Detection&rdquo;&nbsp;Click &ldquo;Next</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6646.3.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6646.3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6646.3.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6646.3.jpg" alt="" border="0" /></a></p>
<p>&nbsp;Following Screen will appear and click &ldquo;New&rdquo;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1323.4.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1323.4.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1323.4.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1323.4.jpg" alt="" border="0" /></a></p>
<p>After you click on &ldquo;New&rdquo; enter setting name and change setting type to &ldquo;File System&rdquo; and then click on Browse</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8524.5.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8524.5.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8524.5.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8524.5.jpg" alt="" border="0" /></a></p>
<p>When you click on &ldquo;Browse&rdquo;, connect to the computer that has the new version of the file and update the check boxes as below, then click on &ldquo;ADD&rdquo;</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7652.6.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7652.6.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7652.6.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7652.6.jpg" alt="" width="477" height="409" border="0" /></a></p>
<p><br />Once you click on &ldquo;Add&rdquo; update the file property as below and click &ldquo;ok&rdquo;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8446.7.gif" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8446.7.gif"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8446.7.gif" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8446.7.gif" alt="" border="0" /></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/51/67/6888.8.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6888.8.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6888.8.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6888.8.jpg" alt="" border="0" /></a></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">Click on &ldquo;Compliance Rules&rdquo; tab</span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7587.9.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7587.9.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7587.9.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7587.9.jpg" alt="" border="0" /></a></span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">On &ldquo;Compliance Rules&rdquo; tab, edit each rule and Change the &ldquo;Severity&rdquo; to Warning for each &ldquo;Compliance Rule&rdquo;</span></span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">Note: when you click on 2nd rule "version check"For Rule "Version check" </span></span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7142.10.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7142.10.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7142.10.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7142.10.jpg" alt="" border="0" /></a></span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2117.11.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2117.11.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2117.11.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2117.11.jpg" alt="" border="0" /></a></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>At this point the configuration item is created.</p>
<p>Next we will create the &ldquo;Configuration Baseline&rdquo; and in this &ldquo;Configuration Baseline&rdquo; add the configuration item that we created and deploy it to a collection for compliance evaluation.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3250.12.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3250.12.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/3250.12.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/3250.12.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Deploy this Configuration Baseline to a &ldquo;Collection&rdquo;</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8130.14.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8130.14.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8130.14.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8130.14.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6177.15.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6177.15.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/6177.15.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/6177.15.jpg" alt="" border="0" /></a></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">Click on &ldquo;Run summarization&rdquo;</span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2063.16.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2063.16.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2063.16.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2063.16.jpg" alt="" border="0" /></a></span></p>
<p>&nbsp;</p>
<p>Now let us check the compliance evaluation/Reporting, which can be reviewed on the client and from the SCCM console.</p>
<p><span style="text-decoration: underline;">Evaluating&nbsp;Compliance on the client</span></p>
<p>On the client workstation Go to control panel--&gt;Configuration Manager--&gt;Actions and refresh &ldquo;Machine policy Retrieval and Evaluation Cycle&rdquo;</p>
<p>Go to the &ldquo;Configuration Tab&rdquo;, you will see that configuration baseline is assigned to this computer</p>
<p>Click on &ldquo;Evaluate&rdquo;&nbsp; "Refresh"&nbsp;&nbsp;and then &ldquo;View Report&rdquo;</p>
<p>On this Workstation since I am using older version of MSPAINT, it is shown as &ldquo;Non-Compliant&rdquo;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7534.17.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7534.17.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/7534.17.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/7534.17.jpg" alt="" border="0" /></a></span></p>
<p><br />&nbsp;</p>
<p>The another workstation has the correct file version and is shown as &ldquo;Compliant</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5684.18.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5684.18.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5684.18.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5684.18.jpg" alt="" border="0" /></a></p>
<p><span style="text-decoration: underline;">Evaluating the compliance from SCCM Console</span></p>
<p>Launch Console, Go to Asset and Compliance-&gt;Monitoring-&gt;Alerts</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1234.19.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1234.19.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1234.19.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1234.19.jpg" alt="" border="0" /></a></p>
<p>Go to Monitoring-&gt;Deployments</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2335.20.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2335.20.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2335.20.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2335.20.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>A variety of reports can be generated from: Monitoring-&gt;Reporting-&gt;Compliance and Setting Management</p>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><strong>Example 2:</strong></span></p>
<p>&nbsp;In this example, we will use a PowerShell Script to check a specific service and report on compliance/non-compliance</p>
<p><strong>Scenario</strong>:</p>
<ul>
<li>&nbsp;If &ldquo;Spooler Service&rdquo; is running and the start mode is automatic, It is Compliant</li>
<li>&nbsp;If Service is running and start mode is set to manual or disabled, it is non-compliant</li>
<li>&nbsp;If service is not running and start mode is automatic or manual or disabled, it is non-&nbsp;Compliant&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
</ul>
<p>Though you can remediate it also by having a remediation script,&nbsp;in this scenario I am not using that feature.</p>
<p>&nbsp;</p>
<p>PowerShell script will be used to achieve this goal:</p>
<p><em><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function CheckService {</span></em></p>
<p><em><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;param($Services)</span></em></p>
<p><em><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $Compliance= "Compliant"</span></em></p>
<p><em><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $StoppedServices= Get-WmiObject Win32_Service -Filter {state='stopped' or startmode!='auto'}</span></em></p>
<p><em><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $StoppedServices | ForEach-Object {if ($services -match $_.Name) {$Compliance = "NonCompliant"}}</span></em></p>
<p><em><span style="font-size: xx-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Compliance</span></em></p>
<p><em><span style="font-size: xx-small;">}</span></em></p>
<p><em><span style="font-size: xx-small;">&nbsp;$services= "spooler"</span></em></p>
<p><em><span style="font-size: xx-small;">checkService-Services $services</span></em></p>
<p>&nbsp;</p>
<p>Go to SCCM Console-&gt;Assets and Compliance-&gt;Compliance Settings-&gt;Configuration Items</p>
<p>&nbsp;Start &ldquo;Create Configuration Wizard&rdquo;, enter Name, and Click &ldquo;Next&rdquo;, select &ldquo;Operating System that will<br />assess this configuration for compliance&rdquo;</p>
<p>Then at the Setting option click &ldquo;New&rdquo; and select the setting type &ldquo;Script&rdquo; Data type &ldquo;String&rdquo; and click on &ldquo;Add Script&rdquo;</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1007.21.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1007.21.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/1007.21.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/1007.21.jpg" alt="" border="0" /></a></p>
<p>Under Script Language choose &ldquo;Windows PowerShell&rdquo; and import/paste the script, Click &ldquo;Ok&rdquo;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4606.22.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4606.22.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4606.22.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4606.22.jpg" alt="" width="487" height="376" border="0" /></a></p>
<p>Create a compliance rule as below</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8507.23.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8507.23.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8507.23.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8507.23.jpg" alt="" width="444" height="432" border="0" /></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/51/67/2161.24.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2161.24.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2161.24.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2161.24.jpg" alt="" width="460" height="436" border="0" /></a></p>
<p>Next go to configuration baseline, create a new configuration baseline and add &ldquo;Configuration Item&rsquo; to<br />this baseline and deploy it to a collection, like we did in previous example</p>
<p>&nbsp;</p>
<p><span style="font-size: large;">&nbsp;<strong>Configuration Packs</strong></span></p>
<p>Configuration Packs are predefined configuration baselines that you can use to deploy for OS and applications e.g.&nbsp; Exchange Server 2010, Windows Server 2008,<br />Windows 7, IE, Microsoft office that contains the configuration items you want to monitor.</p>
<p>&nbsp;You can get these configuration packs from:</p>
<p><a href="http://technet.microsoft.com/en-us/solutionaccelerators/cc835245.aspx">http://technet.microsoft.com/en-us/solutionaccelerators/cc835245.aspx</a></p>
<p><a href="http://pinpoint.microsoft.com/en-US/applications/microsoft-security-compliance-manager-12884902442">http://pinpoint.microsoft.com/en-US/applications/microsoft-security-compliance-manager-12884902442</a></p>
<p><strong>&nbsp;</strong>Download Security Compliance Manager (SCM) from the above site and install it on any workstation/server.</p>
<p>Launch SCM and export the desired Baseline to SCCM DCM 2007 and then go to SCCM 2012 console and import<br />it under configuration baseline and tweak it based on your requirements.</p>
<p>Deploy it to devices through collections and evaluate on a defined schedule.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2500.25.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2500.25.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/2500.25.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/2500.25.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-size: large;"><strong>Few Log files to review the record process information on the site server and on the client</strong></span></p>
<p><strong>&nbsp;</strong></p>
<p>DCMAgent.log:&nbsp; Records high-level information about the evaluation, conflict reporting, and remediation of configuration items and applications.</p>
<p>CIAgent.log: Records details about the process of remediation and compliance for compliance settings, software updates, and application management.&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g.&nbsp;from&nbsp;&nbsp;our <strong>example 1</strong> above, CI agent job is initiated with job id 5851XXX for one target machine &nbsp;(<strong>DCMAgent.log on client</strong>) </span></p>
<p style="padding-left: 60px;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5148.one.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5148.one.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/5148.one.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/5148.one.jpg" alt="" width="773" height="22" border="0" /></a></p>
<p><span style="font-size: x-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mspaint baseline is targeted to this collection for evaluation (<strong>CMAgent.log on client</strong></span>)</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8117.two.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8117.two.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/8117.two.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/8117.two.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>CMReporting.log :&nbsp; Records information about reporting policy platform results into state messages for configuration items.</p>
<p>&nbsp;DcmWmiProvider.log Records information about reading configuration item synclets from Windows Management Instrumentation (WMI).&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>Technical Reference for Log Files in Configuration Manager &amp; Compliance Settings</p>
<p><a href="http://technet.microsoft.com/en-us/library/hh427342.aspx#BKMK_ClientInstallLog">http://technet.microsoft.com/en-us/library/hh427342.aspx#BKMK_ClientInstallLog</a></p>
<p><a href="http://technet.microsoft.com/en-us/library/gg681958.aspx">http://technet.microsoft.com/en-us/library/gg681958.aspx</a></p>
<p>&nbsp;</p>
<p>&nbsp;DISCLAIMER: This posting is provided "AS IS" with no warranties and&nbsp;confers no rights&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Configuration Manager 2012 setup error, Setup is unable to connect to SQL Server with the connection information provided</title>
      <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/configuration-manager-2012-setup-error-setup-is-unable-to-connect-to-sql-server-with-the-connection-information-provided</link>
      <pubDate>Wed, 04 Jul 2012 07:09:00 GMT</pubDate>
      <dc:creator><![CDATA[satish pandita]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/2012/07/04/configuration-manager-2012-setup-error-setup-is-unable-to-connect-to-sql-server-with-the-connection-information-provided/</guid>
      <description><![CDATA[Configuration Manager 2012 Setup&nbsp;error...]]></description>
      <content:encoded><![CDATA[<p>Configuration Manager 2012 Setup&nbsp;error :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Setup is unable to connect to SQL Server with the connection information provided</p>
<p>You have already&nbsp;verified that&nbsp;all SQL and SCCM prerequisites are in place and next&nbsp;when you run setup you get the followng error:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/0257.image1.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/0257.image1.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/0257.image1.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/0257.image1.jpg" /></a></p>
<p></p>
<p>The possible&nbsp;cause for this error&nbsp;can be&nbsp;because of the following:</p>
<ul>
<li>During the SQL install, you created a named instance that you want to use for SCCM</li>
<li>You have a default SQL instance installed and you created another named instance &nbsp;that you want to use for SCCM</li>
</ul>
<p>The reason&nbsp;for this error is because&nbsp;Configuration Manager 2012, does not support dynamic ports, so you need to go to SQL Server Configuration Manager and set that named instance to use the static Port and restart the&nbsp;SQL Server&nbsp;Service.</p>
<p></p>
<p>&nbsp;<span style="text-decoration: underline;">Here are some more details on this:</span></p>
<p></p>
<p>Creating a named instance is fine, and I personally&nbsp; prefer using named instance as a better isolation.</p>
<p>When you install SQL and you create a default instance, it automatically assigns a static TCP Port 1433&nbsp;for this, and if you create another named&nbsp;instance or you installed SQL with a named instance instead of a default instance, In this case the&nbsp;named instances are &nbsp;configured for dynamic ports by default during installation.&nbsp;</p>
<p>&nbsp;As you can see in example below, for named instance SCCM_DB1, under "<span style="text-decoration: underline;">TCP/IP properties</span>"&nbsp;a TCP Dynamic Port 50705&rdquo;&nbsp; for "<span style="text-decoration: underline;">IP All</span>" and&nbsp; Dynamic Port 0" for other IP's was assigned. You can check this configuration by going to &ldquo;SQL Server Network Configuration-&gt;Protocols for Named_Instance (the sql instance name you gave)-&gt;TCP/IP-&gt;IP addresses</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4786.image11.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4786.image11.jpg"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/51/67/4786.image11.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-51-67/4786.image11.jpg" /></a>&nbsp;</p>
<p>To fix this issue,&nbsp;do &nbsp;the following changes under SQL Server Network Configuration-&gt;Protocols for Named_Instance (the sql instance name you gave)-&gt;TCP/IP-&gt;IP addresses&nbsp;</p>
<ul>
<li>Delete&nbsp;0 or any other port number e.g 50705&nbsp; from "<span style="text-decoration: underline;">TCP Dynamic Ports</span>" Dialog box, Do this for all IP's e.g&nbsp;for "IPAll", "IPV6" , basically do this for each ip address listed&nbsp;in "IP Address" tab under &nbsp;"TCP/IP Properties"</li>
<li>Next in the "<span style="text-decoration: underline;">TCP Port</span>" dialog box &nbsp;assign a static port&nbsp;for all IP's that contain IP address of your&nbsp;sql server&nbsp;the named instance</li>
<li>Under "SQL Server Configuration manager-&gt;SQL Server Services" Restart the&nbsp;service "SQLServer (instance Name)" and ensure&nbsp; "SQL Browser" service&nbsp;is running</li>
</ul>
<p>For more details on&nbsp; how to configure a SQL server to listen on a specific TCP port see&nbsp;&nbsp;<a href="http://msdn.microsoft.com/en-us/library/ms177440.aspx">http://msdn.microsoft.com/en-us/library/ms177440.aspx</a></p>
<p>&nbsp;DISCLAIMER: This posting is provided "AS IS" with no warranties and&nbsp;confers no rights&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>SCOM 2012 Upgrade Process  **Lessons Learned during my Upgrade Process**</title>
      <link>https://docs.microsoft.com/archive/blogs/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/scom-2012-upgrade-process-lessons-learned-during-my-upgrade-process</link>
      <pubDate>Tue, 13 Mar 2012 10:22:00 GMT</pubDate>
      <dc:creator><![CDATA[satish pandita]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/scom_2012_upgrade_process__lessons_learned_during_my_upgrade_process/2012/03/13/scom-2012-upgrade-process-lessons-learned-during-my-upgrade-process/</guid>
      <description><![CDATA[&nbsp;
The attached document in this blog covers&nbsp;SCOM 2012 Upgrade process:
In this document...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p><span style="font-size: small;">The attached document in this blog covers&nbsp;SCOM 2012 Upgrade process:</span></p>
<p><span style="font-size: small;">In this document we are using a specific scenario that covers:</span></p>
<p>&nbsp;</p>
<ul>
<li><span style="font-size: small;">Current SCOM 2007 R2&nbsp; Infrastructure that is ready for upgrade.</span></li>
<li><span style="font-size: small;">Challenges with Current SCOM 2007 R2 Infrastructure.</span></li>
<li><span style="font-size: small;">Business Justification for SCOM 2012 Upgrade.</span></li>
<li><span style="font-size: small;">SCOM 2012 features.</span></li>
<li><span style="font-size: small;">Upgrade Process in our lab</span></li>
<li><span style="font-size: small;">Upgrade steps with screen captures &amp; issues experienced during&nbsp;my upgrade Process in the lab</span></li>
</ul>
<p><span style="font-size: xx-small;">Note: SCOM 2012 RC bits were used in this scenario</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/28/20/95/SCOM%202012%20Upgrade%20Documentv2.pdf" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-28-20-95/SCOM-2012-Upgrade-Documentv2.pdf">SCOM 2012 Upgrade Documentv2.pdf</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>