Skip to content

Commit 8bcab06

Browse files
prestonr83gitbook-bot
authored andcommitted
GitBook: [master] 77 pages and 2 assets modified
1 parent 87ec3b8 commit 8bcab06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+346
-205
lines changed
File renamed without changes.

Azure/appinsights-stopped-metrics.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 79 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,79 @@
1-
# TIL
2-
3-
> Today I Learned
4-
5-
A collection of concise write-ups on small things I learn day to day across a
6-
variety of languages and technologies.
7-
8-
_34 TILs and counting..._
9-
10-
---
11-
12-
### Categories
13-
* [Azure](#Azure)
14-
* [DSC](#DSC)
15-
* [Misc](#Misc)
16-
* [Powershell](#Powershell)
17-
* [SQL](#SQL)
18-
* [Vscode](#VSCode)
19-
---
20-
### Azure
21-
22-
- [Application Insights stopped reporting metrics](Azure/appinsights-stopped-metrics.md)
23-
- [Appservice Vnet Integration](Azure/appservice-vnet-integration.md)
24-
- [Copying nested resources in ARM templates](Azure/arm-nested-resource-copy.md)
25-
- [Create SPN and Set Permissions for ADO](Azure/create-spn.md)
26-
27-
### DSC
28-
29-
- [Reset DSC Local Configuration Manager](DSC/reset-dsc.md)
30-
31-
### Misc
32-
33-
- [Reading](Misc/reading.md)
34-
- [Reset windows update](Misc/reset-windows-update.md)
35-
- [Tools](Misc/tools.md)
36-
37-
### Powershell
38-
39-
- [Azure Rest API Authentication Using AZ Profile Credentials](Powershell/azure-rest-azprofile.md)
40-
- [Capture 4xx/5xx Status Codes using Invoke-WebRequest](Powershell/capture-http-statuscode.md)
41-
- [Create Storage Space](Powershell/create-storage-space.md)
42-
- [Enable TLS 1.2 Support in Powershell script](Powershell/tls-support.md)
43-
- [Get All Disk Info for Storage Node](Powershell/get-diskinfo.md)
44-
- [Get Virtual Disks by Node in Failover cluster](Powershell/get-virtualdisks-in-cluster.md)
45-
- [PowershellGet Package Management](Powershell/add-powershellget.md)
46-
- [Publish and Connect to Azure Devops Package Repo for Powershell](Powershell/azure-devops-powershell-repo.md)
47-
- [Simple Retry Logic Loop](Powershell/simple-retry-logic.md)
48-
- [Windows Update Information](Powershell/windows-update-information.md)
49-
50-
### SQL
51-
52-
- [Add Login Mapping to Linked Server](SQL/add-login-mapping-for-linked-server.md)
53-
- [Adding SQL Users and Logins](SQL/sql-user-administration.md)
54-
- [Detailed Linked Server Report](SQL/detailed-link-server-report.md)
55-
- [Drop all tables (Azure Sql Compatible)](SQL/drop-all-tables-azure-sql.md)
56-
- [External Table Creation Script](SQL/create-external-tables-scripted.md)
57-
- [Find blocking spids/queries](SQL/find-root-blockers.md)
58-
- [Find connections and running queries](SQL/get-running-queries.md)
59-
- [Find SQL Linked Server Depdendencies](SQL/find-linked-dependencies.md)
60-
- [Get Backup or Restore Status](SQL/get-backup-or-restore-status.md)
61-
- [Get Database Sizes](SQL/get-databse-sizes.md)
62-
- [Get Waiting Tasks](SQL/waiting-tasks.md)
63-
- [List all Database filenames and locations](SQL/list-all-db-file-locations.md)
64-
- [List CLR References](SQL/list-clr-ref.md)
65-
- [List User Role Assignments](SQL/list-user-roles.md)
66-
- [SQL Diagnostic Connection](SQL/sql-diagnostic-connection.md)
67-
68-
### Vscode
69-
70-
- [VSCode Shortcuts](VSCode/vscode-select-all-matches.md)
71-
72-
## About
73-
74-
I shamelessly stole this idea from
75-
[thoughtbot/til](https://github.com/thoughtbot/til).
76-
77-
## Other TIL Collections
78-
79-
* [Today I Learned by Hashrocket](https://til.hashrocket.com)
80-
* [jwworth/til](https://github.com/jwworth/til)
81-
* [thoughtbot/til](https://github.com/thoughtbot/til)
1+
# TIL
2+
3+
> Today I Learned
4+
5+
A collection of concise write-ups on small things I learn day to day across a variety of languages and technologies.
6+
7+
_34 TILs and counting..._
8+
9+
### Categories
10+
11+
* [Azure](./#Azure)
12+
* [DSC](./#DSC)
13+
* [Misc](./#Misc)
14+
* [Powershell](./#Powershell)
15+
* [SQL](./#SQL)
16+
* [Vscode](./#VSCode)
17+
18+
### Azure
19+
20+
* [Application Insights stopped reporting metrics](azure/appinsights-stopped-metrics.md)
21+
* [Appservice Vnet Integration](azure/appservice-vnet-integration.md)
22+
* [Copying nested resources in ARM templates](azure/arm-nested-resource-copy.md)
23+
* [Create SPN and Set Permissions for ADO](azure/create-spn.md)
24+
25+
### DSC
26+
27+
* [Reset DSC Local Configuration Manager](dsc/reset-dsc.md)
28+
29+
### Misc
30+
31+
* [Reading](misc/reading.md)
32+
* [Reset windows update](misc/reset-windows-update.md)
33+
* [Tools](misc/tools.md)
34+
35+
### Powershell
36+
37+
* [Azure Rest API Authentication Using AZ Profile Credentials](powershell/azure-rest-azprofile.md)
38+
* [Capture 4xx/5xx Status Codes using Invoke-WebRequest](powershell/capture-http-statuscode.md)
39+
* [Create Storage Space](powershell/create-storage-space.md)
40+
* [Enable TLS 1.2 Support in Powershell script](powershell/tls-support.md)
41+
* [Get All Disk Info for Storage Node](powershell/get-diskinfo.md)
42+
* [Get Virtual Disks by Node in Failover cluster](powershell/get-virtualdisks-in-cluster.md)
43+
* [PowershellGet Package Management](powershell/add-powershellget.md)
44+
* [Publish and Connect to Azure Devops Package Repo for Powershell](powershell/azure-devops-powershell-repo.md)
45+
* [Simple Retry Logic Loop](powershell/simple-retry-logic.md)
46+
* [Windows Update Information](powershell/windows-update-information.md)
47+
48+
### SQL
49+
50+
* [Add Login Mapping to Linked Server](sql/add-login-mapping-for-linked-server.md)
51+
* [Adding SQL Users and Logins](sql/sql-user-administration.md)
52+
* [Detailed Linked Server Report](sql/detailed-link-server-report.md)
53+
* [Drop all tables \(Azure Sql Compatible\)](sql/drop-all-tables-azure-sql.md)
54+
* [External Table Creation Script](sql/create-external-tables-scripted.md)
55+
* [Find blocking spids/queries](sql/find-root-blockers.md)
56+
* [Find connections and running queries](sql/get-running-queries.md)
57+
* [Find SQL Linked Server Depdendencies](sql/find-linked-dependencies.md)
58+
* [Get Backup or Restore Status](sql/get-backup-or-restore-status.md)
59+
* [Get Database Sizes](sql/get-databse-sizes.md)
60+
* [Get Waiting Tasks](sql/waiting-tasks.md)
61+
* [List all Database filenames and locations](sql/list-all-db-file-locations.md)
62+
* [List CLR References](sql/list-clr-ref.md)
63+
* [List User Role Assignments](sql/list-user-roles.md)
64+
* [SQL Diagnostic Connection](sql/sql-diagnostic-connection.md)
65+
66+
### Vscode
67+
68+
* [VSCode Shortcuts](vscode/vscode-select-all-matches.md)
69+
70+
## About
71+
72+
I shamelessly stole this idea from [thoughtbot/til](https://github.com/thoughtbot/til).
73+
74+
## Other TIL Collections
75+
76+
* [Today I Learned by Hashrocket](https://til.hashrocket.com)
77+
* [jwworth/til](https://github.com/jwworth/til)
78+
* [thoughtbot/til](https://github.com/thoughtbot/til)
79+

SUMMARY.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Table of contents
2+
3+
* [TIL](README.md)
4+
* [Untitled](untitled.md)
5+
* [SQL](sql/README.md)
6+
* [SQL Diagnostic Connection](sql/sql-diagnostic-connection.md)
7+
* [Add Login Mapping to Linked Server](sql/add-login-mapping-for-linked-server.md)
8+
* [List all Database filenames and locations](sql/list-all-db-file-locations.md)
9+
* [List CLR References](sql/list-clr-ref.md)
10+
* [Find connections and running queries](sql/get-running-queries.md)
11+
* [Adding SQL Users and Logins](sql/sql-user-administration.md)
12+
* [External Table Creation Script](sql/create-external-tables-scripted.md)
13+
* [Get Database Sizes](sql/get-databse-sizes.md)
14+
* [Find blocking spids/queries](sql/find-root-blockers.md)
15+
* [Drop all tables \(Azure Sql Compatible\)](sql/drop-all-tables-azure-sql.md)
16+
* [Get Waiting Tasks](sql/waiting-tasks.md)
17+
* [Find SQL Linked Server Depdendencies](sql/find-linked-dependencies.md)
18+
* [List User Role Assignments](sql/list-user-roles.md)
19+
* [Get Backup or Restore Status](sql/get-backup-or-restore-status.md)
20+
* [Detailed Linked Server Report](sql/detailed-link-server-report.md)
21+
* [Powershell](powershell/README.md)
22+
* [Simple Retry Logic Loop](powershell/simple-retry-logic.md)
23+
* [PowershellGet Package Management](powershell/add-powershellget.md)
24+
* [Azure Rest API Authentication Using AZ Profile Credentials](powershell/azure-rest-azprofile.md)
25+
* [Enable TLS 1.2 Support in Powershell script](powershell/tls-support.md)
26+
* [Capture 4xx/5xx Status Codes using Invoke-WebRequest](powershell/capture-http-statuscode.md)
27+
* [Get Virtual Disks by Node in Failover cluster](powershell/get-virtualdisks-in-cluster.md)
28+
* [Windows Update Information](powershell/windows-update-information.md)
29+
* [create-storage-space](powershell/create-storage-space.md)
30+
* [Get All Disk Info for Storage Node](powershell/get-diskinfo.md)
31+
* [Publish and Connect to Azure Devops Package Repo for Powershell](powershell/azure-devops-powershell-repo.md)
32+
* [Azure](azure/README.md)
33+
* [Create SPN and Set Permissions for ADO](azure/create-spn.md)
34+
* [Application Insights stopped reporting metrics](azure/appinsights-stopped-metrics.md)
35+
* [Copying nested resources in ARM templates](azure/arm-nested-resource-copy.md)
36+
* [Appservice Vnet Integration](azure/appservice-vnet-integration.md)
37+
* [DSC](dsc/README.md)
38+
* [Reset DSC Local Configuration Manager](dsc/reset-dsc.md)
39+
* [Misc](misc/README.md)
40+
* [Tools](misc/tools.md)
41+
* [Reset windows update](misc/reset-windows-update.md)
42+
* [Reading](misc/reading.md)
43+
* [VSCode](vscode/README.md)
44+
* [VSCode Shortcuts](vscode/vscode-select-all-matches.md)
45+

VSCode/vscode-select-all-matches.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

azure/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Azure
2+

azure/appinsights-stopped-metrics.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Application Insights stopped reporting metrics
2+
3+
If Application Insights suddenly stops resporting metrics its probably hit its Daily cap. To check the status go to Usage and estimated costs and look at the Data volume trends and Daily cap settings.
4+

Azure/appservice-vnet-integration.md renamed to azure/appservice-vnet-integration.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,28 @@ When using gateway integration if you need to peer to another vnet the following
77
**!! Any changes to routes in the vnet integration may require a Network Sync performed on the App plan !!**
88

99
### Source Vnet
10+
1011
Ensure that the peering has the following set
12+
1113
* allowVirtualNetworkAccess: true
1214
* allowForwardedTraffic: true
1315
* allowGatewayTransit: true
1416

1517
### Destination Vnet
18+
1619
Ensure that the peering has the following set
20+
1721
* allowVirtualNetworkAccess: true
1822
* allowForwardedTraffic: true
1923
* useRemoteGateways: true
2024

2125
### App Plan Vnet Integration
26+
2227
Add the subnet range to the routes. Either manually within the networking on the App Plan or by using "Microsoft.Web/serverfarms/virtualNetworkConnections/routes" ARM type.
2328

2429
Example
2530

26-
```json
31+
```javascript
2732
{
2833
"name": "string",
2934
"type": "Microsoft.Web/serverfarms/virtualNetworkConnections/routes",
@@ -36,3 +41,4 @@ Example
3641
}
3742
}
3843
```
44+

Azure/arm-nested-resource-copy.md renamed to azure/arm-nested-resource-copy.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In order to copy nested resources in a template you need to move them out to be
44

55
The following example would fail validation.
66

7-
```json
7+
```javascript
88
{
99
"apiVersion": "2016-03-01",
1010
"name": "[parameters('webAppName')]",
@@ -41,7 +41,7 @@ The following example would fail validation.
4141

4242
Instead should be done like so
4343

44-
```json
44+
```javascript
4545
{
4646
"apiVersion": "2016-03-01",
4747
"name": "[parameters('webAppName')]",
@@ -74,4 +74,3 @@ Instead should be done like so
7474
}
7575
```
7676

77-

Azure/create-spn.md renamed to azure/create-spn.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Create the SPN
44

5-
```powershell
5+
```text
66
$DisplayName = "mySPN"
77
Add-Type -AssemblyName 'System.Web'
88
$password = "$([System.Web.Security.Membership]::GeneratePassword(20, 5))"
@@ -12,7 +12,7 @@ $spn = New-AzAdServicePrincipal -DisplayName $DisplayName -PasswordCredential $c
1212

1313
Set permissions on one more resource groups
1414

15-
```powershell
15+
```text
1616
# Define ResourceGroup Permissions
1717
$permissions = @{
1818
Reader = @('myappRG')
@@ -26,9 +26,9 @@ Foreach($role in $permissions.Keys){
2626
}
2727
```
2828

29-
Output settings for ADO
29+
Output settings for ADO
3030

31-
```powershell
31+
```text
3232
# Generate ADO Settings
3333
$ctx = get-azcontext
3434
$adoSettings = [PSCustomObject]@{
@@ -41,4 +41,5 @@ $adoSettings = [PSCustomObject]@{
4141
4242
# Output ADO Settings
4343
$adoSettings
44-
```
44+
```
45+

0 commit comments

Comments
 (0)