Skip to content

Instantly share code, notes, and snippets.

@ApenasGabs
Last active May 24, 2023 18:12
Show Gist options
  • Save ApenasGabs/1a309d1df9defbfb7d4f195ae4d1ee4e to your computer and use it in GitHub Desktop.
Save ApenasGabs/1a309d1df9defbfb7d4f195ae4d1ee4e to your computer and use it in GitHub Desktop.
Script config vm azure
New-Item "C:\DadosApp" -itemType Directory
Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install dotnet-6.0-sdk -y
choco install git -y
netsh advfirewall set allprofiles state off
cd C:\DadosApp
git clone https://gitlab.ic.unicamp.br/msft/appweb.git
cd C:\DadosApp\appweb
dotnet run --urls http://0.0.0.0:80
choco install sql-server-express sql-server-management-studio -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment