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
namespace YourNamespace | |
{ | |
public abstract class BaseResponse | |
{ | |
public bool IsError { get; } | |
protected BaseResponse(bool isError) | |
{ | |
IsError = isError; | |
} |
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
$user = 'user' | |
$pass = 'pass' | |
$uri = '<url>' | |
$pair = "$($user):$($pass)" | |
$encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair)) | |
$basicAuthValue = "Basic $encodedCreds" |
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
using Azure.Security.KeyVault.Certificates; | |
using Azure.Security.KeyVault.Secrets; | |
using Microsoft.Identity.Client; | |
using System; | |
using System.Linq; | |
using System.Security.Cryptography.X509Certificates; | |
namespace Sii.CloudSync.Core.Infrastructure.Configuration.AzureAD | |
{ | |
internal class ConfidentialClientApplicationProvider : IDisposable |
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
#Requires -RunAsAdministrator | |
<# | |
.SYNOPSIS | |
Creates a Self Signed Certificate for use in server to server authentication | |
.DESCRIPTION | |
.EXAMPLE | |
.\Create-SelfSignedCertificate.ps1 -CommonName "MyCert" -StartDate 2015-11-21 -EndDate 2017-11-21 | |
This will create a new self signed certificate with the common name "CN=MyCert". During creation you will be asked to provide a password to protect the private key. | |
.EXAMPLE | |
.\Create-SelfSignedCertificate.ps1 -CommonName "MyCert" -StartDate 2015-11-21 -EndDate 2017-11-21 -Password (ConvertTo-SecureString -String "MyPassword" -AsPlainText -Force) |
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
# WARNING! This script deletes data! | |
# Run only if you do not have systems | |
# that pull images via manifest digest. | |
Param( | |
[Parameter(Mandatory=$true)] | |
$registry, | |
[Parameter(Mandatory=$true)] | |
$repository, | |
[switch] |
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
# .NET Core Function App to Windows on Azure | |
# Build a .NET Core function app and deploy it to Azure as a Windows function App. | |
# Add steps that analyze code, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/dotnet-core | |
trigger: | |
branches: | |
include: | |
- master | |
- develop |
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
trigger: | |
branches: | |
include: | |
- master | |
- develop | |
paths: | |
include: | |
- src/SPA/* | |
exclude: | |
- src/SPA/README.md |
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
#=============Defining All Variables========= | |
$location = 'West Europe' | |
$resourceGroupName = 'functionrgnew1' | |
$storageAccount = 'functionsasdnewqq1' | |
$subscriptionId = '<id>' | |
$functionAppName = 'functionapppsdfsdnew1' | |
$appInsightsName = 'appinsightnameprdad' | |
$appServicePlanName = 'functionappplan' | |
$appPackage = '.\package.zip' | |
$tier = 'Dynamic' |