Skip to content

Commit 5b933cb

Browse files
authored
Merge pull request #246712 from alexbuckgit/alexbuckgit/docutune-autopr-20230729-210510-4334702-ignore-build
[BULK] DocuTune - Fix formatting issues (part 7)
2 parents 502a7d8 + 262aa59 commit 5b933cb

9 files changed

+487
-486
lines changed

articles/dms/howto-sql-server-to-azure-sql-managed-instance-powershell-offline.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $vSubNet = Get-AzVirtualNetworkSubnetConfig -VirtualNetwork $vNet -Name MySubnet
8686
$service = New-AzDms -ResourceGroupName myResourceGroup `
8787
-ServiceName MyDMS `
8888
-Location EastUS `
89-
-Sku Basic_2vCores `
89+
-Sku Basic_2vCores `
9090
-VirtualSubnetId $vSubNet.Id`
9191
```
9292

@@ -200,7 +200,7 @@ foreach($DataBase in $Databases.Database_Name)
200200
{
201201
$SourceDB=$DataBase
202202
$TargetDB=$DataBase
203-
203+
204204
$selectedDbs += New-AzureRmDmsSelectedDB -MigrateSqlServerSqlDbMi `
205205
-Name $SourceDB `
206206
-TargetDatabaseName $TargetDB `
@@ -252,11 +252,11 @@ Use the `New-AzDataMigrationTask` cmdlet to create and start a migration task.
252252
253253
The `New-AzDataMigrationTask` cmdlet expects the following parameters:
254254
255-
* *TaskType*. Type of migration task to create for SQL Server to Azure SQL Managed Instance migration type *MigrateSqlServerSqlDbMi* is expected.
255+
* *TaskType*. Type of migration task to create for SQL Server to Azure SQL Managed Instance migration type *MigrateSqlServerSqlDbMi* is expected.
256256
* *Resource Group Name*. Name of Azure resource group in which to create the task.
257257
* *ServiceName*. Azure Database Migration Service instance in which to create the task.
258-
* *ProjectName*. Name of Azure Database Migration Service project in which to create the task.
259-
* *TaskName*. Name of task to be created.
258+
* *ProjectName*. Name of Azure Database Migration Service project in which to create the task.
259+
* *TaskName*. Name of task to be created.
260260
* *SourceConnection*. AzDmsConnInfo object representing source SQL Server connection.
261261
* *TargetConnection*. AzDmsConnInfo object representing target Azure SQL Managed Instance connection.
262262
* *SourceCred*. [PSCredential](/dotnet/api/system.management.automation.pscredential) object for connecting to source server.
@@ -302,12 +302,12 @@ To monitor the migration, perform the following tasks.
302302
To combine migration details such as properties, state, and database information associated with the migration, use the following code snippet:
303303

304304
```powershell
305-
$CheckTask= Get-AzDataMigrationTask -ResourceGroupName myResourceGroup `
306-
-ServiceName $service.Name `
307-
-ProjectName $project.Name `
308-
-Name myDMSTask `
309-
-ResultType DatabaseLevelOutput `
310-
-Expand
305+
$CheckTask = Get-AzDataMigrationTask -ResourceGroupName myResourceGroup `
306+
-ServiceName $service.Name `
307+
-ProjectName $project.Name `
308+
-Name myDMSTask `
309+
-ResultType DatabaseLevelOutput `
310+
-Expand
311311
Write-Host ‘$CheckTask.ProjectTask.Properties.Output’
312312
```
313313
@@ -321,11 +321,11 @@ To monitor the migration, perform the following tasks.
321321
Write-Host "migration task running"
322322
}
323323
else if($CheckTask.ProjectTask.Properties.State -eq "Succeeded")
324-
{
324+
{
325325
Write-Host "Migration task is completed Successfully"
326326
}
327327
else if($CheckTask.ProjectTask.Properties.State -eq "Failed" -or $CheckTask.ProjectTask.Properties.State -eq "FailedInputValidation" -or $CheckTask.ProjectTask.Properties.State -eq "Faulted")
328-
{
328+
{
329329
Write-Host "Migration Task Failed"
330330
}
331331
```

articles/dns/dns-operations-recordsets.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,21 @@ To add a record to an existing record set, follow the following three steps:
206206

207207
1. Get the existing record set
208208

209-
```azurepowershell-interactive
210-
$rs = Get-AzDnsRecordSet -Name www –ZoneName "contoso.com" -ResourceGroupName "MyResourceGroup" -RecordType A
211-
```
209+
```azurepowershell-interactive
210+
$rs = Get-AzDnsRecordSet -Name www –ZoneName "contoso.com" -ResourceGroupName "MyResourceGroup" -RecordType A
211+
```
212212
213213
1. Add the new record to the local record set.
214214
215-
```azurepowershell-interactive
216-
Add-AzDnsRecordConfig -RecordSet $rs -Ipv4Address "5.6.7.8"
217-
```
215+
```azurepowershell-interactive
216+
Add-AzDnsRecordConfig -RecordSet $rs -Ipv4Address "5.6.7.8"
217+
```
218218
219219
3. Update the changes so it reflects to the Azure DNS service.
220220
221-
```azurepowershell-interactive
222-
Set-AzDnsRecordSet -RecordSet $rs
223-
```
221+
```azurepowershell-interactive
222+
Set-AzDnsRecordSet -RecordSet $rs
223+
```
224224
225225
Using `Set-AzDnsRecordSet` *replaces* the existing record set in Azure DNS (and all records it contains) with the record set specified. [Etag checks](dns-zones-records.md#etags) are used to ensure concurrent changes aren't overwritten. You can use the optional `-Overwrite` switch to suppress these checks.
226226
@@ -240,21 +240,21 @@ The process to remove a record from a record set is similar to the process to ad
240240

241241
1. Get the existing record set
242242

243-
```azurepowershell-interactive
244-
$rs = Get-AzDnsRecordSet -Name www –ZoneName "contoso.com" -ResourceGroupName "MyResourceGroup" -RecordType A
245-
```
243+
```azurepowershell-interactive
244+
$rs = Get-AzDnsRecordSet -Name www –ZoneName "contoso.com" -ResourceGroupName "MyResourceGroup" -RecordType A
245+
```
246246
247247
2. Remove the record from the local record set object. The record that's being removed must be an exact match with an existing record across all parameters.
248248
249-
```azurepowershell-interactive
250-
Remove-AzDnsRecordConfig -RecordSet $rs -Ipv4Address "5.6.7.8"
251-
```
249+
```azurepowershell-interactive
250+
Remove-AzDnsRecordConfig -RecordSet $rs -Ipv4Address "5.6.7.8"
251+
```
252252
253253
3. Commit the change back to the Azure DNS service. Use the optional `-Overwrite` switch to suppress [Etag checks](dns-zones-records.md#etags) for concurrent changes.
254254
255-
```azurepowershell-interactive
256-
Set-AzDnsRecordSet -RecordSet $Rs
257-
```
255+
```azurepowershell-interactive
256+
Set-AzDnsRecordSet -RecordSet $Rs
257+
```
258258
259259
Using the above sequence to remove the last record from a record set doesn't delete the record set, rather it leaves an empty record set. To remove a record set entirely, see [Delete a record set](#delete-a-record-set).
260260

articles/event-grid/auth0-log-stream-blob-storage.md

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.date: 10/12/2022
66
---
77

88
# Send Auth0 events to Azure Blob Storage
9-
This article shows you how to send Auth0 events to Azure Blob Storage via Azure Event Grid by using Azure Functions.
9+
This article shows you how to send Auth0 events to Azure Blob Storage via Azure Event Grid by using Azure Functions.
1010

1111
## Prerequisites
1212
- [Create an Azure Event Grid stream on Auth0](https://marketplace.auth0.com/integrations/azure-log-streaming).
@@ -15,57 +15,57 @@ This article shows you how to send Auth0 events to Azure Blob Storage via Azure
1515

1616
## Create an Azure function
1717
1. Create an Azure function by following instructions from the **Create a local project** section of [Quickstart: Create a JavaScript function in Azure using Visual Studio Code](../azure-functions/create-first-function-vs-code-node.md?pivots=nodejs-model-v3).
18-
1. Select **Azure Event Grid trigger** for the function template instead of **HTTP trigger** as mentioned in the quickstart.
19-
1. Continue to follow the steps, but use the following **index.js** and **function.json** files.
20-
21-
> [!IMPORTANT]
22-
> Update the **package.json** to include `@azure/storage-blob` as a dependency.
23-
24-
**function.json**
25-
```json
26-
{
27-
"bindings": [{
28-
"type": "eventGridTrigger",
29-
"name": "eventGridEvent",
30-
"direction": "in"
31-
32-
},
33-
{
34-
"type": "blob",
35-
"name": "outputBlob",
36-
"path": "events/{rand-guid}.json",
37-
"connection": "OUTPUT_STORAGE_ACCOUNT",
38-
"direction": "out"
39-
40-
}
41-
]
42-
}
43-
```
44-
45-
**index.js**
46-
47-
```javascript
48-
// Event Grid always sends an array of data and may send more
49-
// than one event in the array. The runtime invokes this function
50-
// once for each array element, so we are always dealing with one.
51-
// See: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-grid-trigger?tabs=
52-
module.exports = async function (context, eventGridEvent) {
53-
context.log(JSON.stringify(context.bindings));
54-
context.log(JSON.stringify(context.bindingData));
55-
56-
context.bindings.outputBlob = JSON.stringify(eventGridEvent);
57-
};
58-
```
18+
1. Select **Azure Event Grid trigger** for the function template instead of **HTTP trigger** as mentioned in the quickstart.
19+
1. Continue to follow the steps, but use the following **index.js** and **function.json** files.
20+
21+
> [!IMPORTANT]
22+
> Update the **package.json** to include `@azure/storage-blob` as a dependency.
23+
24+
**function.json**
25+
26+
```json
27+
{
28+
"bindings": [
29+
{
30+
"type": "eventGridTrigger",
31+
"name": "eventGridEvent",
32+
"direction": "in"
33+
},
34+
{
35+
"type": "blob",
36+
"name": "outputBlob",
37+
"path": "events/{rand-guid}.json",
38+
"connection": "OUTPUT_STORAGE_ACCOUNT",
39+
"direction": "out"
40+
}
41+
]
42+
}
43+
```
44+
45+
**index.js**
46+
47+
```javascript
48+
// Event Grid always sends an array of data and may send more
49+
// than one event in the array. The runtime invokes this function
50+
// once for each array element, so we are always dealing with one.
51+
// See: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-grid-trigger?tabs=
52+
module.exports = async function (context, eventGridEvent) {
53+
context.log(JSON.stringify(context.bindings));
54+
context.log(JSON.stringify(context.bindingData));
55+
56+
context.bindings.outputBlob = JSON.stringify(eventGridEvent);
57+
};
58+
```
59+
5960
1. Create an Azure function app using instructions from [Quick function app create](../azure-functions/functions-develop-vs-code.md?tabs=csharp#quick-function-app-create).
6061
1. Deploy your function to the function app on Azure using instructions from [Deploy project files](../azure-functions/functions-develop-vs-code.md?tabs=csharp#republish-project-files).
6162

62-
6363
## Configure Azure function to use your blob storage
6464
1. Configure your Azure function to use your storage account.
6565
1. Select **Configuration** under **Settings** on the left menu.
66-
1. On the **Application settings** page, select **+ New connection string** on the command bar.
66+
1. On the **Application settings** page, select **+ New connection string** on the command bar.
6767
1. Set **Name** to **AzureWebJobsOUTPUT_STORAGE_ACCOUNT**.
68-
1. Set **Value** to the connection string to the storage account that you copied to the clipboard in the previous step.
68+
1. Set **Value** to the connection string to the storage account that you copied to the clipboard in the previous step.
6969
1. Select **OK**.
7070

7171
## Create event subscription for partner topic using function
@@ -76,26 +76,26 @@ This article shows you how to send Auth0 events to Azure Blob Storage via Azure
7676
1. On the **Create Event Subscription** page, follow these steps:
7777
1. Enter a **name** for the event subscription.
7878
1. For **Endpoint type**, select **Azure Function**.
79-
79+
8080
:::image type="content" source="./media/auth0-log-stream-blob-storage/select-endpoint-type.png" alt-text="Screenshot showing the Create Event Subscription page with Azure Functions selected as the endpoint type.":::
81-
1. Click **Select an endpoint** to specify details about the function.
81+
1. Click **Select an endpoint** to specify details about the function.
8282
1. On the **Select Azure Function** page, follow these steps.
8383
1. Select the **Azure subscription** that contains the function.
8484
1. Select the **resource group** that contains the function.
8585
1. Select your **function app**.
8686
1. Select your **Azure function**.
87-
1. Then, select **Confirm Selection**.
88-
1. Now, back on the **Create Event Subscription** page, select **Create** to create the event subscription.
87+
1. Then, select **Confirm Selection**.
88+
1. Now, back on the **Create Event Subscription** page, select **Create** to create the event subscription.
8989
1. After the event subscription is created successfully, you see the event subscription in the bottom pane of the **Event Grid Partner Topic - Overview** page.
90-
1. Select the link to your Azure function at the bottom of the page.
90+
1. Select the link to your Azure function at the bottom of the page.
9191
1. On the **Azure Function** page, select **Monitor** and confirm data is successfully being sent. You may need to trigger logs from Auth0.
9292

9393
## Verify that logs are stored in the storage account
9494

9595
1. Locate your storage account in the Azure portal.
9696
1. Select **Containers** under **Data Storage** on the left menu.
97-
1. Confirm that you see a container named **events**.
98-
1. Select the container and verify that your Auth0 logs are being stored.
97+
1. Confirm that you see a container named **events**.
98+
1. Select the container and verify that your Auth0 logs are being stored.
9999

100100
> [!NOTE]
101101
> You can use steps in the article to handle events from other event sources too. For a generic example of sending Event Grid events to Azure Blob Storage or Azure Monitor Application Insights, see [this example on GitHub](https://github.com/awkwardindustries/azure-monitor-handler).

0 commit comments

Comments
 (0)