This repo contains various sample projects built for .NET Core.
To deploy these to azure (web apps for now), deployer.bat
is added. (Works on windows machine only)
- Local machine must be a windows machine (windows 10),
- .NET Core SDK (LTS 3.1) must be installed on the machine,
- Node.js must be installed on the machine
Open the deployer.bat
in an editor of your choice, set the values of following variables as per your requirement -
- If you want to conncet to Az using SPN,
- spn_id=
SPN Client ID
- spn_secret=
SPN Client Secret
- tenant_id=
Tenant ID
- spn_id=
- If you want to connect to Az with your account, replace
az login --service-principal -u %spn_id% -p %spn_secret% --tenant %tenant_id%
withaz login
- In either case, resource_group=
Resource group name
Go to root folder (dotnetted), open command prompt and run -
deployer project-folder-name webappname