Posts

Showing posts from February, 2022

Gitlab - CICD to Azure App Service with an application .NET Framework

Image
Every development team has unique requirements that can make implementing an efficient deployment pipeline difficult on any cloud service. This is a process to prevents downtime:  Here is CICD script: variables: MSBUILD: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\MSBuild\\Current\\Bin\\msbuild.exe" SOLUTION: IProcessorSolution.sln WEBJOB_PROJECT: ".\\IProcessorPdfParser\\IProcessorPdfParser.csproj" DEV_PUBLISH_PROFILE: "IProcessorWebsiteStaging - Web Deploy" DEV_PUBLISH_PROFILE_WEBJOB_PROJECT: "IProcessorWebsiteStaging - Web Deploy.pubxml" DEV_DR_PUBLISH_PROFILE: "iprocessorwebsitestaging-dr - Web Deploy" DEV_DR_PUBLISH_PROFILE_WEBJOB_PROJECT: "iprocessorwebsitestaging-dr - Web Deploy.pubxml" PROD_DR_PUBLISH_PROFILE: "iprocessorwebsite-dr - Web Deploy" PROD_DR_PUBLISH_PROFILE_WEBJOB_PROJECT: "iprocessorwebsite-dr - Web Deploy.pubxml" stages: - build - deploy d...

How to setup P2S VPN to connect Azure SQL

Image
After successful building the VPN connection to Azure Environment by applying P2S VPN. This is a note what I did so that I can use it in the future.   Script Powersell to create SelfRoot & Client $cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature -Subject "CN=VNETROOT" -KeyExportPolicy Exportable -HashAlgorithm sha256 -KeyLength 2048 -CertStoreLocation "Cert:\CurrentUser\My" -KeyUsageProperty Sign -KeyUsage CertSign New-SelfSignedCertificate -Type Custom -DnsName TANLECLIENT -KeySpec Signature -Subject "CN=VNETCLIENT" -KeyExportPolicy Exportable -HashAlgorithm sha256 -KeyLength 2048 -CertStoreLocation "Cert:\CurrentUser\My" -Signer $cert -TextExtension @( "2.5.29.37={text}1.3.6.1.5.5.7.3.2" )   Generate and export certificates for P2S: PowerShell - Azure VPN Gateway | Microsoft Docs   Step-by-Step guide to Azure Point-to-Site VPN - Technical Blog | REBELADMIN ...