|
| 1 | +# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2 |
| 2 | +properties: |
| 3 | + configurationVersion: 0.2.0 |
| 4 | + ######################################## |
| 5 | + ### RESOURCES: System Configuration |
| 6 | + ######################################## |
| 7 | + resources: |
| 8 | + ######################################## |
| 9 | + ### OS Configurations |
| 10 | + ######################################## |
| 11 | + ### Enable: Developer Mode |
| 12 | + ### ------------------------------------- |
| 13 | + - resource: Microsoft.Windows.Developer/DeveloperMode |
| 14 | + directives: |
| 15 | + description: Enable Developer Mode |
| 16 | + # Requires elevation only for the set operation |
| 17 | + securityContext: elevated |
| 18 | + allowPrerelease: true |
| 19 | + settings: |
| 20 | + Ensure: Present |
| 21 | + ### Install Windows VirtualMachinePlatform |
| 22 | + ### ------------------------------------- |
| 23 | + - resource: PSDscResources/WindowsOptionalFeature |
| 24 | + directives: |
| 25 | + description: Install VirtualMachinePlatform |
| 26 | + securityContext: elevated |
| 27 | + settings: |
| 28 | + name: VirtualMachinePlatform |
| 29 | + ensure: Present |
| 30 | + ### Install WSL |
| 31 | + ### ------------------------------------- |
| 32 | + - resource: PSDscResources/WindowsOptionalFeature |
| 33 | + directives: |
| 34 | + description: Install WSL |
| 35 | + securityContext: elevated |
| 36 | + settings: |
| 37 | + name: Microsoft-Windows-Subsystem-Linux |
| 38 | + ensure: Present |
| 39 | + ### Configure Install Ubuntu |
| 40 | + ### ------------------------------------- |
| 41 | + - resource: PSDscResources/Script |
| 42 | + id: ubuntuwsl |
| 43 | + directives: |
| 44 | + description: Install Ubuntu for WSL |
| 45 | + settings: |
| 46 | + SetScript: | |
| 47 | + $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") |
| 48 | + wsl --install -d Ubuntu |
| 49 | + GetScript: return $false |
| 50 | + TestScript: return $false |
| 51 | + ######################################## |
| 52 | + ### Install CLIs, SDKs & Tools |
| 53 | + ######################################## |
| 54 | + ### Install DotNET SDK Preview |
| 55 | + ### ------------------------------------- |
| 56 | + - resource: Microsoft.WinGet.DSC/WinGetPackage |
| 57 | + id: dotnetsdk |
| 58 | + directives: |
| 59 | + description: Install DotNET SDK Preview |
| 60 | + # Requires elevation only for the set operation (i.e., installing the package) |
| 61 | + securityContext: elevated |
| 62 | + settings: |
| 63 | + id: Microsoft.DotNet.SDK.Preview |
| 64 | + ### Install Azure CLI |
| 65 | + ### ------------------------------------- |
| 66 | + - resource: Microsoft.WinGet.DSC/WinGetPackage |
| 67 | + id: azurecli |
| 68 | + directives: |
| 69 | + description: Install Azure CLI |
| 70 | + # Requires elevation only for the set operation (i.e., installing the package) |
| 71 | + securityContext: elevated |
| 72 | + settings: |
| 73 | + id: Microsoft.AzureCLI |
| 74 | + ### Install Azd |
| 75 | + ### ------------------------------------- |
| 76 | + - resource: Microsoft.WinGet.DSC/WinGetPackage |
| 77 | + id: Azd |
| 78 | + directives: |
| 79 | + description: Install Azd |
| 80 | + settings: |
| 81 | + id: Microsoft.Azd |
| 82 | + ### Install Docker Desktop |
| 83 | + ### ------------------------------------- |
| 84 | + - resource: Microsoft.WinGet.DSC/WinGetPackage |
| 85 | + id: docker |
| 86 | + directives: |
| 87 | + description: Install Docker Desktop |
| 88 | + # Requires elevation only for the set operation (i.e., installing the package) |
| 89 | + securityContext: elevated |
| 90 | + settings: |
| 91 | + id: Docker.DockerDesktop |
| 92 | + ### Install Microsoft Visual Studio Code |
| 93 | + ### ------------------------------------- |
| 94 | + - resource: Microsoft.WinGet.DSC/WinGetPackage |
| 95 | + id: vscode |
| 96 | + directives: |
| 97 | + description: Install Microsoft Visual Studio Code |
| 98 | + settings: |
| 99 | + id: Microsoft.VisualStudioCode |
| 100 | + ensure: Present |
| 101 | + ######################################## |
| 102 | + ### Install VSCode Extensions |
| 103 | + ######################################## |
| 104 | + ### Install VSCode Azure Developer CLI Extension |
| 105 | + ### ------------------------------------- |
| 106 | + - resource: Microsoft.VSCode.Dsc/VSCodeExtension |
| 107 | + id: azure-dev-cli-extension |
| 108 | + dependsOn: |
| 109 | + - vscode |
| 110 | + - docker |
| 111 | + directives: |
| 112 | + description: Install Azure Developer CLI Extension |
| 113 | + allowPrerelease: true |
| 114 | + settings: |
| 115 | + name: ms-azuretools.azure-dev |
| 116 | + exist: true |
| 117 | + ### Install VSCode WSL Extension |
| 118 | + ### ------------------------------------- |
| 119 | + - resource: Microsoft.VSCode.Dsc/VSCodeExtension |
| 120 | + id: wsl-extension |
| 121 | + dependsOn: |
| 122 | + - vscode |
| 123 | + - docker |
| 124 | + directives: |
| 125 | + description: Install WSL extension |
| 126 | + allowPrerelease: true |
| 127 | + settings: |
| 128 | + name: ms-vscode-remote.remote-wsl |
| 129 | + exist: true |
| 130 | + ### Install VSCode Dev Containers Extension |
| 131 | + ### ------------------------------------- |
| 132 | + - resource: Microsoft.VSCode.Dsc/VSCodeExtension |
| 133 | + id: devcontainers-extension |
| 134 | + dependsOn: |
| 135 | + - vscode |
| 136 | + - docker |
| 137 | + directives: |
| 138 | + description: Install Dev Containers extension |
| 139 | + allowPrerelease: true |
| 140 | + settings: |
| 141 | + name: ms-vscode-remote.remote-containers |
| 142 | + exist: true |
| 143 | + ### Install VSCode Docker Extension |
| 144 | + ### ------------------------------------- |
| 145 | + - resource: Microsoft.VSCode.Dsc/VSCodeExtension |
| 146 | + id: docker-extension |
| 147 | + dependsOn: |
| 148 | + - vscode |
| 149 | + - docker |
| 150 | + directives: |
| 151 | + description: Install Docker extension |
| 152 | + allowPrerelease: true |
| 153 | + settings: |
| 154 | + name: ms-azuretools.vscode-docker |
| 155 | + exist: true |
| 156 | + ### Install VSCode C# DevKit Extension |
| 157 | + ### ------------------------------------- |
| 158 | + - resource: Microsoft.VSCode.Dsc/VSCodeExtension |
| 159 | + id: c#-devkit-extension |
| 160 | + dependsOn: |
| 161 | + - vscode |
| 162 | + - docker |
| 163 | + directives: |
| 164 | + description: Install C# DevKit extension |
| 165 | + allowPrerelease: true |
| 166 | + settings: |
| 167 | + name: ms-dotnettools.csdevkit |
| 168 | + exist: true |
| 169 | + ### Install .NET MAUI Extension |
| 170 | + ### ------------------------------------- |
| 171 | + - resource: Microsoft.VSCode.Dsc/VSCodeExtension |
| 172 | + id: dotnet-maui-extension |
| 173 | + dependsOn: |
| 174 | + - vscode |
| 175 | + - docker |
| 176 | + directives: |
| 177 | + description: Install .NET MAUI extension |
| 178 | + allowPrerelease: true |
| 179 | + settings: |
| 180 | + name: ms-dotnettools.dotnet-maui |
| 181 | + exist: true |
0 commit comments