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
# oh my posh | |
oh-my-posh init pwsh | Invoke-Expression | |
# Terminal icons | |
Import-Module -Name Terminal-Icons | |
# PSReadLine | |
Import-Module PSReadLine | |
Set-PSReadLineOption -PredictionSource History |
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
(az group list | ConvertFrom-Json) ` | |
| select name ` | |
| foreach { (az monitor app-insights component show -g $_.name | ConvertFrom-Json) } ` | |
| select @{Name='name';Expression={$_.name}}, @{ Name = 'mode'; Expression = {$_.ingestionMode}}, @{ Name = 'IsClassic'; Expression = {$_.ingestionMode -ne 'LogAnalytics'}} |
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
(az group list | ConvertFrom-Json) | select name | foreach { (az monitor app-insights component show -g $_.name | ConvertFrom-Json) | select name} |
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
(az group list | ConvertFrom-Json) | Select-Object name |
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
targetScope = 'resourceGroup' | |
@allowed([ | |
'Primary' | |
'Secondary' | |
'Primary Read Only' | |
'Secondary Read Only' | |
]) | |
param connectionStringType string = 'Primary Read Only' |
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
param location string = resourceGroup().location | |
var suffix = guid('guid') | |
resource plan 'Microsoft.Web/serverfarms@2022-03-01' = { | |
name: 'plan-demo-lab-${suffix}' | |
location: location | |
kind: 'app' | |
sku: { | |
name: 'B1' |
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
<policies> | |
<inbound> | |
<base /> | |
<set-backend-service id="apim-generated-policy" backend-id="{your backend id}" /> | |
</inbound> | |
<backend> | |
<base /> | |
</backend> | |
<outbound> | |
<base /> |
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
resource firewall 'Microsoft.Sql/servers/firewallRules@2022-08-01-preview' = { | |
name: 'AllowAllWindowsAzureIps' | |
parent: sqlServer | |
properties: { | |
startIpAddress: '0.0.0.0' | |
endIpAddress: '0.0.0.0' | |
} | |
} |
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
param name string | |
resource app 'Microsoft.Web/sites@2021-03-01' existing = { | |
name: name | |
} | |
resource slotSetting 'Microsoft.Web/sites/config@2022-03-01' = { | |
name: 'slotConfigNames' | |
parent: app | |
properties: { |
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
resource plan 'Microsoft.Web/serverfarms@2022-03-01' = { | |
name: 'plan-demo-lab' | |
location: resourceGroup().location | |
kind: 'app' | |
sku: { | |
name: 'B1' | |
} | |
} | |
resource app 'Microsoft.Web/sites@2022-03-01' = { |
NewerOlder