Skip to content

Commit 9973887

Browse files
Merge pull request #84729 from MicrosoftDocs/master
Merge master to live 5 AM
2 parents 0d798d3 + 7b7104d commit 9973887

File tree

11 files changed

+158
-36
lines changed

11 files changed

+158
-36
lines changed

articles/azure-functions/functions-monitoring.md

+23-4
Original file line numberDiff line numberDiff line change
@@ -603,15 +603,22 @@ To report an issue with Application Insights integration in Functions, or to mak
603603
604604
## Streaming Logs
605605

606-
While developing an application, it is often useful to see logging information in near-real time. You can view a stream of log files being generated by your functions either in the Azure portal or in a command-line session on your local computer.
606+
While developing an application, you often want to what's being written to the logs in near-real time when running in Azure.
607607

608-
This is equivalent to the output seen when you debug your functions during [local development](functions-develop-local.md). For more information, see [How to stream logs](../app-service/troubleshoot-diagnostic-logs.md#streamlogs).
608+
There are two ways to view a stream of log files being generated by your function executions.
609609

610-
> [!NOTE]
611-
> Streaming logs support only a single instance of the Functions host. When your function is scaled to multiple instances, data from other instances are not shown in the log stream. The [Live Metrics Stream](../azure-monitor/app/live-stream.md) in Application Insights does supported multiple instances. While also in near real time, streaming analytics are also based on [sampled data](#configure-sampling).
610+
* **Built-in log streaming**: the App Service platform lets you view a stream of your application log files. This is equivalent to the output seen when you debug your functions during [local development](functions-develop-local.md) and when you use the **Test** tab in the portal. All log-based information is displayed. For more information, see [How to stream logs](../app-service/troubleshoot-diagnostic-logs.md#streamlogs). This streaming method supports only a single instance, and can't be used with an app running on Linux in a Consumption plan.
611+
612+
* **Live Metrics Stream**: when your function app is [connected to Application Insights](#enable-application-insights-integration), you can view log data and other metrics in near-real time in the Azure portal using [Live Metrics Stream](../azure-monitor/app/live-stream.md). Use this method when monitoring functions running on multiple-instances or on Linux in a Consumption plan. This method uses [sampled data](#configure-sampling).
613+
614+
Log streams can be viewed both in the portal and in most local development environments.
612615

613616
### Portal
614617

618+
You can view both types of log streams in the portal.
619+
620+
#### Built-in log streaming
621+
615622
To view streaming logs in the portal, select the **Platform features** tab in your function app. Then, under **Monitoring**, choose **Log streaming**.
616623

617624
![Enable streaming logs in the portal](./media/functions-monitoring/enable-streaming-logs-portal.png)
@@ -620,10 +627,22 @@ This connects your app to the log streaming service and application logs are dis
620627

621628
![View streaming logs in the portal](./media/functions-monitoring/streaming-logs-window.png)
622629

630+
#### Live Metrics Stream
631+
632+
To view the Live Metrics Stream for your app, select the **Overview** tab of your function app. When you have Application Insights enables, you see an **Application Insights** link under **Configured features**. This link takes you to the Application Insights page for your app.
633+
634+
In Application Insights, select **Live Metrics Stream**. [Sampled log entries](#configure-sampling) are displayed under **Sample Telemetry**.
635+
636+
![View Live Metrics Stream in the portal](./media/functions-monitoring/live-metrics-stream.png)
637+
623638
### Visual Studio Code
624639

625640
[!INCLUDE [functions-enable-log-stream-vs-code](../../includes/functions-enable-log-stream-vs-code.md)]
626641

642+
### Core Tools
643+
644+
[!INCLUDE [functions-streaming-logs-core-tools](../../includes/functions-streaming-logs-core-tools.md)]
645+
627646
### Azure CLI
628647

629648
You can enable streaming logs by using the [Azure CLI](/cli/azure/install-azure-cli). Use the following commands to sign in, choose your subscription, and stream log files:

articles/azure-functions/functions-run-local.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,25 @@ The following custom container deployment options are available:
442442

443443
## Monitoring functions
444444

445-
The recommended way to monitor the execution of your functions is by integrating with Azure Application Insights. When you create a function app in the Azure portal, this integration is done for you by default. However, when you create your function app by using the Azure CLI, the integration in your function app in Azure isn't done.
445+
The recommended way to monitor the execution of your functions is by integrating with Azure Application Insights. You can also stream execution logs to your local computer. To learn more, see [Monitor Azure Functions](functions-monitoring.md).
446+
447+
### Enable Application Insights integration
448+
449+
When you create a function app in the Azure portal, the Application Insights integration is done for you by default. However, when you create your function app by using the Azure CLI, the integration in your function app in Azure isn't done.
446450
447451
[!INCLUDE [functions-connect-new-app-insights.md](../../includes/functions-connect-new-app-insights.md)]
448452
449-
To learn more, see [Monitor Azure Functions](functions-monitoring.md).
453+
### Enable streaming logs
454+
455+
You can view a stream of log files being generated by your functions in a command-line session on your local computer.
456+
457+
#### Native streaming logs
458+
459+
[!INCLUDE [functions-streaming-logs-core-tools](../../includes/functions-streaming-logs-core-tools.md)]
460+
461+
This type of streaming logs requires that you [enable Application Insights integration](#enable-application-insights-integration) for your function app.
462+
463+
450464
## Next steps
451465
452466
Azure Functions Core Tools is [open source and hosted on GitHub](https://github.com/azure/azure-functions-cli).

articles/media-services/video-indexer/customize-content-models-overview.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ This article gives links to the conceptual articles that explain the benefits of
3333

3434
## Person model
3535

36-
* [Customizing language models overview](customize-person-model-overview.md)
37-
* [Customizing language models using the Video Indexer website](customize-language-model-with-website.md)
38-
* [Customizing language models using the Video Indexer API](customize-person-model-with-api.md)
36+
* [Customizing person models overview](customize-person-model-overview.md)
37+
* [Customizing person models using the Video Indexer website](customize-person-model-with-website.md)
38+
* [Customizing person models using the Video Indexer API](customize-person-model-with-api.md)
3939

4040
## Next steps
4141

42-
[Video Indexer overview](video-indexer-overview.md)
42+
[Video Indexer overview](video-indexer-overview.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
title: Customize networking configurations for failover VM | Microsoft Docs
3+
description: Provides an overview of customize networking configurations for failover VM in the replication of Azure VMs using Azure Site Recovery.
4+
services: site-recovery
5+
author: rajani-janaki-ram
6+
manager: rochakm
7+
ms.service: site-recovery
8+
ms.topic: article
9+
ms.date: 08/07/2019
10+
ms.author: rajanaki
11+
12+
---
13+
# Customize networking configurations of the target Azure VM
14+
15+
This article provides guidance on customizing networking configurations on the target Azure VM when you're replicating and recovering Azure VMs from one region to another, using [Azure Site Recovery](site-recovery-overview.md).
16+
17+
## Before you start
18+
19+
Learn how Site Recovery provides disaster recovery for [this scenario](azure-to-azure-architecture.md).
20+
21+
## Support networking resources
22+
23+
The following key resource configurations can be provided for the failover VM while replicating Azure VMs.
24+
25+
- [Internal Load Balancer](https://docs.microsoft.com/azure/load-balancer/load-balancer-standard-overview#what-is-standard-load-balancer)
26+
- [Public IP](https://docs.microsoft.com/azure/virtual-network/virtual-network-ip-addresses-overview-arm#public-ip-addresses)
27+
- [Network Security Group](https://docs.microsoft.com/azure/virtual-network/manage-network-security-group) both for the subnet and for the NIC
28+
29+
## Pre-requisites
30+
31+
- Ensure that you plan your recovery side configurations in advance.
32+
- You need to create the networking resources in advance. Provide it as an input so that Azure Site Recovery service can honor these settings and ensure that the failover VM adheres to these settings.
33+
34+
## Steps to customize failover networking configurations
35+
36+
1. Navigate to **Replicated Items**.
37+
2. Click on the desired Azure VM.
38+
3. Click on **Compute and Network**, and **Edit**. You will notice that the NIC configuration settings include the corresponding resources at the source.
39+
40+
![customize](media/azure-to-azure-customize-networking/edit-networking-properties.png)
41+
42+
4. Click **Edit** near the NIC you want to configure. In the next blade that opens up, select the corresponding pre-created resources in the target.
43+
44+
![NIC-drilldown](media/azure-to-azure-customize-networking/nic-drilldown.png)
45+
46+
5. Click **OK**.
47+
48+
Site Recovery will now honor these settings and ensure that the VM on failover is connected to the selected resource via the corresponding NIC.
49+
50+
## Troubleshooting
51+
52+
### Unable to view or select a resource
53+
54+
If you are unable to select or view a networking resource, please go through the following checks & conditions:
55+
56+
- The target field for a networking resource is only enabled if the source VM had a corresponding input. This is based on the principle that for a disaster recovery scenario, you would want either the exact or a scaled down version of your source.
57+
- For each of the networking resources in question some filters are applied in the dropdown to ensure that the failover VM can attach itself to the resource selected and the failover reliability is maintained. These filters are based on the same networking conditions that would have been verified when you configured the source VM.
58+
59+
Internal load balancer validations:
60+
61+
1. Subscription and Region of LB and the target VM should be the same.
62+
2. The virtual network associated with the Internal Load Balancer and that of the target VMshould be the same.
63+
3. The target VM’s Public IP SKU and the Internal Loadbalancer's SKU should be the same.
64+
4. If the target VM is configured to be placed in an availability zone, then check if the load balancer is zone redundant or part of any availability zone. (Basic SKU Load Balancers do not support zones and will not be shown in the drop-down in this case.)
65+
5. Ensure that the Internal LoadBalancer has a pre-created backend pool and front-end configuration.
66+
67+
68+
Public IP address:
69+
70+
1. Subscription and Region of Public IP and the target VM should be the same.
71+
2. The target VM’s Public IP SKU and the Internal Loadbalancer's SKU should be the same.
72+
73+
Network security group:
74+
1. Subscription and Region of Network security group and the target VM should be the same.
75+
76+
77+
> [!WARNING]
78+
> If the target VM is associated to an Availability Set, then you need to associate the Public IP/Internal Load balancer of the same SKU as that of other VM's Public IP/Internal Load balancer in the Availability Set. Failure to do so could result in failover failure.

articles/site-recovery/toc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@
155155
items:
156156
- name: Prepare networking for Azure VM disaster recovery
157157
href: azure-to-azure-about-networking.md
158+
- name: Customize networking configurations of the target Azure VM
159+
href: azure-to-azure-customize-networking.md
158160
- name: Set up network mapping and retain IP addresses after failover
159161
href: azure-to-azure-network-mapping.md
160162
- name: Examples for retaining IP addresses after failover

docfx.json

+10-25
Original file line numberDiff line numberDiff line change
@@ -368,31 +368,16 @@
368368
"articles/firewall/**/*.md": "https://feedback.azure.com/forums/217313-networking?category_id=345022"
369369
},
370370
"searchScope": {
371-
"articles/data-lake-analytics/**/*.md": [
372-
"Azure",
373-
"Azure Data Lake Analytics"
374-
],
375-
"articles/postgresql/**.md": [
376-
"Azure",
377-
"Azure Database for PostgreSQL",
378-
"PostgreSQL"
379-
],
380-
"articles/mysql/**.md": [
381-
"Azure",
382-
"Azure Database for MySQL",
383-
"MySQL"
384-
],
385-
"articles/stream-analytics/**/*.md": [
386-
"Azure",
387-
"Stream Analytics"
388-
],
389-
"articles/data-explorer/**/*.md": [
390-
"Azure",
391-
"Data Explorer",
392-
"Azure Data Explorer",
393-
"Kusto",
394-
"kusto"
395-
]
371+
"articles/azure-databricks/**/*.md": ["Azure","Azure Databricks"],
372+
"articles/cosmos-db/**/*.md": ["Azure","Azure Cosmos DB"],
373+
"articles/data-catalog/**/*.md": ["Azure","Azure Data Catalog"],
374+
"articles/data-explorer/**/*.md": ["Azure","Kusto","Azure Data Explorer"],
375+
"articles/data-lake-analytics/**/*.md": ["Azure","Azure Data Lake Analytics"],
376+
"articles/data-share/**/*.md": ["Azure","Azure Data Share"],
377+
"articles/mariadb/**.md": ["Azure","Azure Database for MariaDB"],
378+
"articles/mysql/**.md": ["Azure","Azure Database for MySQL"],
379+
"articles/postgresql/**.md": ["Azure","Azure Database for PostgreSQL"],
380+
"articles/stream-analytics/**/*.md": ["Azure","Stream Analytics"]
396381
},
397382
"titleSuffix": {
398383
"articles/governance/blueprints/**/*.md": "Azure Blueprints",

includes/application-insights-limits.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ There are some limits on the number of metrics and events per application, that
1818
| Throttling | 32,000 events/second | The limit is measured over a minute.
1919
| Data retention | 90 days | This resource is for [Search](../articles/azure-monitor/app/diagnostic-search.md), [Analytics](../articles/azure-monitor/app/analytics.md), and [Metrics Explorer](../articles/azure-monitor/app/metrics-explorer.md).
2020
| [Availability multi-step test](../articles/azure-monitor/app/availability-multistep.md) detailed results retention | 90 days | This resource provides detailed results of each step.
21-
| Maximum event size | 64,000 |
21+
| Maximum telemetry item size | 64,000 kB |
22+
| Maximum telemetry items in a batch | 64 K |
2223
| Property and metric name length | 150 | See [type schemas](https://github.com/microsoft/ApplicationInsights-Home/tree/master/EndpointSpecs/Schemas/Bond).
2324
| Property value string length | 8,192 | See [type schemas](https://github.com/microsoft/ApplicationInsights-Home/tree/master/EndpointSpecs/Schemas/Bond).
2425
| Trace and exception message length | 32,768 | See [type schemas](https://github.com/microsoft/ApplicationInsights-Home/tree/master/EndpointSpecs/Schemas/Bond).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
author: ggailey777
3+
ms.author: glenga
4+
ms.date: 7/24/2019
5+
ms.topic: include
6+
ms.service: azure-functions
7+
---
8+
9+
#### Built-in log streaming
10+
11+
Use the `logstream` option to start receiving streaming logs of a specific function app running in Azure, as in the following example:
12+
13+
```bash
14+
func azure functionapp logstream <FunctionAppName>
15+
```
16+
17+
#### Live Metrics Stream
18+
19+
You can also view the [Live Metrics Stream](../articles/azure-monitor/app/live-stream.md) for your function app in a new browser window by including the `--browser` option, as in the following example:
20+
21+
```bash
22+
func azure functionapp logstream <FunctionAppName> --browser
23+
```

0 commit comments

Comments
 (0)