@@ -55,7 +55,7 @@ By the end of the lab you will be able to:
55
55
az extension add --name nginx
56
56
` ` `
57
57
58
- 1. Create a new Azure Resource Group called ` < name> -workshop` , where ` < name> ` is your last name (or any unique value). This would hold all the Azure resources that you would create for this workshop.
58
+ 1. Create a new Azure Resource Group called ` < name> -n4a- workshop` , where ` < name> ` is your last name (or any unique value). This would hold all the Azure resources that you would create for this workshop.
59
59
60
60
Check out the available [Datacenter regions](https://azure.microsoft.com/en-us/explore/global-infrastructure/geographies/# geographies) and decide on a region that is closest to you and meets your needs.
61
61
@@ -64,10 +64,13 @@ By the end of the lab you will be able to:
64
64
I am located in Chicago, Illinois so I will opt to use ` Central US` as my Azure location.
65
65
66
66
` ` ` bash
67
- az group create --name < name> -workshop --location < MY_Location >
67
+ az group create --name < name> -n4a- workshop --location < My_Location >
68
68
69
69
# # example
70
- az group create --name s.dutta-workshop --location centralus
70
+ export MY_NAME=$( whoami)
71
+ export MY_LOCATION=centralus
72
+
73
+ az group create --name ${MY_NAME} -n4a-workshop --location ${MY_LOCATION}
71
74
` ` `
72
75
73
76
1. Make sure the new Azure Resource Group has been created by running below command.
@@ -97,7 +100,7 @@ aks2-subnet | 172.16.20.0/23 | AKS Cluster #2
97
100
98
101
` ` ` bash
99
102
# # Set environment variables
100
- export MY_RESOURCEGROUP=s.dutta -workshop
103
+ export MY_RESOURCEGROUP=${MY_NAME} -n4a -workshop
101
104
export MY_PUBLICIP=$( curl ipinfo.io/ip)
102
105
` ` `
103
106
@@ -119,11 +122,11 @@ aks2-subnet | 172.16.20.0/23 | AKS Cluster #2
119
122
},
120
123
" enableDdosProtection" : false,
121
124
" etag" : " W/\" be1dfac2-9879-4a22-abe4-717badebb0ec\" " ,
122
- " id" : " /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.Network/virtualNetworks/n4a-vnet" ,
125
+ " id" : " /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.Network/virtualNetworks/n4a-vnet" ,
123
126
" location" : " centralus" ,
124
127
" name" : " n4a-vnet" ,
125
128
" provisioningState" : " Succeeded" ,
126
- " resourceGroup" : " s .dutta-workshop" ,
129
+ " resourceGroup" : " sh .dutta-n4a -workshop" ,
127
130
" resourceGuid" : " xxxx-xxxx-xxxx-xxxx-xxxx" ,
128
131
" subnets" : [],
129
132
" type" : " Microsoft.Network/virtualNetworks" ,
@@ -193,12 +196,12 @@ aks2-subnet | 172.16.20.0/23 | AKS Cluster #2
193
196
"destinationPortRanges": [],
194
197
"direction": "Inbound",
195
198
"etag": "W/\"7a178961-d3b8-4562-8493-4fcd7752e37b\"",
196
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.Network/networkSecurityGroups/n4a-nsg/securityRules/HTTP",
199
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.Network/networkSecurityGroups/n4a-nsg/securityRules/HTTP",
197
200
"name": "HTTP",
198
201
"priority": 320,
199
202
"protocol": "Tcp",
200
203
"provisioningState": "Succeeded",
201
- "resourceGroup": "s .dutta-workshop",
204
+ "resourceGroup": "sh .dutta-n4a -workshop",
202
205
"sourceAddressPrefix": "<MY_PUBLICIP>",
203
206
"sourceAddressPrefixes": [],
204
207
"sourcePortRange": "*",
@@ -216,12 +219,12 @@ aks2-subnet | 172.16.20.0/23 | AKS Cluster #2
216
219
"destinationPortRanges": [],
217
220
"direction": "Inbound",
218
221
"etag": "W/\"dc717c9f-3790-45ba-b7aa-e5e39c11142d\"",
219
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.Network/networkSecurityGroups/n4a-nsg/securityRules/HTTPS",
222
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.Network/networkSecurityGroups/n4a-nsg/securityRules/HTTPS",
220
223
"name": "HTTPS",
221
224
"priority": 300,
222
225
"protocol": "Tcp",
223
226
"provisioningState": "Succeeded",
224
- "resourceGroup": "s .dutta-workshop",
227
+ "resourceGroup": "sh .dutta-n4a -workshop",
225
228
"sourceAddressPrefix": "<MY_PUBLICIP>",
226
229
"sourceAddressPrefixes": [],
227
230
"sourcePortRange": "*",
@@ -254,25 +257,25 @@ aks2-subnet | 172.16.20.0/23 | AKS Cluster #2
254
257
"Microsoft.Network/virtualNetworks/subnets/join/action"
255
258
],
256
259
"etag": "W/\"a615708f-145c-4568-a7b1-29b262f04065\"",
257
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.Network/virtualNetworks/n4a-vnet/subnets/n4a-subnet/delegations/0",
260
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.Network/virtualNetworks/n4a-vnet/subnets/n4a-subnet/delegations/0",
258
261
"name": "0",
259
262
"provisioningState": "Succeeded",
260
- "resourceGroup": "s .dutta-workshop",
263
+ "resourceGroup": "sh .dutta-n4a -workshop",
261
264
"serviceName": "NGINX.NGINXPLUS/nginxDeployments",
262
265
"type": "Microsoft.Network/virtualNetworks/subnets/delegations"
263
266
}
264
267
],
265
268
"etag": "W/\"a615708f-145c-4568-a7b1-29b262f04065\"",
266
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.Network/virtualNetworks/n4a-vnet/subnets/n4a-subnet",
269
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.Network/virtualNetworks/n4a-vnet/subnets/n4a-subnet",
267
270
"name": "n4a-subnet",
268
271
"networkSecurityGroup": {
269
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.Network/networkSecurityGroups/n4a-nsg",
270
- "resourceGroup": "s .dutta-workshop"
272
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.Network/networkSecurityGroups/n4a-nsg",
273
+ "resourceGroup": "sh .dutta-n4a -workshop"
271
274
},
272
275
"privateEndpointNetworkPolicies": "Disabled",
273
276
"privateLinkServiceNetworkPolicies": "Enabled",
274
277
"provisioningState": "Succeeded",
275
- "resourceGroup": "s .dutta-workshop",
278
+ "resourceGroup": "sh .dutta-n4a -workshop",
276
279
"type": "Microsoft.Network/virtualNetworks/subnets"
277
280
}
278
281
```
@@ -334,7 +337,7 @@ Your completed Vnet/Subnets should look similar to this:
334
337
"protectionMode": "VirtualNetworkInherited"
335
338
},
336
339
"etag": "W/\"cbeb62f5-3ecc-404f-919d-bdea24c7b9f3\"",
337
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.Network/publicIPAddresses/n4a-publicIP",
340
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.Network/publicIPAddresses/n4a-publicIP",
338
341
"idleTimeoutInMinutes": 4,
339
342
"ipAddress": "<AZURE_ASSIGNED_PUBLICIP>",
340
343
"ipTags": [],
@@ -343,7 +346,7 @@ Your completed Vnet/Subnets should look similar to this:
343
346
"provisioningState": "Succeeded",
344
347
"publicIPAddressVersion": "IPv4",
345
348
"publicIPAllocationMethod": "Static",
346
- "resourceGroup": "s .dutta-workshop",
349
+ "resourceGroup": "sh .dutta-n4a -workshop",
347
350
"resourceGuid": "xxxx-xxxx-xxxx-xxxx-xxxx",
348
351
"sku": {
349
352
"name": "Standard",
@@ -368,11 +371,11 @@ Your completed Vnet/Subnets should look similar to this:
368
371
##Sample Output##
369
372
{
370
373
"clientId": "xxxx-xxxx-xxxx-xxxx-xxxx",
371
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourcegroups/s .dutta-workshop/providers/Microsoft.ManagedIdentity/userAssignedIdentities/n4a-useridentity",
374
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourcegroups/sh .dutta-n4a -workshop/providers/Microsoft.ManagedIdentity/userAssignedIdentities/n4a-useridentity",
372
375
"location": "centralus",
373
376
"name": "n4a-useridentity",
374
377
"principalId": "xxxx-xxxx-xxxx-xxxx-xxxx",
375
- "resourceGroup": "s .dutta-workshop",
378
+ "resourceGroup": "sh .dutta-n4a -workshop",
376
379
"systemData": null,
377
380
"tags": {},
378
381
"tenantId": "xxxx-xxxx-xxxx-xxxx-xxxx",
@@ -390,7 +393,7 @@ Your completed Vnet/Subnets should look similar to this:
390
393
391
394
```bash
392
395
## Set environment variables
393
- export MY_RESOURCEGROUP=s.dutta -workshop
396
+ export MY_RESOURCEGROUP=${MY_NAME}-n4a -workshop
394
397
export MY_SUBSCRIPTIONID=$(az account show --query id -o tsv)
395
398
```
396
399
@@ -406,13 +409,13 @@ Your completed Vnet/Subnets should look similar to this:
406
409
```bash
407
410
##Sample Output##
408
411
{
409
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Nginx.NginxPlus/nginxDeployments/nginx4a",
412
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Nginx.NginxPlus/nginxDeployments/nginx4a",
410
413
"identity": {
411
414
"principalId": "xxxx-xxxx-xxxx-xxxx-xxxx",
412
415
"tenantId": "xxxx-xxxx-xxxx-xxxx-xxxx",
413
416
"type": "SystemAssigned, UserAssigned",
414
417
"userAssignedIdentities": {
415
- "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.ManagedIdentity/userAssignedIdentities/n4a-useridentity": {
418
+ "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.ManagedIdentity/userAssignedIdentities/n4a-useridentity": {
416
419
"clientId": "xxxx-xxxx-xxxx-xxxx-xxxx",
417
420
"principalId": "xxxx-xxxx-xxxx-xxxx-xxxx"
418
421
}
@@ -426,18 +429,18 @@ Your completed Vnet/Subnets should look similar to this:
426
429
},
427
430
"enableDiagnosticsSupport": false,
428
431
"ipAddress": "<AZURE_ASSIGNED_PUBLICIP>",
429
- "managedResourceGroup": "NGX_s .dutta-workshop_nginx4a_centralus",
432
+ "managedResourceGroup": "NGX_sh .dutta-n4a -workshop_nginx4a_centralus",
430
433
"networkProfile": {
431
434
"frontEndIPConfiguration": {
432
435
"publicIPAddresses": [
433
436
{
434
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.Network/publicIPAddresses/n4a-publicIP",
435
- "resourceGroup": "s .dutta-workshop"
437
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.Network/publicIPAddresses/n4a-publicIP",
438
+ "resourceGroup": "sh .dutta-n4a -workshop"
436
439
}
437
440
]
438
441
},
439
442
"networkInterfaceConfiguration": {
440
- "subnetId": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.Network/virtualNetworks/n4a-vnet/subnets/n4a-subnet"
443
+ "subnetId": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.Network/virtualNetworks/n4a-vnet/subnets/n4a-subnet"
441
444
}
442
445
},
443
446
"nginxVersion": "1.25.1 (nginx-plus-r30-p2)",
@@ -447,7 +450,7 @@ Your completed Vnet/Subnets should look similar to this:
447
450
},
448
451
"userProfile": {}
449
452
},
450
- "resourceGroup": "s .dutta-workshop",
453
+ "resourceGroup": "sh .dutta-n4a -workshop",
451
454
"sku": {
452
455
"name": "standard_Monthly"
453
456
},
@@ -487,14 +490,14 @@ In this section you will create a Log Analytics resource that would collect Ngin
487
490
"features": {
488
491
"enableLogAccessUsingOnlyResourcePermissions": true
489
492
},
490
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.OperationalInsights/workspaces/n4a-loganalytics",
493
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.OperationalInsights/workspaces/n4a-loganalytics",
491
494
"location": "centralus",
492
495
"modifiedDate": "2024-04-29T16:05:07.3687572Z",
493
496
"name": "n4a-loganalytics",
494
497
"provisioningState": "Succeeded",
495
498
"publicNetworkAccessForIngestion": "Enabled",
496
499
"publicNetworkAccessForQuery": "Enabled",
497
- "resourceGroup": "s .dutta-workshop",
500
+ "resourceGroup": "sh .dutta-n4a -workshop",
498
501
"retentionInDays": 30,
499
502
"sku": {
500
503
"lastSkuUpdate": "2024-04-17T20:42:48.2028783Z",
@@ -523,13 +526,13 @@ In this section you will create a Log Analytics resource that would collect Ngin
523
526
```bash
524
527
##Sample Output##
525
528
{
526
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Nginx.NginxPlus/nginxDeployments/nginx4a",
529
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Nginx.NginxPlus/nginxDeployments/nginx4a",
527
530
"identity": {
528
531
"principalId": "xxxx-xxxx-xxxx-xxxx-xxxx",
529
532
"tenantId": "xxxx-xxxx-xxxx-xxxx-xxxx",
530
533
"type": "SystemAssigned, UserAssigned",
531
534
"userAssignedIdentities": {
532
- "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.ManagedIdentity/userAssignedIdentities/n4a-useridentity": {
535
+ "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.ManagedIdentity/userAssignedIdentities/n4a-useridentity": {
533
536
"clientId": "xxxx-xxxx-xxxx-xxxx-xxxx",
534
537
"principalId": "xxxx-xxxx-xxxx-xxxx-xxxx"
535
538
}
@@ -579,7 +582,7 @@ In this section you will create a Log Analytics resource that would collect Ngin
579
582
```bash
580
583
##Sample Output##
581
584
{
582
- "id": "/subscriptions/<SUBSCRIPTION_ID>/resourcegroups/s .dutta-workshop/providers/nginx.nginxplus/nginxdeployments/nginx4a/providers/microsoft.insights/diagnosticSettings/n4a-nginxlogs",
585
+ "id": "/subscriptions/<SUBSCRIPTION_ID>/resourcegroups/sh .dutta-n4a -workshop/providers/nginx.nginxplus/nginxdeployments/nginx4a/providers/microsoft.insights/diagnosticSettings/n4a-nginxlogs",
583
586
"logs": [
584
587
{
585
588
"category": "NginxLogs",
@@ -592,9 +595,9 @@ In this section you will create a Log Analytics resource that would collect Ngin
592
595
],
593
596
"metrics": [],
594
597
"name": "n4a-nginxlogs",
595
- "resourceGroup": "s .dutta-workshop",
598
+ "resourceGroup": "sh .dutta-n4a -workshop",
596
599
"type": "Microsoft.Insights/diagnosticSettings",
597
- "workspaceId": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/s .dutta-workshop/providers/Microsoft.OperationalInsights/workspaces/n4a-loganalytics"
600
+ "workspaceId": "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/sh .dutta-n4a -workshop/providers/Microsoft.OperationalInsights/workspaces/n4a-loganalytics"
598
601
}
599
602
```
600
603
0 commit comments