Posts

Showing posts from February, 2018

Windows Server 2016 Enable file downloads in Internet Explorer

If you have just created a cloud server on Microsoft Windows but are having problems downloading files from your server, you might need to enable file downloads in Internet Explorer. Microsoft disabled file downloads by default in some versions of Internet Explorer as part of its security policy. To allow file downloads in Internet Explorer, follow these steps. Open Internet Explorer. From the  Tools  menu, select  Internet Options . In the Internet Options dialog box, click the  Security  tab. Click  Custom Level . In the Security Settings dialog box, scroll to the  Downloads  section. Under  File download , select  Enable , and then click  OK . In the confirmation dialog box, click  Yes . Click  OK > Apply > OK . Now you will be prompted for file downloads.

Download and install TFS 2017 Build Agent

1. Goto your TFS link http://onlinetfsserver.com:8080/tfs  (replace onlinetfsserver with your tfs server link. 2. select the project. 3. GoTo builds. 5. Goto Settings menu option. 6. Select Agents Pools submenu. 7. Click on " Download Agent" Button. 8. Once Agent gets downloaded unzip it and follow the instruction on the download agent page. Create the agent PS C:\> mkdir agent ; cd agent PS C:\agent> Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\vsts-agent-win7-x64-2.112.0.zip", "$PWD") Configure the agent detailed instructions PS C:\agent> .\config.cmd Optionally run the agent interactively If you didn't run as a service above: PS C:\agent> .\run.cmd That's it!

How to allow incoming web traffic to a web server in an Azure VM

In the Azure Portal 1. Select Left Menu => Virtaul Machines a. Select the Virtual Machine. b. In the setting tab of virtual machine go to networking option. c. click on add Inbound port. i. In Name option enter Web or HTTP. ii. Source=>any or Internet iii.Source port ranges=>*(important!). iv.Destination =>Any v. Protocol=>any or TCP vi.Action=>Allow. vii.Destination port range: 80(web server's configured port) viii.leave other option to their default. d.Now use http://VMpublicIP/ in internet browser. (VMPublicIp is actually your Azure VM public IP. )you should be able to access the web site from Azure VM. For more details below microsoft link can be used. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal

Docker unable to pull image due to firewall

1. I was facing issue with firewall blocking docker pull. 2. I tried out but was not able to fix the issue using below logic I used link to read more about it. https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon but basically i used below statement from powershell command to setup environment variable. [Environment]::SetEnvironmentVariable(“HTTP_PROXY”, “http://usernamewithoutdomaintag:passwordwithoutspecialcharacter@proxywithportnumberinnumericformonly”, [EnvironmentVariableTarget]::Machine) [Environment]::SetEnvironmentVariable(“HTTPS_PROXY”, “http://usernamewithoutdomaintag:passwordwithoutdomaintag@proxywithportnumberinnumericformonly”, [EnvironmentVariableTarget]::Machine) you can check Windows Environment variables and you can see these values setup as environment variables. docker pull started working but the issue is my username and password is visible to all the admin users on that machine because it's direct

Steps to run Container on Azure.

Steps to run Container on Azure. 1. Go To Virtual machine option 2. Search for windows container 3. select Windows Server 2016 version 1709 (this server don't have any GUI and we have to select as it's a lot faster then it's GUI brother. 4. Create VM. Make sure select VM option using SSD. 5. Once VM created in Azure click on Connect. 6. Login using the credential provided (while creating VM). 7. Open Powershell using Command Powershell. 8. Run Docker using  command Start-Service Docker 9. see docker images already installed using command => docker images 10.pull new images. 11. run command a) docker pull microsoft/aspnet 12. run command a) docker pull microsoft/mssql-server-windows-developer 13. Install docker Compose on the container using below powershell command.            a) Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.19.0-rc3/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\dock