Skip to content

Commit ed6e217

Browse files
Split Az.SpringCloud Examples in generation (#17341)
1 parent aa68640 commit ed6e217

32 files changed

+146
-56
lines changed

src/SpringCloud/docs/Deploy-AzSpringCloudApp.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ Deploy the built jar to service.
2525

2626
### Example 1: Deploy local compiled jar to service by name.
2727
```powershell
28-
PS C:\> Deploy-AzSpringCloudApp -ResourceGroupName 'spring-cloud-rg' -ServiceName 'spring-cloud-service' -AppName 'gateway' -JarPath '/home/user/piggymetrics/gateway/target/gateway.jar'
28+
Deploy-AzSpringCloudApp -ResourceGroupName 'spring-cloud-rg' -ServiceName 'spring-cloud-service' -AppName 'gateway' -JarPath '/home/user/piggymetrics/gateway/target/gateway.jar'
29+
```
2930

31+
```output
3032
[1/3] Requesting for upload URL
3133
[2/3] Uploading package to blob
3234
[3/3] Updating deployment in app account-service (this operation can take a while to complete)

src/SpringCloud/docs/Get-AzSpringCloud.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ Get a Service and its properties.
4141

4242
### Example 1: Get Spring Cloud Service by name
4343
```powershell
44-
PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
44+
Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
45+
```
46+
47+
```output
4548
ConfigServerPropertiesErrorCode :
4649
ConfigServerPropertiesErrorMessage :
4750
ConfigServerPropertyState : Succeeded
@@ -91,7 +94,10 @@ Get Spring Cloud Service by name
9194

9295
### Example 2: List all the spring cloud service under the resource group.
9396
```powershell
94-
PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg
97+
Get-AzSpringCloud -ResourceGroupName spring-cloud-rg
98+
```
99+
100+
```output
95101
Location Name Type
96102
-------- ---- ----
97103
eastus spring-cloud-rg Microsoft.AppPlatform/Spring

src/SpringCloud/docs/Get-AzSpringCloudApp.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ Get an App and its properties.
3737

3838
### Example 1: Get Spring Cloud App by name.
3939
```powershell
40-
PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
40+
Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
41+
```
42+
43+
```output
4144
ActiveDeploymentName : default
4245
CreatedTime : 2020-08-08 15:37:43
4346
Fqdn : spring-cloud-service.azuremicroservices.io
@@ -67,7 +70,10 @@ Get Spring Cloud App by name.
6770

6871
### Example 2: List all the app under a given spring cloud service.
6972
```powershell
70-
PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
73+
Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
74+
```
75+
76+
```output
7177
Name Type Location
7278
---- ---- --------
7379
account-service Microsoft.AppPlatform/Spring/apps eastus

src/SpringCloud/docs/Get-AzSpringCloudAppDeployment.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ Get a Deployment and its properties.
4343

4444
### Example 1: Get Spring Cloud App Deploymeng by name.
4545
```powershell
46-
PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
46+
Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
47+
```
48+
49+
```output
4750
Active : False
4851
AppName : gateway
4952
CreatedTime :
@@ -72,7 +75,10 @@ Get Spring Cloud App Deploymeng by name.
7275

7376
### Example 2: List all the deployment under a given spring cloud app.
7477
```powershell
75-
PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
78+
Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
79+
```
80+
81+
```output
7682
Name Type
7783
---- ----
7884
default Microsoft.AppPlatform/Spring/apps/deployments

src/SpringCloud/docs/New-AzSpringCloud.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ Create a new Service or update an exiting Service.
2626

2727
### Example 1: Create a spring cloud service.
2828
```powershell
29-
PS C:\> New-AzSpringCloud -ResourceGroupName spring-cloud-rp -name spring-cloud-service -Location eastus
29+
New-AzSpringCloud -ResourceGroupName spring-cloud-rp -name spring-cloud-service -Location eastus
30+
```
3031

32+
```output
3133
ConfigServerPropertiesErrorCode :
3234
ConfigServerPropertiesErrorMessage :
3335
ConfigServerPropertyState : Succeeded

src/SpringCloud/docs/New-AzSpringCloudApp.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ Create a new App or update an exiting App.
2727

2828
### Example 1: Create a spring cloud app.
2929
```powershell
30-
PS C:\> New-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
30+
New-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
31+
```
32+
33+
```output
3134
ActiveDeploymentName :
3235
CreatedTime : 2020-08-08 15:37:43
3336
Fqdn : spring-cloud-service.azuremicroservices.io

src/SpringCloud/docs/New-AzSpringCloudAppDeployment.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ Create a new Deployment or update an exiting Deployment.
2828

2929
### Example 1: Example 1: Create a spring cloud deployment.
3030
```powershell
31-
PS C:\> New-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rp -name spring-cloud-service -AppName gateway -DeploymentName default
31+
New-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rp -name spring-cloud-service -AppName gateway -DeploymentName default
32+
```
3233

34+
```output
3335
Active : False
3436
AppName : gateway
3537
CreatedTime :

src/SpringCloud/docs/Remove-AzSpringCloud.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ Operation to delete a Service.
3131

3232
### Example 1: Remove Spring Cloud Service by name.
3333
```powershell
34-
PS C:\> Remove-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
34+
Remove-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
3535
```
3636

3737
Remove Spring Cloud Service by name.
3838

3939
### Example 2: Remove Spring Cloud Service from pipe.
4040
```powershell
41-
PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service | Remove-AzSpringCloud
41+
Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service | Remove-AzSpringCloud
4242
```
4343

4444
Remove Spring Cloud Service from pipe.

src/SpringCloud/docs/Remove-AzSpringCloudApp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ Operation to delete an App.
3232

3333
### Example 1: Remove Spring Cloud App by name.
3434
```powershell
35-
PS C:\> Remove-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
35+
Remove-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
3636
```
3737

3838
Remove Spring Cloud App by name.
3939

4040
### Example 2: Remove Spring Cloud App from pipe.
4141
```powershell
42-
PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway | Remove-AzSpringCloudApp
42+
Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway | Remove-AzSpringCloudApp
4343
```
4444

4545
Remove Spring Cloud App from pipe.

src/SpringCloud/docs/Remove-AzSpringCloudAppDeployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ Operation to delete a Deployment.
3232

3333
### Example 1: Remove Spring Cloud Deployment by name.
3434
```powershell
35-
PS C:\> Remove-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
35+
Remove-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
3636
```
3737

3838
Remove Spring Cloud Deployment by name.
3939

4040
### Example 2: Remove Spring Cloud Deployment from pipe.
4141
```powershell
42-
PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Remove-AzSpringCloudAppDeployment
42+
Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Remove-AzSpringCloudAppDeployment
4343
```
4444

4545
Remove Spring Cloud Deployment from pipe.

0 commit comments

Comments
 (0)