Month: April 2017

Capture IIS Network Traffic in Fiddler

Nice thought

Simplifying Complication

I have an IIS application that is querying Azure Active Directory Graph API from the server. I wanted to capture what is requests are happening using the client API. By default Fiddler does not capture these requests. Fiddler inserts itself into the WinINET layer as a proxy which is bypassed by IIS outgoing traffic.

To capture these requests coming from an IIS application pool. Add to your web.config after the <configSections> element:

  <system.net>
    <defaultProxy enabled="true">
      <proxy proxyaddress="http://127.0.0.1:8888" bypassonlocal="False"/>
    </defaultProxy>
  </system.net>

where

image

This can be found in the Fiddler documentation.

Happy web traffic debugging!

View original post

Advertisements

Creating Windows VM on AWS and Storage Pool

Nice Thought.

geekdudes

Services-EC2-Instances-Launch Instance-choose appropriate image

1.PNG2.PNG3.PNG4.PNG

Optionally, add tags

5.PNG

Enable RDP access

6.PNG

Choose whether to create new key pair or use existing one-then launch instance and download it

Connecting to Windows server VM

Actions-Get Windows Password

7.png

Browse to downloaded file

8

Click Decrypt password

910

Now we have credentials to log in to Windows server

Creating software RAID

Because i added additional 4 disk,i can create RAID 1,for example

Bring disk on-line and initialize it:

Get-Disk | Where-Object IsOffline –Eq $True | Set-Disk –IsOffline $False
Get-Disk | ?{$_.number -ne 0}| Initialize-Disk -PartitionStyle GPT

Create storage pool

New-StoragePool -FriendlyName 'pool' -PhysicalDisks (Get-PhysicalDisk -CanPool $true) -StorageSubSystemFriendlyName (Get-StorageSubSystem).FriendlyName

Create new virtual disk:

New-VirtualDisk -FriendlyName "mydisk"  -StoragePoolFriendlyName "pool" -Size 16GB -ProvisioningType Thin -ResiliencySettingName Mirror

Initilize and format virtual disk:

Initialize-Disk -Number (Get-VirtualDisk -FriendlyName "mydisk" | Get-Disk).Number
New-Partition -DiskNumber (Get-VirtualDisk -FriendlyName "mydisk" | Get-Disk).Number -UseMaximumSize –AssignDriveLetter
Format-Volume -DriveLetter D -FileSystem NTFS -NewFileSystemLabel "DataStore"

11.png

View original post

Creating VM in AWS

Awesome

geekdudes

In AWS click EC2 under Compute

1.png

Launch Instance

2.png

Choose Amazon Machine Image (i chose Amazon Linux)

3.PNG

Select Instance

4.png

Choose subnet (every Availability zone has its own subnet)

5.png

6.PNG

Choose HDD size and type (General Purpose SSD (IO1)-used for VM with high Input-Output)

7.png

Add tag (machine name,creator,owner….)

8.png

9.PNG

Consider security group as a firewall (choose which services to enable and access to it (source and destination IP)

10.PNG

Create new key pair (public and private key) click download

11.png

12.PNG

13.PNG

View original post

Adding volume to AWS VM

geekdudes

 

Services-EC2-Instances-Volumes

1.PNG

Create volume

2.png

Chose Volume Type and size

 

3

Then in actions menu choose Attach Volume

 

4.png

Choose instance and click attach

 

5

Now connect to VM and type lsblk to check if drive is initialized on guest OS

6.pngCreate file system and mount drive

mkfs –t ext4 /dev/xvdf
mkdir /mounts
mount /dev/xvdf /mounts

View original post

Azure – Create a windows VM from a generalized image

Manjunath Rao

This blog shows you how to create a windows VM from a  generalized image. This uses un-managed Azure disks.

For this example, I will be using resources deployed on Azure. i.e., generalize an Azure VM, create a image out of it and then create a new Azure VM using the image.

Below are the steps:

  1. Generalize the VM
  2. Capture a VM image from a generalized Azure VM, that we obtain from Step 1
  3. Create a VM from a generalized VHD image in a storage account, that we obtained from step 2

Part 1: Generalize the VM

  1. Remote Desktop to the Azure virtual machine
  2. **Important** Before running the “Sysprep.exe”. Delete the “unattend.xml” file from the “C:WindowsPanther” folder. If you do not do this, you will encounter “OS Provision time out” exception while creating the VM from this image.

    This is due to the fact that when an image is deployed the…

View original post 384 more words

SUBSCRIPTION MODEL

Great Post.

By
Sheikvara
+919840688822, +919003270444

NileBride

Changes can be pushed to Subscribers on demand, continuously, or on a scheduled basis.

The Distribution Agent or Merge Agent runs at the Distributor.

Pull subscriptions allow the user at the Subscriber to determine when the data changes are synchronized.

The Distribution Agent or the Merge Agent runs at the Subscriber.

View original post