- https://www.digwebinterface.com/
- tracert
- nslookup
- Azure Tips and Tricks: https://microsoft.github.io/AzureTipsAndTricks/
- For doing HTTPS you need to create and setup a certificate: https://feedback.azure.com/forums/169385-web-apps/suggestions/7379755-add-the-trafficmanager-net-ssl-certificate-to-we
- Always On is not a sticky setting: https://feedback.azure.com/forums/169385-web-apps/suggestions/34437961-the-always-on-setting-should-have-an-option-to-mak
- The Cloud_RoleName can be incorrect after a swap: microsoft/ApplicationInsights-dotnet-server#648
- TCP Connections Diagnostics: https://azure.github.io/AppService/2018/03/01/Deep-Dive-into-TCP-Connections-in-App-Service-Diagnostics.html
- https://github.com/Microsoft/binskim
- https://secdevtools.azurewebsites.net/helpcredscan.html
- DevOps Extension: https://marketplace.visualstudio.com/items?itemName=securedevelopmentteam.vss-secure-development-tools&targetId=f4973ace-8f75-492c-957a-d6acdbb943cd&utm_source=vstsproduct&utm_medium=ExtHubManageList
- https://www.sonarqube.org/
- https://lgtm.com/
- https://snyk.io/plans/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Stream stream = null; | |
| try | |
| { | |
| stream = File.Open(Path.Combine(this.applicationPath, fileName), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); | |
| using (var reader = new StreamReader(stream)) | |
| { | |
| stream = null; | |
| return reader.ReadToEnd(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // see https://morgansimonsen.com/2015/11/06/connecting-to-an-azure-ad-joined-machine-with-remote-desktop/ | |
| screen mode id:i:2 | |
| use multimon:i:0 | |
| desktopwidth:i:1920 | |
| desktopheight:i:1080 | |
| session bpp:i:32 | |
| winposstr:s:0,1,188,-1067,1554,-30 | |
| compression:i:1 | |
| keyboardhook:i:2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # read configuration file | |
| $configuration = Get-Content -Raw -Path $parametersFilePath | ConvertFrom-Json | |
| # generate intermediate ARM template parameters file with serialized JSON settings | |
| $armParametersFile = @{ | |
| "`$schema" = "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#"; | |
| "contentVersion" = "1.0.0.0"; | |
| "parameters" = New-Object psobject; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // HIGHLIGHTS: | |
| // - the httpclient should not be created on every request, it should be static | |
| // - HttpCompletionOption.ResponseHeadersRead to return before downloading the full file | |
| // see https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client | |
| // "HttpClient is intended to be instantiated once and re-used throughout the life of an application. | |
| // Especially in server applications, creating a new HttpClient instance for every request will exhaust the number of sockets available under heavy loads. | |
| // This will result in SocketException errors." | |
| namespace TryAzureCdn.WorkerRole | |
| { | |
| using System.Collections.Generic; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Notice the '' around the username to escape the $ sign | |
| $queueDefaultAssetsWebjobProjectPath = Resolve-Path -Path $queueDefaultAssetsWebjobProjectPath | |
| $arguments= "$queueDefaultAssetsWebjobProjectPath /p:Configuration=Release /p:DeployOnBuild=true /p:DeployTarget=MsDeployPublish /p:MsDeployServiceUrl=$($configuration.ApiPublishingUrl) '/p:UserName=$($configuration.ApiPublishingUserName)' /p:Password=$($configuration.ApiPublishingPassword) /p:DeployIisAppPath=$($configuration.ArmParameters.AppServiceApiName) /p:SkipExtraFilesOnServer=true" | |
| Write-Host "Publishing webjob 'QueueDefaultAssetsWebJob' with MSDeploy..." | |
| iex "&$msBuild $arguments" |