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
| - name: Remove Preview URL from App Registration | |
| if: github.event_name == 'pull_request' && github.event.action == 'closed' | |
| run: | | |
| # Login to Azure | |
| az login --service-principal -u ${{ vars.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ vars.AZURE_TENANT_ID }} --allow-no-subscriptions | |
| APP_ID=${{ vars.APP_REGISTRATION_ID }} | |
| # Get the preview URL for this PR | |
| PR_NUMBER=${{ github.event.pull_request.number }} | |
| DEFAULT_HOSTNAME=$(az staticwebapp show --name ${{ vars.STATIC_WEBAPP_NAME }} --resource-group ${{ vars.STATIC_WEBAPP_RESOURCE_GROUP }} --query "defaultHostname" --subscription ${{ vars.STATIC_WEBAPP_SUBSCRIPTION }} -o tsv) |
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
| - name: Add Preview URL to App Registration | |
| if: github.event_name == 'pull_request' && github.event.action != 'closed' | |
| env: | |
| PREVIEW_URL: ${{ steps.builddeploy.outputs.static_web_app_url }} | |
| run: | | |
| # Login to Azure | |
| az login --service-principal -u ${{ vars.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ vars.AZURE_TENANT_ID }} --allow-no-subscriptions | |
| APP_ID=${{ vars.APP_REGISTRATION_ID }} | |
| NEW_URI="${{steps.builddeploy.outputs.static_web_app_url}}/login-redirect" |
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
| public class HourBookingDialog : AuthenticatedDialog | |
| { | |
| private readonly string _propNameModel = "HourBookingModel"; | |
| private readonly string _propNameCustomers = "Customers"; | |
| private readonly string _propNameProjects = "Projects"; | |
| public HourBookingDialog(IConfiguration configuration) : base (nameof(HourBookingDialog), configuration["ConnectionName"]) | |
| { | |
| var waterFallSteps = new WaterfallStep[] | |
| { |
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
| #Libraries | |
| import sys | |
| import RPi.GPIO as GPIO # Importeer de GPIO bibliotheek. | |
| from time import sleep ## Importeer de bibliotheek voor tijdfuncties | |
| seconds = 5 | |
| # Set the number of seconds to the provided argument | |
| if len(sys.argv) > 2: | |
| seconds = sys.argv[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
| function Remove-LoadBalancerDebuggerNatPools | |
| { | |
| param( | |
| [string]$ResourceGroupName, | |
| [string]$LoadBalancerName | |
| ) | |
| Write-Information "Removing NAT pools with 'debugger' in the name from load balancer $LoadBalancerName" | |
| $loadBalancer = Get-AzureRmLoadBalancer -Name $LoadBalancerName -ResourceGroupName $resourceGroupName | |
| $pools = $loadBalancer.InboundNatPools | Where-Object { $_.Name -match "debugger" } |
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 Remove-VMScaleSetDebuggerNatPools { | |
| param ( | |
| [string]$ResourceGroupName, | |
| [string]$VMScaleSetName | |
| ) | |
| Write-Information "Removing NAT pools with 'debugger' in the name from VM scale set $VMScaleSetName" | |
| $vmScaleSet = Get-AzureRmVmss -ResourceGroupName $ResourceGroupName -VMScaleSetName $VMScaleSetName | |
| $natPools = $vmScaleSet.VirtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations.ipConfigurations.LoadBalancerInboundNatPools | |
| $debugPools = $natPools | Where-Object { $_.Id -match "Debugger" } |
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
| param | |
| ( | |
| [Parameter(Mandatory=$true, HelpMessage="Enter Azure Subscription id. You need to be Subscription Admin to execute the script")] | |
| [string] $subscriptionId, | |
| [Parameter(Mandatory=$true, HelpMessage="Provide a password for SPN application that you would create")] | |
| [securestring] $passwordparam, | |
| [Parameter(Mandatory=$false, HelpMessage="Provide a SPN role definition")] | |
| [string] $spnRole = "owner" |
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
| Verifying that "jsiegmund.id" is my Blockstack ID. https://onename.com/jsiegmund |
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
| #r "D:\Program Files (x86)\SiteExtensions\Functions\0.3.10261\bin\Microsoft.Azure.WebJobs.Extensions.NotificationHubs.dll" | |
| using System; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Linq; | |
| using Microsoft.Azure.NotificationHubs; | |
| using Microsoft.Azure.WebJobs; | |
| using Microsoft.Azure.WebJobs.Extensions; | |
| public static void Run(string inputEventMessage, string inputBlob, IBinder binder, out string outputBlob, TraceWriter log) |