You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
az group create --name $myResourceGroup --location eastus
47
48
```
48
49
49
50
## Get custom location information
@@ -75,7 +76,8 @@ Now that you have the custom location ID, you can query for the connected enviro
75
76
A connected environment is largely the same as a standard Container Apps environment, but network restrictions are controlled by the underlying Arc-enabled Kubernetes cluster.
76
77
77
78
```azure-interactive
78
-
myConnectedEnvironment = az containerapp connected-env list --custom-location customLocationId -o tsv --query '[].id'
79
+
myContainerApp="my-container-app"
80
+
myConnectedEnvironment=$(az containerapp connected-env list --custom-location $customLocationId -o tsv --query '[].id')
79
81
```
80
82
81
83
## Create an app
@@ -84,16 +86,15 @@ The following example creates a Node.js app.
az containerapp browse --resource-group myResourceGroup \
96
-
--name myContainerApp
97
+
az containerapp browse --resource-group $myResourceGroup --name $myContainerApp
97
98
```
98
99
99
100
## Get diagnostic logs using Log Analytics
@@ -112,7 +113,7 @@ let StartTime = ago(72h);
112
113
let EndTime = now();
113
114
ContainerAppsConsoleLogs_CL
114
115
| where TimeGenerated between (StartTime .. EndTime)
115
-
| where AppName_s =~ "myContainerApp"
116
+
| where AppName_s =~ "my-container-app"
116
117
```
117
118
118
119
The application logs for all the apps hosted in your Kubernetes cluster are logged to the Log Analytics workspace in the custom log table named `ContainerAppsConsoleLogs_CL`.
lOG_ANALYTICS_KEY_ENC=$(printf %s $lOG_ANALYTICS_KEY | base64 -w0) # Needed for the next step
@@ -241,13 +239,13 @@ A [Log Analytics workspace](../azure-monitor/logs/quick-create-workspace.md) pro
241
239
```azurepowershell
242
240
$LOG_ANALYTICS_WORKSPACE_ID=$(az monitor log-analytics workspace show `
243
241
--resource-group $GROUP_NAME `
244
-
--workspace-name $wORKSPACE_NAME `
242
+
--workspace-name $WORKSPACE_NAME `
245
243
--query customerId `
246
244
--output tsv)
247
245
$LOG_ANALYTICS_WORKSPACE_ID_ENC=[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($LOG_ANALYTICS_WORKSPACE_ID))# Needed for the next step
@@ -335,7 +333,7 @@ A [Log Analytics workspace](../azure-monitor/logs/quick-create-workspace.md) pro
335
333
| - | - |
336
334
| `Microsoft.CustomLocation.ServiceAccount` | The service account created for the custom location. It's recommended that it 's set to the value `default`. |
337
335
| `appsNamespace` | The namespace used to create the app definitions and revisions. It **must** match that of the extension release namespace. |
338
-
| `CLUSTER_NAME` | The name of the Container Apps extension Kubernetes environment that will be created against this extension. |
336
+
| `clusterName` | The name of the Container Apps extension Kubernetes environment that will be created against this extension. |
339
337
| `logProcessor.appLogs.destination` | Optional. Destination for application logs. Accepts `log-analytics` or `none`, choosing none disables platform logs. |
340
338
| `logProcessor.appLogs.logAnalyticsConfig.customerId` | Required only when `logProcessor.appLogs.destination` is set to `log-analytics`. The base64-encoded Log analytics workspace ID. This parameter should be configured as a protected setting. |
341
339
| `logProcessor.appLogs.logAnalyticsConfig.sharedKey` | Required only when `logProcessor.appLogs.destination` is set to `log-analytics`. The base64-encoded Log analytics workspace shared key. This parameter should be configured as a protected setting. |4
@@ -474,7 +472,8 @@ Before you can start creating apps in the custom location, you need an [Azure Co
474
472
az containerapp connected-env create \
475
473
--resource-group $GROUP_NAME \
476
474
--name $CONNECTED_ENVIRONMENT_NAME \
477
-
--custom-location $CUSTOM_LOCATION_ID
475
+
--custom-location $CUSTOM_LOCATION_ID \
476
+
--location $LOCATION
478
477
```
479
478
480
479
# [PowerShell](#tab/azure-powershell)
@@ -483,7 +482,8 @@ Before you can start creating apps in the custom location, you need an [Azure Co
0 commit comments