Skip to content

Commit 2a972d3

Browse files
committed
[BULK] Fix code block formatting issues
1 parent 0e55530 commit 2a972d3

File tree

7 files changed

+88
-90
lines changed

7 files changed

+88
-90
lines changed

articles/applied-ai-services/immersive-reader/tutorial-ios-picture-immersive-reader.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,21 @@ Choose **Single View App**.
4040
![New Single View App](./media/ios/xcode-single-view-app.png)
4141

4242
## Get the SDK CocoaPod
43+
4344
The easiest way to use the Immersive Reader SDK is via CocoaPods. To install via Cocoapods:
45+
4446
1. [Install CocoaPods](http://guides.cocoapods.org/using/getting-started.html) - Follow the getting started guide to install Cocoapods.
4547
2. Create a Podfile by running `pod init` in your Xcode project's root directory.
46-
3. Add the CocoaPod to your Podfile by adding `pod 'immersive-reader-sdk', :path => 'https://github.com/microsoft/immersive-reader-sdk/tree/master/iOS/immersive-reader-sdk'`. Your Podfile should look like the following, with your target's name replacing picture-to-immersive-reader-swift:
47-
```ruby
48-
platform :ios, '9.0'
49-
50-
target 'picture-to-immersive-reader-swift' do
51-
use_frameworks!
52-
# Pods for picture-to-immersive-reader-swift
53-
pod 'immersive-reader-sdk', :git => 'https://github.com/microsoft/immersive-reader-sdk.git'
54-
end
55-
```
48+
3. Add the CocoaPod to your Podfile by adding `pod 'immersive-reader-sdk', :path => 'https://github.com/microsoft/immersive-reader-sdk/tree/master/iOS/immersive-reader-sdk'`. Your Podfile should look like the following, with your target's name replacing picture-to-immersive-reader-swift:
49+
```ruby
50+
platform :ios, '9.0'
51+
52+
target 'picture-to-immersive-reader-swift' do
53+
use_frameworks!
54+
# Pods for picture-to-immersive-reader-swift
55+
pod 'immersive-reader-sdk', :git => 'https://github.com/microsoft/immersive-reader-sdk.git'
56+
end
57+
```
5658
4. In the terminal, in the directory of your Xcode project, run the command `pod install` to install the Immersive Reader SDK pod.
5759
5. Add `import immersive_reader_sdk` to all files that need to reference the SDK.
5860
6. Ensure to open the project by opening the `.xcworkspace` file and not the `.xcodeproj` file.

articles/applied-ai-services/metrics-advisor/how-tos/diagnose-an-incident.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ The first section lists a summary of the current incident, including basic infor
6060

6161
- Analyzed root cause is an automatically analyzed result. Metrics Advisor analyzes all anomalies that are captured on time series within one metric with different dimension values at the same timestamp. Then performs correlation, clustering to group related anomalies together and generates root cause advice.
6262

63-
:::image type="content" source="../media/diagnostics/incident-summary.png" alt-text="Incident summary":::
63+
:::image type="content" source="../media/diagnostics/incident-summary.png" alt-text="Incident summary":::
64+
6465
For metrics with multiple dimensions, it's a common case that multiple anomalies will be detected at the same time. However, those anomalies may share the same root cause. Instead of analyzing all anomalies one by one, leveraging **Analyzed root cause** should be the most efficient way to diagnose current incident.
6566

6667

articles/applied-ai-services/metrics-advisor/tutorials/enable-anomaly-notification.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: mrbullwinkle
55
ms.author: mbullwin
66
ms.service: cognitive-services
77
ms.topic: tutorial
8-
ms.date: 05/20/2021
8+
ms.date: 05/20/2021
99
---
1010

1111
# Tutorial: Enable anomaly notification in Metrics Advisor
@@ -250,13 +250,11 @@ There are several options to send email, both Microsoft hosted and 3rd-party off
250250
Fill in the content that you'd like to include to 'Body', 'Subject' in the email and fill in an email address in 'To'.
251251

252252
![Screenshot of send an email](../media/tutorial/logic-apps-send-email.png)
253-
253+
254254
#### [Teams Channel](#tab/teams)
255-
256-
### Send anomaly notification through a Microsoft Teams channel
257-
This section will walk through the practice of sending anomaly notifications through a Microsoft Teams channel. This can help enable scenarios where team members are collaborating on analyzing anomalies that are detected by Metrics Advisor. The workflow is easy to configure and doesn't have a large number of prerequisites.
258-
259255

256+
### Send anomaly notification through a Microsoft Teams channel
257+
This section will walk through the practice of sending anomaly notifications through a Microsoft Teams channel. This can help enable scenarios where team members are collaborating on analyzing anomalies that are detected by Metrics Advisor. The workflow is easy to configure and doesn't have a large number of prerequisites.
260258

261259
**Step 1.** Add a 'Incoming Webhook' connector to your Teams channel
262260

articles/azure-arc/kubernetes/private-link.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,12 @@ If you run into problems, the following suggestions may help:
191191
nslookup gbl.his.arc.azure.com
192192
nslookup agentserviceapi.guestconfiguration.azure.com
193193
nslookup dp.kubernetesconfiguration.azure.com
194-
```
194+
```
195195

196196
* If you are having trouble onboarding your Kubernetes cluster, confirm that you’ve added the Azure Active Directory, Azure Resource Manager, AzureFrontDoor.FirstParty and Microsoft Container Registry service tags to your local network firewall.
197197

198198
## Next steps
199199

200200
* Learn more about [Azure Private Endpoint](../../private-link/private-link-overview.md).
201201
* Learn how to [troubleshoot Azure Private Endpoint connectivity problems](../../private-link/troubleshoot-private-endpoint-connectivity.md).
202-
* Learn how to [configure Private Link for Azure Monitor](../../azure-monitor/logs/private-link-security.md).
202+
* Learn how to [configure Private Link for Azure Monitor](../../azure-monitor/logs/private-link-security.md).

articles/azure-government/documentation-government-get-started-connect-to-storage.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,3 @@ These endpoint differences must be taken into account when you connect to storag
174174
- Read more about [Azure Storage](../storage/index.yml).
175175
- Subscribe to the [Azure Government blog](https://blogs.msdn.microsoft.com/azuregov/)
176176
- Get help on Stack Overflow by using the [azure-gov](https://stackoverflow.com/questions/tagged/azure-gov) tag
177-

articles/azure-monitor/app/asp-net.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ This section will guide you through manually adding Application Insights to a te
7171

7272
3. Copy the following XML configuration into your newly created file:
7373

74-
```xml
75-
<?xml version="1.0" encoding="utf-8"?>
74+
```xml
75+
<?xml version="1.0" encoding="utf-8"?>
7676
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
7777
<TelemetryInitializers>
7878
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector" />
@@ -214,7 +214,7 @@ This section will guide you through manually adding Application Insights to a te
214214
-->
215215
<ConnectionString>Copy connection string from Application Insights Resource Overview</ConnectionString>
216216
</ApplicationInsights>
217-
```
217+
```
218218

219219
4. Before the closing `</ApplicationInsights>` tag, add the connection string for your Application Insights resource. You can find your connection string on the overview pane of the newly created Application Insights resource.
220220

@@ -249,7 +249,6 @@ This section will guide you through manually adding Application Insights to a te
249249
}
250250
}
251251
}
252-
253252
```
254253

255254
6. In the *App_Start* folder, open the *FilterConfig.cs* file and change it to match the sample:
@@ -381,4 +380,4 @@ For the latest updates and bug fixes, [consult the release notes](./release-note
381380
## Next steps
382381

383382
* Add synthetic transactions to test that your website is available from all over the world with [availability monitoring](monitor-web-app-availability.md).
384-
* [Configure sampling](sampling.md) to help reduce telemetry traffic and data storage costs.
383+
* [Configure sampling](sampling.md) to help reduce telemetry traffic and data storage costs.

articles/azure-monitor/app/availability-azure-functions.md

Lines changed: 64 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,16 @@ To create a new file, right click under your timer trigger function (for example
4545

4646
```xml
4747
<Project Sdk="Microsoft.NET.Sdk">
48-
    <PropertyGroup>
49-
        <TargetFramework>netstandard2.0</TargetFramework>
50-
    </PropertyGroup>
51-
    <ItemGroup>
52-
        <PackageReference Include="Microsoft.ApplicationInsights" Version="2.15.0" /> <!-- Ensure you’re using the latest version -->
53-
    </ItemGroup>
48+
<PropertyGroup>
49+
<TargetFramework>netstandard2.0</TargetFramework>
50+
</PropertyGroup>
51+
<ItemGroup>
52+
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.15.0" /> <!-- Ensure you’re using the latest version -->
53+
</ItemGroup>
5454
</Project>
55-
5655
```
5756

58-
:::image type="content" source="media/availability-azure-functions/function-proj.png" alt-text=" Screenshot of function.proj in App Service Editor." lightbox="media/availability-azure-functions/function-proj.png":::
57+
:::image type="content" source="media/availability-azure-functions/function-proj.png" alt-text=" Screenshot of function.proj in App Service Editor." lightbox="media/availability-azure-functions/function-proj.png":::
5958

6059
2. Create a new file called "runAvailabilityTest.csx" and paste the following code:
6160

@@ -64,11 +63,11 @@ To create a new file, right click under your timer trigger function (for example
6463

6564
public async static Task RunAvailabilityTestAsync(ILogger log)
6665
{
67-
    using (var httpClient = new HttpClient())
68-
    {
69-
        // TODO: Replace with your business logic
70-
        await httpClient.GetStringAsync("https://www.bing.com/");
71-
    }
66+
using (var httpClient = new HttpClient())
67+
{
68+
// TODO: Replace with your business logic
69+
await httpClient.GetStringAsync("https://www.bing.com/");
70+
}
7271
}
7372
```
7473

@@ -104,58 +103,58 @@ To create a new file, right click under your timer trigger function (for example
104103
public async static Task Run(TimerInfo myTimer, ILogger log, ExecutionContext executionContext)
105104

106105
{
107-
    if (telemetryClient == null)
108-
    {
109-
        // Initializing a telemetry configuration for Application Insights based on connection string
110-
111-
        var telemetryConfiguration = new TelemetryConfiguration();
112-
        telemetryConfiguration.ConnectionString = Environment.GetEnvironmentVariable("APPLICATIONINSIGHTS_CONNECTION_STRING");
113-
        telemetryConfiguration.TelemetryChannel = new InMemoryChannel();
114-
        telemetryClient = new TelemetryClient(telemetryConfiguration);
115-
    }
116-
117-
    string testName = executionContext.FunctionName;
118-
    string location = Environment.GetEnvironmentVariable("REGION_NAME");
119-
    var availability = new AvailabilityTelemetry
120-
    {
121-
        Name = testName,
122-
123-
        RunLocation = location,
124-
125-
        Success = false,
126-
    };
127-
128-
    availability.Context.Operation.ParentId = Activity.Current.SpanId.ToString();
129-
    availability.Context.Operation.Id = Activity.Current.RootId;
130-
    var stopwatch = new Stopwatch();
131-
    stopwatch.Start();
132-
133-
    try
134-
    {
135-
        using (var activity = new Activity("AvailabilityContext"))
136-
        {
137-
            activity.Start();
138-
            availability.Id = Activity.Current.SpanId.ToString();
139-
            // Run business logic
140-
            await RunAvailabilityTestAsync(log);
141-
        }
142-
        availability.Success = true;
143-
    }
144-
145-
    catch (Exception ex)
146-
    {
147-
        availability.Message = ex.Message;
148-
        throw;
149-
    }
150-
151-
    finally
152-
    {
153-
        stopwatch.Stop();
154-
        availability.Duration = stopwatch.Elapsed;
155-
        availability.Timestamp = DateTimeOffset.UtcNow;
156-
        telemetryClient.TrackAvailability(availability);
157-
        telemetryClient.Flush();
158-
    }
106+
if (telemetryClient == null)
107+
{
108+
// Initializing a telemetry configuration for Application Insights based on connection string
109+
110+
var telemetryConfiguration = new TelemetryConfiguration();
111+
telemetryConfiguration.ConnectionString = Environment.GetEnvironmentVariable("APPLICATIONINSIGHTS_CONNECTION_STRING");
112+
telemetryConfiguration.TelemetryChannel = new InMemoryChannel();
113+
telemetryClient = new TelemetryClient(telemetryConfiguration);
114+
}
115+
116+
string testName = executionContext.FunctionName;
117+
string location = Environment.GetEnvironmentVariable("REGION_NAME");
118+
var availability = new AvailabilityTelemetry
119+
{
120+
Name = testName,
121+
122+
RunLocation = location,
123+
124+
Success = false,
125+
};
126+
127+
availability.Context.Operation.ParentId = Activity.Current.SpanId.ToString();
128+
availability.Context.Operation.Id = Activity.Current.RootId;
129+
var stopwatch = new Stopwatch();
130+
stopwatch.Start();
131+
132+
try
133+
{
134+
using (var activity = new Activity("AvailabilityContext"))
135+
{
136+
activity.Start();
137+
availability.Id = Activity.Current.SpanId.ToString();
138+
// Run business logic
139+
await RunAvailabilityTestAsync(log);
140+
}
141+
availability.Success = true;
142+
}
143+
144+
catch (Exception ex)
145+
{
146+
availability.Message = ex.Message;
147+
throw;
148+
}
149+
150+
finally
151+
{
152+
stopwatch.Stop();
153+
availability.Duration = stopwatch.Elapsed;
154+
availability.Timestamp = DateTimeOffset.UtcNow;
155+
telemetryClient.TrackAvailability(availability);
156+
telemetryClient.Flush();
157+
}
159158
}
160159

161160
```

0 commit comments

Comments
 (0)