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 Move-ItemsRecursively { | |
| <# | |
| .SYNOPSIS | |
| Moves files and folders recursively, creating destination folders as needed. | |
| .DESCRIPTION | |
| This function moves all files and folders from a source path to a destination path, | |
| maintaining the directory structure. It creates any necessary nested folders at the destination. | |
| .PARAMETER SourcePath |
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
| [ | |
| { | |
| "src": "^(https:\\/\\/learn\\.microsoft\\.com)\\/fr-fr\\/(.*)", | |
| "dst": "$1/en-us/$2", | |
| "isEnabled": true, | |
| "isRegex": true | |
| }, | |
| { | |
| "src": "^(https:\\/\\/portal\\.azure\\.com)\\/(.*)", | |
| "dst": "https://preview.portal.azure.com/$2", |
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
| #!/bin/bash | |
| # Script to create a self-signed certificate for test.org | |
| # Set variables | |
| DOMAIN="test.org" | |
| DAYS_VALID=365 | |
| OUTPUT_DIR="./certs" | |
| # Create output directory if it doesn't exist | |
| mkdir -p $OUTPUT_DIR |
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
| [ | |
| { "test": "test" } | |
| ] |
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/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "deployLocation": { | |
| "type": "string" | |
| } | |
| }, | |
| "functions": [ | |
| ], |
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/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "adminUserName": { | |
| "type": "string" | |
| }, | |
| "adminPassword": { | |
| "type": "securestring" | |
| } |
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
| { | |
| "mode": "Indexed", | |
| "policyRule": { | |
| "if": { | |
| "allOf": [ | |
| { | |
| "field": "type", | |
| "equals": "Microsoft.Compute/virtualMachines" | |
| }, | |
| { |