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 class Startup | |
{ | |
public void Configuration(IAppBuilder app) | |
{ | |
app.Use<LoggerMiddleware>(new TraceLogger()); | |
} | |
} |
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
Switch-AzureMode -Name AzureResourceManager |
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
Add-AzureAccount |
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
Select-AzureSubscription -SubscriptionName "AssinaturaQueVocePretendeUtilizar" |
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
New-AzureResourceGroup -Name TesteDeGrupoDeRecurso -location "East US" |
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
Register-AzureProvider -ProviderNamespace Microsoft.Network |
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
Register-AzureProviderFeature -ProviderNamespace Microsoft.Network -FeatureName azurednspreview |
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 Startup(IHostingEnvironment env, IApplicationEnvironment appEnv) | |
{ | |
// Setup configuration sources. | |
var builder = new ConfigurationBuilder(appEnv.ApplicationBasePath) | |
.AddJsonFile("config.json") | |
.AddEnvironmentVariables(); | |
Configuration = builder.Build(); | |
} |
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
"C:\Program Files (x86)\Windows Kits\8.1\bin\x86\makecert.exe" -sky exchange -r -n "CN=Nome do seu certificado" -pe -a sha256 -len 2048 -ss My "Nome do seu certificado" |
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
$Senha = ConvertTo-SecureString -String "informe sua senha aqui" -Force –AsPlainText | |
$CertificadoBase = Get-ChildItem -Path Cert:\CurrentUser\My | where {$_.Subject -match "nome identico do certificado base”} | |
Export-PfxCertificate -FilePath C:\nome do seu certificado base aqui.pfx -Password $Senha -Cert $CertificadoBase |