Skip to content

Commit e7d40b4

Browse files
authored
Merge pull request #107106 from TimShererWithAquent/us1669724j
Code blocks, azurecli.
2 parents 740fbc7 + 6b66418 commit e7d40b4

9 files changed

+77
-70
lines changed

articles/spring-cloud/spring-cloud-cli-reference.md

Lines changed: 52 additions & 52 deletions
Large diffs are not rendered by default.

articles/spring-cloud/spring-cloud-howto-staging-environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Install the Azure Spring Cloud extension for the Azure CLI by using the followin
3131
```azurecli
3232
az extension add --name spring-cloud
3333
```
34-
34+
3535
## View all deployments
3636

3737
Go to your service instance in the Azure portal, and select **Deployment management** to view all deployments. To view more details, you can select each deployment.
@@ -40,7 +40,7 @@ Go to your service instance in the Azure portal, and select **Deployment managem
4040

4141
1. In your local development environment, make a small modification to the PiggyMetrics gateway application. For instance, change the color in the *gateway/src/main/resources/static/css/launch.css* file. Doing so lets you easily differentiate the two deployments. To build the jar package, run the following command:
4242

43-
```azurecli
43+
```console
4444
mvn clean package
4545
```
4646

articles/spring-cloud/spring-cloud-launch-from-source.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ Before you begin, ensure that your Azure subscription has the required dependenc
4343

4444
Install the Azure Spring Cloud extension for the Azure CLI with the following command
4545

46-
```Azure CLI
46+
```azurecli
4747
az extension add --name spring-cloud
4848
```
4949

5050
## Provision a service instance using the Azure CLI
5151

5252
Login to the Azure CLI and choose your active subscription. Be sure to choose the active subscription that is whitelisted for Azure Spring Cloud
5353

54-
```Azure CLI
54+
```azurecli
5555
az login
5656
az account list -o table
5757
az account set --subscription

articles/spring-cloud/spring-cloud-quickstart-launch-app-cli.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ az extension add --name spring-cloud
6464
```azurecli
6565
az group create --location eastus --name <resource group name>
6666
```
67+
6768
Learn more about [Azure Resource Groups](../azure-resource-manager/management/overview.md).
6869
6970
4. Open an Azure CLI window and run the following commands to provision an instance of Azure Spring Cloud.
@@ -99,14 +100,14 @@ az spring-cloud config-server git set -n <service instance name> --uri https://g
99100

100101
1. Create a new folder and clone the sample app repository to your Azure Cloud account.
101102

102-
```azurecli
103+
```console
103104
mkdir source-code
104105
git clone https://github.com/Azure-Samples/piggymetrics
105106
```
106107

107108
2. Change directory and build the project.
108109

109-
```azurecli
110+
```console
110111
cd piggymetrics
111112
mvn clean package -D skipTests
112113
```
@@ -145,16 +146,21 @@ We need a way to access the application via a web browser. Our gateway applicati
145146
```azurecli
146147
az spring-cloud app update -n gateway --is-public true
147148
```
149+
148150
2. Query the **gateway** application for its public IP so you can verify that the application is running:
149151

150152
Linux:
153+
151154
```azurecli
152155
az spring-cloud app show --name gateway | grep url
153156
```
157+
154158
Windows:
159+
155160
```azurecli
156161
az spring-cloud app show -s <service name> -g <resource group> -n gateway -o table
157162
```
163+
158164
3. Navigate to the URL provided by the previous command to run the PiggyMetrics application.
159165
![Screenshot of PiggyMetrics running](media/spring-cloud-quickstart-launch-app-cli/launch-app.png)
160166

articles/spring-cloud/spring-cloud-quickstart-launch-app-maven.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ It takes about 5 minutes for the service to be deployed. After the service is de
7373

7474
1. Clone the Git repository by running the following command:
7575

76-
```azurecli
76+
```console
7777
git clone https://github.com/Azure-Samples/PiggyMetrics
7878
```
7979
8080
1. Change directory and build the project by running the following command:
8181

82-
```azurecli
82+
```console
8383
cd piggymetrics
8484
mvn clean package -DskipTests
8585
```
@@ -88,7 +88,7 @@ It takes about 5 minutes for the service to be deployed. After the service is de
8888

8989
1. Generate configurations by running the following command in the root folder of PiggyMetrics containing the parent POM:
9090

91-
```azurecli
91+
```console
9292
mvn com.microsoft.azure:azure-spring-cloud-maven-plugin:1.0.0:config
9393
```
9494

@@ -102,7 +102,7 @@ It takes about 5 minutes for the service to be deployed. After the service is de
102102

103103
1. The POM now contains the plugin dependencies and configurations. Deploy the apps using the following command:
104104

105-
```azurecli
105+
```console
106106
mvn azure-spring-cloud:deploy
107107
```
108108

articles/spring-cloud/spring-cloud-quickstart-launch-app-portal.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To complete this quickstart:
4343

4444
Install the Azure Spring Cloud extension for the Azure CLI using the following command
4545

46-
```Azure CLI
46+
```azurecli
4747
az extension add --name spring-cloud
4848
```
4949

@@ -109,18 +109,19 @@ It takes about 5 minutes for the service to deploy. Once it is deployed, the **
109109

110110
1. Open an [Azure Cloud Shell](https://shell.azure.com) and clone the sample app repository to your local machine. Here, we first create a temporary directory called `source-code` before cloning the app.
111111

112-
```azurecli
112+
```console
113113
mkdir source-code
114114
cd source-code
115115
git clone https://github.com/Azure-Samples/piggymetrics
116116
```
117117

118118
2. Build the cloned package.
119119

120-
```azurecli
120+
```console
121121
cd piggymetrics
122122
mvn clean package -DskipTests
123123
```
124+
124125
3. Assign names to your resource group and your service. Be sure to substitute the placeholders below with the resource group name and service name that you provisioned earlier in this tutorial.
125126

126127
```azurecli

articles/sql-database/sql-database-client-id-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Write-Output "_applicationSecret:" $secret
5959

6060
# [Azure CLI](#tab/azure-cli)
6161

62-
```azure-cli
62+
```azurecli
6363
# sign in to Azure
6464
az login
6565

articles/sql-database/sql-database-copy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ For a complete sample PowerShell script, see [Copy a database to a new server](s
6161

6262
# [Azure CLI](#tab/azure-cli)
6363

64-
```azure-cli
64+
```azurecli
6565
az sql db copy --dest-name "CopyOfMySampleDatabase" --dest-resource-group "myResourceGroup" --dest-server $targetserver `
6666
--name "<databaseName>" --resource-group "<resourceGroup>" --server $sourceserver
6767
```

articles/sql-database/sql-database-implement-geo-distributed-database.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,21 +340,21 @@ To test a failover:
340340

341341
You can check the role of the disaster recovery server during the test with the following command:
342342

343-
```azure-cli
343+
```azurecli
344344
az sql failover-group show --name $failoverGroup --resource-group $resourceGroup --server $drServer
345345
```
346346

347347
To test a failover:
348348

349349
1. Start a manual failover of the failover group:
350350

351-
```azure-cli
351+
```azurecli
352352
az sql failover-group set-primary --name $failoverGroup --resource-group $resourceGroup --server $drServer
353353
```
354354

355355
1. Revert failover group back to the primary server:
356356

357-
```azure-cli
357+
```azurecli
358358
az sql failover-group set-primary --name $failoverGroup --resource-group $resourceGroup --server $server
359359
```
360360

0 commit comments

Comments
 (0)