Skip to content

Commit 3f84e8d

Browse files
committed
2 parents b1a6c3f + fcc3fa2 commit 3f84e8d

File tree

104 files changed

+1140
-428
lines changed

Some content is hidden

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

104 files changed

+1140
-428
lines changed

.openpublishing.publish.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@
947947
{
948948
"path_to_root": "azure-cosmos-mongodb-dotnet",
949949
"url": "https://github.com/Azure-Samples/cosmos-db-mongodb-api-dotnet-samples",
950-
"branch": "quickstart-test",
950+
"branch": "main",
951951
"branch_mapping": {}
952952
}
953953
],

articles/active-directory/governance/entitlement-management-access-package-assignments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ In Azure AD entitlement management, you can see who has been assigned to access
2828

2929
To use Azure AD entitlement management and assign users to access packages, you must have one of the following licenses:
3030

31+
3132
- Azure AD Premium P2
3233
- Enterprise Mobility + Security (EMS) E5 license
3334

articles/active-directory/managed-identities-azure-resources/how-to-assign-app-role-managed-identity-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Assign a managed identity to an application role using Azure CLI - Azure
33
description: Step-by-step instructions for assigning a managed identity access to another application's role, using Azure CLI.
44
services: active-directory
55
documentationcenter:
6-
author: christoc
6+
author: xstof
77
manager:
88
editor:
99

@@ -64,7 +64,7 @@ In this article, you learn how to assign a managed identity to an application ro
6464
6565
```azurecli
6666
appName="{name for your application}"
67-
serverSPOID=$(az ad sp list --filter "displayName eq 'My App'" --query '[0].objectId' -o tsv | tr -d '[:space:]')
67+
serverSPOID=$(az ad sp list --filter "displayName eq '$appName'" --query '[0].id' -o tsv | tr -d '[:space:]')
6868
echo "object id for server service principal is: $serverSPOID"
6969
```
7070
@@ -75,7 +75,7 @@ In this article, you learn how to assign a managed identity to an application ro
7575
7676
```azurecli
7777
appID="{application id for your application}"
78-
serverSPOID=$(az ad sp list --filter "appId eq '$appID'" --query '[0].objectId' -o tsv | tr -d '[:space:]')
78+
serverSPOID=$(az ad sp list --filter "appId eq '$appID'" --query '[0].id' -o tsv | tr -d '[:space:]')
7979
echo "object id for server service principal is: $serverSPOID"
8080
```
8181

articles/app-service/tutorial-networking-isolate-vnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ The tutorial continues to use the following environment variables from the previ
5757
1. Create a subnet for the App Service virtual network integration.
5858
5959
```azurecli-interactive
60-
az network vnet subnet create --resource-group $groupName --vnet-name $vnetName --name vnet-integration-subnet --address-prefixes 10.0.0.0/24 --delegations Microsoft.Web/serverfarms
60+
az network vnet subnet create --resource-group $groupName --vnet-name $vnetName --name vnet-integration-subnet --address-prefixes 10.0.0.0/24 --delegations Microsoft.Web/serverfarms --disable-private-endpoint-network-policies false
6161
```
6262
6363
For App Service, the virtual network integration subnet is recommended to have a CIDR block of `/26` at a minimum (see [Virtual network integration subnet requirements](overview-vnet-integration.md#subnet-requirements)). `/24` is more than sufficient. `--delegations Microsoft.Web/serverfarms` specifies that the subnet is [delegated for App Service virtual network integration](../virtual-network/subnet-delegation-overview.md).
6464
6565
1. Create another subnet for the private endpoints.
6666
6767
```azurecli-interactive
68-
az network vnet subnet create --resource-group $groupName --vnet-name $vnetName --name private-endpoint-subnet --address-prefixes 10.0.1.0/24 --disable-private-endpoint-network-policies
68+
az network vnet subnet create --resource-group $groupName --vnet-name $vnetName --name private-endpoint-subnet --address-prefixes 10.0.1.0/24 --disable-private-endpoint-network-policies true
6969
```
7070
7171
For private endpoint subnets, you must [disable private endpoint network policies](../private-link/disable-private-endpoint-network-policy.md).

articles/azure-arc/servers/onboard-ansible-playbooks.md

Lines changed: 73 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -32,66 +32,80 @@ If you are onboarding machines to Azure Arc-enabled servers, copy the following
3232
```yaml
3333
---
3434
- name: Onboard Linux and Windows Servers to Azure Arc-enabled servers with public endpoint connectivity
35-
hosts: <INSERT-HOSTS>
36-
vars:
37-
azure:
38-
service_principal_id: 'INSERT-SERVICE-PRINCIPAL-CLIENT-ID'
39-
service_principal_secret: 'INSERT-SERVICE-PRINCIPAL-SECRET'
40-
resource_group: 'INSERT-RESOURCE-GROUP'
41-
tenant_id: 'INSERT-TENANT-ID'
42-
subscription_id: 'INSERT-SUBSCRIPTION-ID'
43-
location: 'INSERT-LOCATION'
35+
hosts: all
36+
# vars:
37+
# azure:
38+
# service_principal_id: 'INSERT-SERVICE-PRINCIPAL-CLIENT-ID'
39+
# service_principal_secret: 'INSERT-SERVICE-PRINCIPAL-SECRET'
40+
# resource_group: 'INSERT-RESOURCE-GROUP'
41+
# tenant_id: 'INSERT-TENANT-ID'
42+
# subscription_id: 'INSERT-SUBSCRIPTION-ID'
43+
# location: 'INSERT-LOCATION'
4444
tasks:
45-
- name: Check if the Connected Machine Agent has already been downloaded on Linux servers
46-
stat:
47-
path: /usr/bin/azcmagent
48-
get_attributes: False
49-
get_checksum: False
50-
get_mine: azcmagent_downloaded
51-
register: azcmagent_downloaded
52-
when: ansible_system == 'Linux'
53-
- name: Check if the Connected Machine Agent has already been downloaded on Windows servers
54-
stat:
55-
path: C:\Program Files\AzureConnectedMachineAgent
56-
get_attributes: False
57-
get_checksum: False
58-
get_mine: azcmagent_downloaded
59-
register: azcmagent_downloaded
60-
when: ansible_system == 'Windows'
61-
- name: Download the Connected Machine Agent on Linux servers
62-
become: yes
63-
get_url:
64-
url: https://aka.ms/azcmagent
65-
dest: ~/install_linux_azcmagent.sh
66-
mode: '700'
67-
when: (ansible_system == 'Linux') and (not azcmagent_downloaded.stat.exists)
68-
- name: Download the Connected Machine Agent on Windows servers
69-
win_get_url:
70-
url: https://aka.ms/AzureConnectedMachineAgent
71-
dest: C:\AzureConnectedMachineAgent.msi
72-
when: (ansible_os_family == 'Windows') and (not azcmagent_downloaded.stat.exists)
73-
- name: Install the Connected Machine Agent on Linux servers
74-
become: yes
75-
command:
76-
cmd: bash ~/install_linux_azcmagent.sh
77-
when: (ansible_system == 'Linux') and (not azcmagent_downloaded.stat.exists)
78-
- name: Install the Connected Machine Agent on Windows servers
79-
win_package:
80-
path: C:\AzureConnectedMachineAgent.msi
81-
when: (ansible_os_family == 'Windows') and (not azcmagent_downloaded.stat.exists)
82-
- name: Check if the Connected Machine Agent has already been connected
83-
become: true
84-
command:
85-
cmd: azcmagent show
86-
register: azcmagent_connected
87-
- name: Connect the Connected Machine Agent on Linux servers to Azure Arc
88-
become: yes
89-
command:
90-
cmd: azcmagent connect --service-principal-id {{ azure.service_principal_id }} --service-principal-secret {{ azure.service_principal_secret }} --resource-group {{ azure.resource_group }} --tenant-id {{ azure.tenant_id }} --location {{ azure.location }} --subscription-id {{ azure.subscription_id }}
91-
when: (azcmagent_connected.rc == 0) and (ansible_system == 'Linux')
92-
- name: Connect the Connected Machine Agent on Windows servers to Azure
93-
win_shell: '& $env:ProgramFiles\AzureConnectedMachineAgent\azcmagent.exe connect --service-principal-id "{{ azure.service_principal_id }}" --service-principal-secret "{{ azure.service_principal_secret }}" --resource-group "{{ azure.resource_group }}" --tenant-id "{{ azure.tenant_id }}" --location "{{ azure.location }}" --subscription-id "{{ azure.subscription_id }}"'
94-
when: (azcmagent_connected.rc == 0) and (ansible_os_family == 'Windows')
45+
- name: Check if the Connected Machine Agent has already been downloaded on Linux servers
46+
stat:
47+
path: /usr/bin/azcmagent
48+
get_attributes: False
49+
get_checksum: False
50+
register: azcmagent_lnx_downloaded
51+
when: ansible_system == 'Linux'
52+
53+
- name: Download the Connected Machine Agent on Linux servers
54+
become: yes
55+
get_url:
56+
url: https://aka.ms/azcmagent
57+
dest: ~/install_linux_azcmagent.sh
58+
mode: '700'
59+
when: (ansible_system == 'Linux') and (azcmagent_lnx_downloaded.stat.exists == false)
60+
61+
- name: Install the Connected Machine Agent on Linux servers
62+
become: yes
63+
shell: bash ~/install_linux_azcmagent.sh
64+
when: (ansible_system == 'Linux') and (not azcmagent_lnx_downloaded.stat.exists)
65+
66+
- name: Check if the Connected Machine Agent has already been downloaded on Windows servers
67+
win_stat:
68+
path: C:\Program Files\AzureConnectedMachineAgent
69+
register: azcmagent_win_downloaded
70+
when: ansible_os_family == 'Windows'
71+
72+
- name: Download the Connected Machine Agent on Windows servers
73+
win_get_url:
74+
url: https://aka.ms/AzureConnectedMachineAgent
75+
dest: C:\AzureConnectedMachineAgent.msi
76+
when: (ansible_os_family == 'Windows') and (not azcmagent_win_downloaded.stat.exists)
77+
78+
- name: Install the Connected Machine Agent on Windows servers
79+
win_package:
80+
path: C:\AzureConnectedMachineAgent.msi
81+
when: (ansible_os_family == 'Windows') and (not azcmagent_win_downloaded.stat.exists)
82+
83+
- name: Check if the Connected Machine Agent has already been connected
84+
become: true
85+
command:
86+
cmd: azcmagent check
87+
register: azcmagent_lnx_connected
88+
ignore_errors: yes
89+
when: ansible_system == 'Linux'
90+
failed_when: (azcmagent_lnx_connected.rc not in [ 0, 16 ])
91+
changed_when: False
92+
93+
- name: Check if the Connected Machine Agent has already been connected on windows
94+
win_command: azcmagent check
95+
register: azcmagent_win_connected
96+
when: ansible_os_family == 'Windows'
97+
ignore_errors: yes
98+
failed_when: (azcmagent_win_connected.rc not in [ 0, 16 ])
99+
changed_when: False
100+
101+
- name: Connect the Connected Machine Agent on Linux servers to Azure Arc
102+
become: yes
103+
shell: azcmagent connect --service-principal-id "{{ azure.service_principal_id }}" --service-principal-secret "{{ azure.service_principal_secret }}" --resource-group "{{ azure.resource_group }}" --tenant-id "{{ azure.tenant_id }}" --location "{{ azure.location }}" --subscription-id "{{ azure.subscription_id }}"
104+
when: (ansible_system == 'Linux') and (azcmagent_lnx_connected.rc is defined and azcmagent_lnx_connected.rc != 0)
105+
106+
- name: Connect the Connected Machine Agent on Windows servers to Azure
107+
win_shell: '& $env:ProgramFiles\AzureConnectedMachineAgent\azcmagent.exe connect --service-principal-id "{{ azure.service_principal_id }}" --service-principal-secret "{{ azure.service_principal_secret }}" --resource-group "{{ azure.resource_group }}" --tenant-id "{{ azure.tenant_id }}" --location "{{ azure.location }}" --subscription-id "{{ azure.subscription_id }}"'
108+
when: (ansible_os_family == 'Windows') and (azcmagent_win_connected.rc is defined and azcmagent_win_connected.rc != 0)
95109
```
96110
97111
## Modify the Ansible playbook

articles/azure-maps/tutorial-search-location.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ The Map Control API is a convenient client library. This API allows you to easil
140140

141141
About this code:
142142

143-
* A `ready` event is added to the map, which fires when the map resources finnish loading and the map is ready to be accessed.
143+
* A `ready` event is added to the map, which fires when the map resources finish loading and the map is ready to be accessed.
144144
* In the map `ready` event handler, a data source is created to store result data.
145145
* A symbol layer is created and attached to the data source. This layer specifies how the result data in the data source should be rendered. In this case, the result is rendered with a dark blue round pin icon, centered over the results coordinate, that allows other icons to overlap.
146146
* The result layer is added to the map layers.

articles/azure-monitor/app/api-custom-events-metrics.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ The telemetry is available in the `customEvents` table on the [Application Insig
150150

151151
If [sampling](./sampling.md) is in operation, the `itemCount` property shows a value greater than `1`. For example, `itemCount==10` means that of 10 calls to `trackEvent()`, the sampling process transmitted only one of them. To get a correct count of custom events, use code such as `customEvents | summarize sum(itemCount)`.
152152

153+
> [!NOTE]
154+
> itemCount has a minimum value of one; the record itself represents an entry.
155+
153156
## GetMetric
154157

155158
To learn how to effectively use the `GetMetric()` call to capture locally pre-aggregated metrics for .NET and .NET Core applications, see [Custom metric collection in .NET and .NET Core](./get-metric.md).
@@ -212,6 +215,9 @@ The telemetry is available in the `customMetrics` table in [Application Insights
212215
* `valueSum`: The sum of the measurements. To get the mean value, divide by `valueCount`.
213216
* `valueCount`: The number of measurements that were aggregated into this `trackMetric(..)` call.
214217

218+
> [!NOTE]
219+
> valueCount has a minimum value of one; the record itself represents an entry.
220+
215221
## Page views
216222

217223
In a device or webpage app, page view telemetry is sent by default when each screen or page is loaded. But you can change the default to track page views at more or different times. For example, in an app that displays tabs or blades, you might want to track a page whenever the user opens a new blade.

articles/azure-monitor/app/java-in-process-agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Download the [applicationinsights-agent-3.3.1.jar](https://github.com/microsoft/
3434

3535
> [!WARNING]
3636
>
37-
> If you're upgrading from 3.2.x to 3.3.1:
37+
> If you're upgrading from 3.2.x:
3838
>
39-
> - Starting from 3.3.1, `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is already captured in the `SeverityLevel` field. For details on how to re-enable this if needed, please see the [config options](./java-standalone-config.md#logginglevel)
39+
> - Starting from 3.3.0, `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is already captured in the `SeverityLevel` field. For details on how to re-enable this if needed, please see the [config options](./java-standalone-config.md#logginglevel)
4040
> - Exception records are no longer recorded for failed dependencies, they are only recorded for failed requests.
4141
>
4242
> If you're upgrading from 3.1.x:

articles/azure-monitor/app/java-standalone-config.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Instrumentation key overrides allow you to override the [default instrumentation
247247

248248
## Cloud role name overrides (preview)
249249

250-
This feature is in preview, starting from 3.3.1.
250+
This feature is in preview, starting from 3.3.0.
251251

252252
Cloud role name overrides allow you to override the [default cloud role name](#cloud-role-name), for example:
253253
* Set one cloud role name for one http path prefix `/myapp1`.
@@ -344,7 +344,7 @@ These are the valid `level` values that you can specify in the `applicationinsig
344344
345345
### LoggingLevel
346346

347-
Starting from version 3.3.1, `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is aleady captured in the `SeverityLevel` field.
347+
Starting from version 3.3.0, `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is aleady captured in the `SeverityLevel` field.
348348

349349
If needed, you can re-enable the previous behavior:
350350

@@ -384,7 +384,7 @@ To disable auto-collection of Micrometer metrics (including Spring Boot Actuator
384384

385385
## HTTP headers
386386

387-
Starting from version 3.3.1, you can capture request and response headers on your server (request) telemetry:
387+
Starting from version 3.3.0, you can capture request and response headers on your server (request) telemetry:
388388

389389
```json
390390
{
@@ -430,7 +430,7 @@ Again, the header names are case-insensitive, and the examples above will be cap
430430

431431
By default, http server requests that result in 4xx response codes are captured as errors.
432432

433-
Starting from version 3.3.1, you can change this behavior to capture them as success if you prefer:
433+
Starting from version 3.3.0, you can change this behavior to capture them as success if you prefer:
434434

435435
```json
436436
{
@@ -532,7 +532,7 @@ Starting from version 3.2.0, the following preview instrumentations can be enabl
532532
```
533533
> [!NOTE]
534534
> Akka instrumentation is available starting from version 3.2.2
535-
> Vertx HTTP Library instrumentation is available starting from version 3.3.1
535+
> Vertx HTTP Library instrumentation is available starting from version 3.3.0
536536
537537
## Metric interval
538538

@@ -605,7 +605,7 @@ When sending telemetry to the Application Insights service fails, Application In
605605
to disk and continue retrying from disk.
606606

607607
The default limit for disk persistence is 50 Mb. If you have high telemetry volume, or need to be able to recover from
608-
longer network or ingestion service outages, you can increase this limit starting from version 3.3.1:
608+
longer network or ingestion service outages, you can increase this limit starting from version 3.3.0:
609609

610610
```json
611611
{

articles/azure-monitor/app/worker-service.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,18 @@ If you want to disable telemetry conditionally and dynamically, you may resolve
529529

530530
## Frequently asked questions
531531

532+
### Which package should I use?
533+
534+
| .Net Core app scenario | Package |
535+
|---------|---------|
536+
| Without HostedServices | AspNetCore |
537+
| With HostedServices | AspNetCore (not WorkerService) |
538+
| With HostedServices, monitoring only HostedServices | WorkerService (rare scenario) |
539+
540+
### Can HostedServices inside a .NET Core app using the AspNetCore package have TelemetryClient injected to it?
541+
542+
* Yes. The config will be shared with the rest of the web application.
543+
532544
### How can I track telemetry that's not automatically collected?
533545

534546
Get an instance of `TelemetryClient` by using constructor injection, and call the required `TrackXXX()` method on it. We don't recommend creating new `TelemetryClient` instances. A singleton instance of `TelemetryClient` is already registered in the `DependencyInjection` container, which shares `TelemetryConfiguration` with rest of the telemetry. Creating a new `TelemetryClient` instance is recommended only if it needs a configuration that's separate from the rest of the telemetry.
@@ -584,6 +596,6 @@ For the latest updates and bug fixes, [consult the release notes](./release-note
584596
## Next steps
585597

586598
* [Use the API](./api-custom-events-metrics.md) to send your own events and metrics for a detailed view of your app's performance and usage.
587-
* [Track additional dependencies not automatically tracked](./auto-collect-dependencies.md).
599+
* [Track more dependencies not automatically tracked](./auto-collect-dependencies.md).
588600
* [Enrich or Filter auto collected telemetry](./api-filtering-sampling.md).
589601
* [Dependency Injection in ASP.NET Core](/aspnet/core/fundamentals/dependency-injection).

0 commit comments

Comments
 (0)