This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Fetch a secret from an Azure Key Vault using GitHub Actions with a Federated OIDC User-Assigned Managed Identity | |
| on: [workflow_dispatch] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| build: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Create a workload identity based on an existing SP | |
| # STEP 1 - Create a workload identity | |
| # Define variables for your GitHub username and your repository name. | |
| # !!! IMPORTANT !!!---------->>> Make sure to change all parameters in brackets <> | |
| githubOrganizationName='<orgname>' # <-------------- UPDATE THIS VALUE | |
| githubRepositoryName='<github-repository-name>' # <-------------- UPDATE THIS VALUE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "param1": { | |
| "value": "value1" | |
| }, | |
| "param2": { | |
| "value": "value2" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bracketSpacing = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # For Windows/Ubuntu | |
| "editor.fontFamily": "CaskaydiaCove NF" | |
| # For Mac OS | |
| "editor.fontFamily": "MesloLGS NF, Regular" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #To move to a custom location | |
| #Terminate specific distribution | |
| wsl -t Ubuntu | |
| #Shutdown WSL (all) | |
| wsl --shutdown | |
| #export | |
| wsl --export Ubuntu s:\scratch\ubuntuwsl.tar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Update-EveryModule { | |
| <# | |
| .SYNOPSIS | |
| Updates all modules from the PowerShell gallery. | |
| .DESCRIPTION | |
| Updates all local modules that originated from the PowerShell gallery. | |
| Removes all old versions of the modules. | |
| .PARAMETER ExcludedModules | |
| Array of modules to exclude from updating. | |
| .PARAMETER SkipMajorVersion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.1 | |
| # Requires administrator | |
| # Checks for absences of environment variable and sets it if it's not present. | |
| properties: | |
| configurationVersion: '0.1.0' | |
| assertions: | |
| - resource: Environment | |
| directives: | |
| module: PSDscResources | |
| settings: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Refer to the following Microsoft Learn page to find out how to configure winget experimental | |
| # features: https://learn.microsoft.com/en-us/windows/package-manager/configuration/#enable-the-winget-configuration-experimental-configuration-preview-feature | |
| # Install a pre-release version of Winget | |
| $progressPreference = 'silentlyContinue' | |
| $latestWingetMsixBundleUri = $(Invoke-RestMethod https://github.com/microsoft/winget-cli/releases/1.6.1573-preview).assets.browser_download_url | Where-Object { $_.EndsWith(".msixbundle") } | |
| Write-Information "Installing winget..." | |
| $progressPreference = 'silentlyContinue' | |
| $latestWingetMsixBundleUri = "https://github.com/microsoft/winget-cli/releases/download/v1.6.1573-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| winget configure -f .\vscode.dsc.yaml --accept-configuration-agreements |