This file contains 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
public static IHostBuilder CreateHostBuilder(string[] args) => | |
Host.CreateDefaultBuilder(args) | |
.ConfigureAppConfiguration((webBuilder) => { | |
var config = webBuilder.Build(); | |
var mode = (KeyVaultUsage)Enum.Parse(typeof(KeyVaultUsage), (config["Secrets:Mode"])); | |
if (mode != KeyVaultUsage.UseLocalSecretStore) | |
{ | |
KeyVaultOptions kvc = config.GetSection("Secrets").Get<KeyVaultOptions>(); | |
if (mode == KeyVaultUsage.UseClientSecret) | |
{ |
This file contains 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
public static IHostBuilder CreateHostBuilder(string[] args) => | |
Host.CreateDefaultBuilder(args) | |
.ConfigureWebHostDefaults(webBuilder => | |
{ | |
webBuilder.UseStartup<Startup>(); | |
}); |
This file contains 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
{ | |
"apiVersion": "2018-06-01", | |
"type": "Microsoft.Compute/virtualMachines/extensions", | |
"name": "[concat(parameters('VM_Name'),'/config-server')]", | |
"location": "[resourceGroup().location]", | |
"dependsOn": [ | |
"[concat('Microsoft.Compute/virtualMachines/', parameters('VM_Name'))]" | |
], | |
"tags": { | |
"displayName": "config-server" |
This file contains 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
{ | |
"apiVersion": "2018-06-01", | |
"type": "Microsoft.Compute/virtualMachines/extensions", | |
"name": "[concat(parameters('VM_Name'),'/config-server')]", | |
"location": "[resourceGroup().location]", | |
"dependsOn": [ | |
"[concat('Microsoft.Compute/virtualMachines/', parameters('VM_Name'))]" | |
], | |
"tags": { | |
"displayName": "config-server" |
This file contains 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
<# | |
.SYNOPSIS | |
This function gives some cheap flattery. | |
.DESCRIPTION | |
Use this command to give some cheap flattery. the name parameter is mandatory | |
.PARAMETER name | |
Specify the name that should be used for the compliment |
This file contains 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
Process { | |
if ($PSCmdlet.ShouldProcess($name)) { | |
Write-Host "You are great, $name" | |
} | |
} |
This file contains 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
<# | |
.SYNOPSIS | |
This function gives some cheap flattery. | |
.DESCRIPTION | |
Use this command to give some cheap flattery. the name parameter is mandatory | |
.PARAMETER name | |
Specify the name that should be used for the compliment | |
.EXAMPLE |
This file contains 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 new-compliment { | |
param( | |
$name | |
) | |
Write-Host "You are great, $name" | |
} |
This file contains 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
# | |
# Module manifest for module 'au.com.kloud.demo' | |
# | |
# Generated by: Ward van Besien | |
# | |
# Generated on: 04/03/18 | |
# | |
@{ |