In this tutorial, you'll learn how to deploy a .NET Core web application to IIS on an Azure Virtual Machine using Jenkins, Azure CLI, and GitHub. We will walk you through the complete Jenkins pipeline stages, including pull, restore, build, test, upload, and deploy. Additionally, you'll learn how to create an Azure Windows VM, set up an Azure storage account, and create an Azure service principal.
Topics Covered:
Setting up Jenkins pipeline for .NET Core applications
Creating an Azure Windows Virtual Machine
Configuring Azure Storage Account
Setting up Azure Service Principal
Deploying applications to IIS on Azure VM
GitHub Repository:
🔗 GitHub Link : github.com/tak...
Branch Name: Azurevm
Setup WinRM Command:
powershell
Copy code
Enable WinRM
Enable-PSRemoting -Force
Configure WinRM to allow basic authentication and set the firewall rule
winrm set winrm/config/service/auth @{Basic="true"}
winrm set winrm/config/service @{AllowUnencrypted="true"}
New-NetFirewallRule -Name "WinRM" -DisplayName "WinRM" -Enabled True -Profile Any -Action Allow -Direction Inbound -Protocol TCP -LocalPort 5985
Set the TrustedHosts list
Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value '*'
Get Secret Key and Access Key Command:
az ad sp create-for-rbac --name "spdotnetapp" --role contributor --scopes /subscriptions/subscriptionid
Follow me for more tutorials on DevOps, Cloud Computing, and Software Development! Don't forget to like, share, and subscribe!
Негізгі бет Deploy .NET Core Web App to IIS on Azure VM using Jenkins, Azure CLI, and GitHub
Пікірлер: 3