Skip to content

Commit 1a0c57c

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

File tree

7 files changed

+60
-61
lines changed

7 files changed

+60
-61
lines changed

articles/app-service/deploy-container-github-action.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ OpenID Connect is an authentication method that uses short-lived tokens. Setting
102102
1. Create a new role assignment by subscription and object. By default, the role assignment will be tied to your default subscription. Replace `$subscriptionId` with your subscription ID, `$resourceGroupName` with your resource group name, and `$assigneeObjectId` with the generated `assignee-object-id`. Learn [how to manage Azure subscriptions with the Azure CLI](/cli/azure/manage-azure-subscriptions-azure-cli).
103103
104104
```azurecli-interactive
105-
az role assignment create --role contributor --subscription $subscriptionId --assignee-object-id $assigneeObjectId --assignee-principal-type ServicePrincipal --scopes /subscriptions/$subscriptionId/resourceGroups/$resourceGroupName
106-
/providers/Microsoft.Web/sites/
105+
az role assignment create --role contributor --subscription $subscriptionId --assignee-object-id $assigneeObjectId --assignee-principal-type ServicePrincipal --scopes /subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.Web/sites/
107106
```
108107
109108
1. Run the following command to [create a new federated identity credential](/graph/api/application-post-federatedidentitycredentials?view=graph-rest-beta&preserve-view=true) for your active directory application.

articles/app-service/includes/quickstart-java/quickstart-java-linux-azure-portal-pivot.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ You will see the placeholder page with the message "Hey, Java developers!". The
228228

229229
```java
230230
@RequestMapping("/")
231-
String sayHello() {
232-
return "Hello Azure!";
233-
}
231+
String sayHello() {
232+
return "Hello Azure!";
233+
}
234234
```
235235

236236
1. From the **Source Control** pane, select the **Stage Changes** button to stage the change.
@@ -267,9 +267,9 @@ You will see the placeholder page with the message "Hey, Java developers!". The
267267

268268
```java
269269
@RequestMapping("/")
270-
String sayHello() {
271-
return "Hello Azure!";
272-
}
270+
String sayHello() {
271+
return "Hello Azure!";
272+
}
273273
```
274274

275275
1. From the **Source Control** pane, select the **Stage Changes** button to stage the change.

articles/app-service/includes/quickstart-java/quickstart-java-windows-azure-portal-pivot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ JBoss EAP is only available on the Linux version of App Service. Select the **Li
198198

199199
```java
200200
@RequestMapping("/")
201-
String sayHello() {
202-
return "Hello Azure!";
203-
}
201+
String sayHello() {
202+
return "Hello Azure!";
203+
}
204204
```
205205

206206
1. From the **Source Control** pane, select the **Stage Changes** button to stage the change.

articles/applied-ai-services/form-recognizer/disaster-recovery.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ Request body
7070

7171
You'll get a `200` response code with response body that contains the JSON payload required to initiate the copy.
7272

73-
```http
73+
```json
7474
{
75-
"targetResourceId": "/subscriptions/{targetSub}/resourceGroups/{targetRG}/providers/Microsoft.CognitiveServices/accounts/{targetService}",
76-
"targetResourceRegion": "region",
77-
"targetModelId": "target-model-name",
78-
"targetModelLocation": "model path",
79-
"accessToken": "access token",
80-
"expirationDateTime": "timestamp"
75+
"targetResourceId": "/subscriptions/{targetSub}/resourceGroups/{targetRG}/providers/Microsoft.CognitiveServices/accounts/{targetService}",
76+
"targetResourceRegion": "region",
77+
"targetModelId": "target-model-name",
78+
"targetModelLocation": "model path",
79+
"accessToken": "access token",
80+
"expirationDateTime": "timestamp"
8181
}
8282
```
8383

@@ -94,12 +94,12 @@ The body of your request is the response from the previous step.
9494

9595
```json
9696
{
97-
"targetResourceId": "/subscriptions/{targetSub}/resourceGroups/{targetRG}/providers/Microsoft.CognitiveServices/accounts/{targetService}",
98-
"targetResourceRegion": "region",
99-
"targetModelId": "target-model-name",
100-
"targetModelLocation": "model path",
101-
"accessToken": "access token",
102-
"expirationDateTime": "timestamp"
97+
"targetResourceId": "/subscriptions/{targetSub}/resourceGroups/{targetRG}/providers/Microsoft.CognitiveServices/accounts/{targetService}",
98+
"targetResourceRegion": "region",
99+
"targetModelId": "target-model-name",
100+
"targetModelLocation": "model path",
101+
"accessToken": "access token",
102+
"expirationDateTime": "timestamp"
103103
}
104104
```
105105

@@ -142,37 +142,37 @@ The following code snippets use cURL to make API calls outlined in the steps abo
142142

143143
### Generate Copy authorization
144144

145-
**Request**
145+
**Request**
146146

147-
```bash
148-
curl -i -X POST "{YOUR-ENDPOINT}formrecognizer/documentModels:authorizeCopy?api-version=2022-08-31"
149-
-H "Content-Type: application/json"
150-
-H "Ocp-Apim-Subscription-Key: {YOUR-KEY}"
151-
--data-ascii "{
152-
'modelId': '{modelId}',
153-
'description': '{description}'
154-
}"
155-
```
147+
```bash
148+
curl -i -X POST "{YOUR-ENDPOINT}formrecognizer/documentModels:authorizeCopy?api-version=2022-08-31"
149+
-H "Content-Type: application/json"
150+
-H "Ocp-Apim-Subscription-Key: {YOUR-KEY}"
151+
--data-ascii "{
152+
'modelId': '{modelId}',
153+
'description': '{description}'
154+
}"
155+
```
156156

157-
**Successful response**
157+
**Successful response**
158158

159-
```http
160-
{
159+
```json
160+
{
161161
"targetResourceId": "string",
162162
"targetResourceRegion": "string",
163163
"targetModelId": "string",
164164
"targetModelLocation": "string",
165165
"accessToken": "string",
166166
"expirationDateTime": "string"
167-
}
168-
```
167+
}
168+
```
169169

170170
### Begin Copy operation
171171

172-
**Request**
172+
**Request**
173173

174-
```bash
175-
curl -i -X POST "{YOUR-ENDPOINT}/formrecognizer/documentModels/{modelId}:copyTo?api-version=2022-08-31"
174+
```bash
175+
curl -i -X POST "{YOUR-ENDPOINT}/formrecognizer/documentModels/{modelId}:copyTo?api-version=2022-08-31"
176176
-H "Content-Type: application/json"
177177
-H "Ocp-Apim-Subscription-Key: {YOUR-KEY}"
178178
--data-ascii "{
@@ -184,14 +184,14 @@ The following code snippets use cURL to make API calls outlined in the steps abo
184184
'expirationDateTime': '{expirationDateTime}'
185185
}"
186186

187-
```
187+
```
188188

189-
**Successful response**
189+
**Successful response**
190190

191-
```http
192-
HTTP/1.1 202 Accepted
193-
Operation-Location: https://{source-resource}.cognitiveservices.azure.com/formrecognizer/operations/{operation-id}?api-version=2022-08-31
194-
```
191+
```http
192+
HTTP/1.1 202 Accepted
193+
Operation-Location: https://{source-resource}.cognitiveservices.azure.com/formrecognizer/operations/{operation-id}?api-version=2022-08-31
194+
```
195195

196196
### Track copy operation progress
197197

articles/applied-ai-services/form-recognizer/how-to-guides/includes/v3-0/java-sdk.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ ms.custom: devx-track-csharp
7171

7272
1. In console window (such as cmd, PowerShell, or Bash), create a new directory for your app called **form-recognizer-app**, and navigate to it.
7373

74-
```console
75-
mkdir form-recognizer-app && form-recognizer-app
76-
```
74+
```console
75+
mkdir form-recognizer-app && form-recognizer-app
76+
```
7777

78-
```powershell
79-
mkdir translator-text-app; cd translator-text-app
78+
```powershell
79+
mkdir translator-text-app; cd translator-text-app
8080
```
8181

8282
1. Run the `gradle init` command from your working directory. This command will create essential build files for Gradle, including *build.gradle.kts*, which is used at runtime to create and configure your application.

articles/applied-ai-services/form-recognizer/how-to-guides/includes/v3-0/rest-api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ After you've called the [**Analyze document**](https://westus.dev.cognitive.micr
115115

116116
* Pretty print the JSON output by including `| json_pp` with your GET requests.
117117

118-
**Example**:
118+
**Example**:
119119

120-
```console
121-
curl -i -X GET "{endpoint}formrecognizer/documentModels/prebuilt-read/analyzeResults/6f000000-a2xx-4dxx-95xx-869xyxyxyxyx?api-version=2022-08-31"-H "Ocp-Apim-Subscription-Key: {subscription key}" | json_pp
122-
```
120+
```console
121+
curl -i -X GET "{endpoint}formrecognizer/documentModels/prebuilt-read/analyzeResults/6f000000-a2xx-4dxx-95xx-869xyxyxyxyx?api-version=2022-08-31"-H "Ocp-Apim-Subscription-Key: {subscription key}" | json_pp
122+
```
123123

124124
#### [Linux](#tab/linux)
125125

@@ -129,9 +129,9 @@ After you've called the [**Analyze document**](https://westus.dev.cognitive.micr
129129

130130
**Example**:
131131

132-
```console
133-
curl -i -X GET "{endpoint}formrecognizer/documentModels/prebuilt-read/analyzeResults/6f000000-a2xx-4dxx-95xx-869xyxyxyxyx?api-version=2022-08-31"-H "Ocp-Apim-Subscription-Key: {subscription key}" | json_pp
134-
```
132+
```console
133+
curl -i -X GET "{endpoint}formrecognizer/documentModels/prebuilt-read/analyzeResults/6f000000-a2xx-4dxx-95xx-869xyxyxyxyx?api-version=2022-08-31"-H "Ocp-Apim-Subscription-Key: {subscription key}" | json_pp
134+
```
135135

136136
---
137137

articles/applied-ai-services/form-recognizer/quickstarts/includes/v3-java-sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ In this quickstart you'll, use the following features to analyze and extract dat
6161

6262
```powershell
6363
mkdir translator-text-app; cd translator-text-app
64-
```
64+
```
6565

6666
1. Run the `gradle init` command from your working directory. This command will create essential build files for Gradle, including *build.gradle.kts*, which is used at runtime to create and configure your application.
6767

0 commit comments

Comments
 (0)