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
... | |
ENV ASPNETCORE_URLS="https://+;http://+" | |
ENV ASPNETCORE_Kestrel__Certificates__Default__Password="YourSecurePassword" | |
ENV ASPNETCORE_Kestrel__Certificates__Default__Path="my_web_domain.pfx" | |
... |
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
<PropertyGroup> | |
<!-- other properties here --> | |
<!-- SonarQube needs this --> | |
<ProjectGuid>{6224c484-3e23-4f06-a749-195c1e478110}</ProjectGuid> | |
</PropertyGroup> |
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
$cosmosServer = "mycosmos.documents.azure.com:10255" #Define the cosmos db hostname and port | |
$cosmosUser = "mycosmos-username" #Define username | |
$cosmosPassword = "mycosmos-password" #Defines password | |
$backupDir = "C:\cosmos-backup\$(Get-Date -Format yyyyMMddhhmmss)" | |
if(!(Test-Path $backupDir)){ | |
Write-Host "Creating temporary backup directory as $backupDir" | |
New-Item -Path $backupDir -ItemType Directory | Out-Null | |
} | |
Set-Location $backupDir |
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
// Adds Web Site | |
{ | |
"name": "[variables('webAppNameVar')]", | |
"type": "Microsoft.Web/sites", | |
"location": "[resourceGroup().location]", | |
"apiVersion": "2015-08-01", | |
"kind": "apiApp", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/serverfarms', parameters('appHostingPlanName'))]" | |
], |
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
# Deletes files from Azure Blob Storage | |
$blobList = Get-AzureStorageBlob -Container $containerName -Context $strContext | Where-Object {$_.LastModified -le ($(Get-Date).AddMinutes(-1))} | |
foreach($blob in $blobList){ | |
Write-Host "Removing blob $($blob.Name)" | |
Remove-AzureStorageBlob -Blob $($blob.Name) -Container $containerName -Context $strContext | |
} |
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
# Uploads file to Azure Container without preserving file hierarchy | |
$localDir = "C:\Source\ConsoleApp01" | |
foreach($file in (Get-ChildItem $localDir -File -Recurse)){ | |
Set-AzureStorageBlobContent -Blob $($file.Name) -Container $containerName -File $($file.FullName) -Context $strcontext | |
} | |
# Uploads file to Azure Container with preserving file hierarchy | |
$localDir = "C:\Source\ConsoleApp01" |
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
# Creates Azure Blob Storage Container | |
$strAccountKey = "yztbMxxxxxxxxxxxxxxxxx" # Replace this with your storage key | |
$strContext = New-AzureStorageContext -StorageAccountName $strAccountName -StorageAccountKey $strAccountKey | |
$containerName = "testfiles" | |
New-AzureStorageContainer -Name $containerName -Context $strcontext |
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 General Purpose Azure Storage Account | |
$strAccountName = "mobinotifysa" | |
$locationName = "east us" | |
$sku = "Standard_LRS" | |
New-AzureRmStorageAccount -ResourceGroupName $resourceGroupName -AccountName $strAccountName -SkuName $sku -Location $locationNam |
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
# Creates an azure resource group | |
$resourceGroupName = "mobiNotify-rg" | |
$locationName = "east us" | |
New-AzureRmResourceGroup -Name $resourceGroupName -Location $locationName |
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
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration> |