Skip to content

Instantly share code, notes, and snippets.

Wagner Silveira wsilveiranz

Block or report user

Report or block wsilveiranz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View apim-build-pipeline.yml
resources:
- repo: self
pool:
name: Hosted
steps:
- task: AzureResourceGroupDeployment@2
displayName: >-
Azure Deployment: Deploy API products
inputs:
azureSubscription: <service connection>
View APIM_RelayToken_Policy.xml
<policies>
<inbound>
<set-backend-service base-url="*** add your wcf relay address here ***" />
<cache-lookup-value key="@("relaytoken")" variable-name="relaytoken" />
<choose>
<when condition="@(!context.Variables.ContainsKey("relaytoken"))">
<set-variable name="resourceUri" value="@(context.Request.Url.ToString())" />
<!-- an accessKey entry must exist in NameValue -->
<set-variable name="accessKey" value="{{accessKey}}" />
@wsilveiranz
wsilveiranz / Set-LogicAppsState.ps1
Created Jan 7, 2018
Sets the state of all logic apps within a resource group.
View Set-LogicAppsState.ps1
param([string] $subscriptioname, [string] $resourcegroup, [string]$state)
Get-AzureRmSubscription -SubscriptionName $subscriptioname | Select-AzureRmSubscription
Find-AzureRmResource -ResourceGroupNameContains $resourcegroup -ResourceType Microsoft.Logic/workflows | ForEach-Object {Set-AzureRmLogicApp -ResourceGroupName $_.ResourceGroupName -Name $_.Name -State $state -Force}
You can’t perform that action at this time.