Skip to content

Commit 2bdd03f

Browse files
authored
Merge pull request #111614 from enihcam/master
Add notes regarding to the behaviors of diagnostics settings when its parent resource is deleted/moved.
2 parents 0d07ead + ecf1f0b commit 2bdd03f

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

articles/spring-cloud/diagnostic-services.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ Choose the log category and metric category you want to monitor.
2525

2626
|Log | Description |
2727
|----|----|
28-
| **ApplicationConsole** | Console log of all customer applications. |
28+
| **ApplicationConsole** | Console log of all customer applications. |
2929
| **SystemLogs** | Currently, only [Spring Cloud Config Server](https://cloud.spring.io/spring-cloud-config/reference/html/#_spring_cloud_config_server) logs in this category. |
3030

3131
## Metrics
3232

3333
For a complete list of metrics, see [Spring Cloud Metrics](https://docs.microsoft.com/azure/spring-cloud/spring-cloud-concept-metrics#user-metrics-options).
3434

35-
To get started, enable one of these services to receive the data. To learn about configuring Log Analytics, see [Get started with Log Analytics in Azure Monitor](../azure-monitor/log-query/get-started-portal.md).
35+
To get started, enable one of these services to receive the data. To learn about configuring Log Analytics, see [Get started with Log Analytics in Azure Monitor](../azure-monitor/log-query/get-started-portal.md).
3636

3737
## Configure diagnostics settings
3838

3939
1. In the Azure portal, go to your Azure Spring Cloud instance.
40-
1. Select the **Diagnostics settings** option, and then select **Add Diagnostics setting**.
40+
1. Select **diagnostics settings** option, and then select **Add diagnostics setting**.
4141
1. Enter a name for the setting, and then choose where you want to send the logs. You can select any combination of the following three options:
4242
* **Archive to a storage account**
4343
* **Stream to an event hub**
@@ -47,16 +47,17 @@ To get started, enable one of these services to receive the data. To learn about
4747
1. Select **Save**.
4848

4949
> [!NOTE]
50-
> There might be a gap of up to 15 minutes between when logs or metrics are emitted and when they appear in your storage account, your event hub, or Log Analytics.
50+
> 1. There might be a gap of up to 15 minutes between when logs or metrics are emitted and when they appear in your storage account, your event hub, or Log Analytics.
51+
> 1. If the Azure Spring Cloud instance is deleted or moved, the operation will not cascade to the **diagnostics settings** resources. The **diagnostics settings** resources have to be deleted manually before the operation against its parent, i.e. the Azure Spring Cloud instance. Otherwise, if a new Azure Spring Cloud instance is provisioned with the same resource ID as the deleted one, or if the Azure Spring Cloud instance is moved back, the previous **diagnostics settings** resources continue extending it.
5152
5253
## View the logs and metrics
5354
There are various methods to view logs and metrics as described under the following headings.
5455

55-
### Use Logs blade
56+
### Use the Logs blade
5657

5758
1. In the Azure portal, go to your Azure Spring Cloud instance.
5859
1. To open the **Log Search** pane, select **Logs**.
59-
1. In the **Log** search box
60+
1. In the **Tables** search box
6061
* To view logs, enter a simple query such as:
6162

6263
```sql
@@ -76,7 +77,7 @@ There are various methods to view logs and metrics as described under the follow
7677
1. In the Azure portal, in the left pane, select **Log Analytics**.
7778
1. Select the Log Analytics workspace that you chose when you added your diagnostics settings.
7879
1. To open the **Log Search** pane, select **Logs**.
79-
1. In the **Log** search box,
80+
1. In the **Tables** search box,
8081
* to view logs, enter a simple query such as:
8182

8283
```sql
@@ -98,15 +99,14 @@ There are various methods to view logs and metrics as described under the follow
9899
| where ServiceName == "YourServiceName" and AppName == "YourAppName" and InstanceName == "YourInstanceName"
99100
| limit 50
100101
```
101-
> [!NOTE]
102+
> [!NOTE]
102103
> `==` is case sensitive, but `=~` is not.
103104

104105
To learn more about the query language that's used in Log Analytics, see [Azure Monitor log queries](../azure-monitor/log-query/query-language.md).
105106
106-
### Use your storage account
107-
108-
1. In the Azure portal, in the left pane, select **Storage accounts**.
107+
### Use your storage account
109108
109+
1. In the Azure portal, find **Storage accounts** in left navigation panel or search box.
110110
1. Select the storage account that you chose when you added your diagnostics settings.
111111
1. To open the **Blob Container** pane, select **Blobs**.
112112
1. To review application logs, search for a container called **insights-logs-applicationconsole**.
@@ -116,7 +116,7 @@ To learn more about sending diagnostics information to a storage account, see [S
116116
117117
### Use your event hub
118118
119-
1. In the Azure portal, in the left pane, select **Event Hubs**.
119+
1. In the Azure portal, find **Event Hubs** in left navigation panel or search box.
120120
121121
1. Search for and select the event hub that you chose when you added your diagnostics settings.
122122
1. To open the **Event Hub List** pane, select **Event Hubs**.
@@ -151,7 +151,7 @@ AppPlatformLogsforSpring
151151
| where Log contains "error" or Log contains "exception"
152152
```
153153
154-
Use this query to find errors, or modify the query terms to find specific error codes or exceptions.
154+
Use this query to find errors, or modify the query terms to find specific error codes or exceptions.
155155
156156
### Show the number of errors and exceptions reported by your application over the last hour
157157

articles/spring-cloud/spring-cloud-faq.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.author: brendm
1111

1212
# Azure Spring Cloud FAQ
1313

14-
This article answers frequently asked questions about Azure Spring Cloud.
14+
This article answers frequently asked questions about Azure Spring Cloud.
1515

1616
## General
1717

@@ -89,6 +89,10 @@ Three services are currently supported: Azure Cosmos DB, Azure Database for MySQ
8989

9090
Yes.
9191

92+
### When I delete/move an Azure Spring Cloud service instance, will its extension resources be deleted/moved as well?
93+
94+
It depends on the logics of resource providers where the extension resources belong to. The extension resources of a `Microsoft.AppPlatform` instance do not belong to the same namespace, so the behaviors vary according to different resource providers. For example, the delete/move operation will not cascade to the **diagnostics settings** resources. If a new Azure Spring Cloud instance is provisioned with the same resource ID as the deleted one, or if the previous Azure Spring Cloud instance is moved back, the previous **diagnostics settings** resources continue extending it.
95+
9296
## Deployment
9397

9498
### Does Azure Spring Cloud support blue-green deployment?

0 commit comments

Comments
 (0)