Skip to content

Commit f530a4a

Browse files
authored
Merge pull request #191125 from Ja-Dunn/how-to-deploy-powershell
edit pass: how-to-deploy-powershell
2 parents 6cf3326 + a886c00 commit f530a4a

File tree

1 file changed

+35
-51
lines changed

1 file changed

+35
-51
lines changed
Lines changed: 35 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Create and deploy applications in Azure Spring Cloud using PowerShell
3-
description: How to create and deploy applications in Azure Spring Cloud using PowerShell
2+
title: Create and deploy applications in Azure Spring Cloud by using PowerShell
3+
description: How to create and deploy applications in Azure Spring Cloud by using PowerShell
44
author: karlerickson
55
ms.author: karler
66
ms.topic: conceptual
@@ -10,83 +10,76 @@ ms.date: 2/15/2022
1010
ms.custom: devx-track-azurepowershell
1111
---
1212

13-
# Create and deploy applications using PowerShell
13+
# Create and deploy applications by using PowerShell
1414

1515
**This article applies to:** ✔️ Basic/Standard tier ✔️ Enterprise tier
1616

17-
This article describes how you can create an instance of Azure Spring Cloud using the [Az.SpringCloud](/powershell/module/Az.SpringCloud) PowerShell module.
17+
This article describes how you can create an instance of Azure Spring Cloud by using the [Az.SpringCloud](/powershell/module/Az.SpringCloud) PowerShell module.
1818

1919
## Requirements
2020

21-
* If you don't have an Azure subscription, create a [free](https://azure.microsoft.com/free/) account
22-
before you begin.
21+
The requirements for completing the steps in this article depend on your Azure subscription:
22+
23+
* If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/) before you begin.
2324

2425
[!INCLUDE [azure-powershell-requirements-no-header.md](../../includes/azure-powershell-requirements-no-header.md)]
2526

2627
> [!IMPORTANT]
27-
> While the **Az.SpringCloud** PowerShell module is in preview, you must install it using
28-
> the `Install-Module` cmdlet. After this PowerShell module becomes generally available, it will be
29-
> part of future Az PowerShell releases and available by default from within Azure Cloud
30-
> Shell.
28+
> While the **Az.SpringCloud** PowerShell module is in preview, you must install it by using
29+
> the `Install-Module` cmdlet. See the following command. After this PowerShell module becomes generally available, it will be part of future Az PowerShell releases and available by default from within Azure Cloud Shell.
3130
3231
```azurepowershell-interactive
3332
Install-Module -Name Az.SpringCloud
3433
```
3534

3635
* If you have multiple Azure subscriptions, choose the appropriate subscription in which the
37-
resources should be billed. Select a specific subscription using the
38-
[Set-AzContext](/powershell/module/az.accounts/set-azcontext) cmdlet.
36+
resources should be billed. Select a specific subscription by using the [Set-AzContext](/powershell/module/az.accounts/set-azcontext) cmdlet:
3937

4038
```azurepowershell-interactive
4139
Set-AzContext -SubscriptionId 00000000-0000-0000-0000-000000000000
4240
```
4341

4442
## Create a resource group
4543

46-
Create an [Azure resource group](../azure-resource-manager/management/overview.md)
47-
using the [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup)
48-
cmdlet. A resource group is a logical container in which Azure resources are deployed and managed as
49-
a group.
50-
51-
The following example creates a resource group with the specified name and in the specified location.
44+
A resource group is a logical container in which Azure resources are deployed and managed as
45+
a group. Create an [Azure resource group](../azure-resource-manager/management/overview.md)
46+
by using the [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup)
47+
cmdlet. The following example creates a resource group with a specified name and location.
5248

5349
```azurepowershell-interactive
5450
New-AzResourceGroup -Name <resource group name> -Location eastus
5551
```
5652

57-
## Provision a new instance of Azure Spring Cloud
53+
## Provision a new instance
5854

5955
To create a new instance of Azure Spring Cloud, you use the
6056
[New-AzSpringCloud](/powershell/module/az.springcloud/new-azspringcloud) cmdlet. The following
61-
example creates an Azure Spring Cloud service with the specified name in the previously created
62-
resource group.
57+
example creates an Azure Spring Cloud service, with the name that you specified in the resource group you created previously.
6358

6459
```azurepowershell-interactive
6560
New-AzSpringCloud -ResourceGroupName <resource group name> -name <service instance name> -Location eastus
6661
```
6762

68-
## Create a new application in Azure Spring Cloud
63+
## Create a new application
6964

70-
To create a new App, you use the
71-
[New-AzSpringCloudApp](/powershell/module/az.springcloud/new-azspringcloudapp) cmdlet. The following
72-
example creates an app in Azure Spring Cloud named `gateway`.
65+
To create a new app, you use the
66+
[New-AzSpringCloudApp](/powershell/module/az.springcloud/new-azspringcloudapp) cmdlet. The following example creates an app in Azure Spring Cloud named `gateway`.
7367

7468
```azurepowershell-interactive
7569
New-AzSpringCloudApp -ResourceGroupName <resource group name> -ServiceName <service instance name> -AppName gateway
7670
```
7771

78-
## Create a new app deployment in Azure Spring Cloud
72+
## Create a new app deployment
7973

8074
To create a new app Deployment, you use the
8175
[New-AzSpringCloudAppDeployment](/powershell/module/az.springcloud/new-azspringcloudappdeployment)
82-
cmdlet. The following example creates an app deployment in Azure Spring Cloud named `default` for the
83-
`gateway` app.
76+
cmdlet. The following example creates an app deployment in Azure Spring Cloud named `default`, for the `gateway` app.
8477

8578
```azurepowershell-interactive
8679
New-AzSpringCloudAppDeployment -ResourceGroupName <resource group name> -Name <service instance name> -AppName gateway -DeploymentName default
8780
```
8881

89-
## Get an Azure Spring Cloud service
82+
## Get a service and its properties
9083

9184
To get an Azure Spring Cloud service and its properties, you use the
9285
[Get-AzSpringCloud](/powershell/module/az.springcloud/get-azspringcloud) cmdlet. The following
@@ -96,57 +89,50 @@ example retrieves information about the specified Azure Spring Cloud service.
9689
Get-AzSpringCloud -ResourceGroupName <resource group name> -ServiceName <service instance name>
9790
```
9891

99-
## Get an application in Azure Spring Cloud
92+
## Get an application
10093

10194
To get an app and its properties in Azure Spring Cloud, you use the
102-
[Get-AzSpringCloudApp](/powershell/module/az.springcloud/get-azspringcloudapp) cmdlet. The following
103-
example retrieves information about the app `gateway`.
95+
[Get-AzSpringCloudApp](/powershell/module/az.springcloud/get-azspringcloudapp) cmdlet. The following example retrieves information about the app `gateway`.
10496

10597
```azurepowershell-interactive
10698
Get-AzSpringCloudApp -ResourceGroupName <resource group name> -ServiceName <service instance name> -AppName gateway
10799
```
108100

109-
## Get an app deployment in Azure Spring Cloud
101+
## Get an app deployment
110102

111103
To get an app deployment and its properties in Azure Spring Cloud, you use the
112-
[Get-AzSpringCloudAppDeployment](/powershell/module/az.springcloud/get-azspringcloudappdeployment)
113-
cmdlet. The following example retrieves information about the `default` Spring Cloud deployment.
104+
[Get-AzSpringCloudAppDeployment](/powershell/module/az.springcloud/get-azspringcloudappdeployment) cmdlet. The following example retrieves information about the `default` Azure Spring Cloud deployment.
114105

115106
```azurepowershell-interactive
116107
Get-AzSpringCloudAppDeployment -ResourceGroupName <resource group name> -ServiceName <service instance name> -AppName gateway -DeploymentName default
117108
```
118109

119110
## Clean up resources
120111

121-
If the resources created in this article aren't needed, you can delete them by running the following
122-
examples.
112+
If the resources created in this article aren't needed, you can delete them by running the examples shown in the following sections.
123113

124-
### Delete an app deployment in Azure Spring Cloud
114+
### Delete an app deployment
125115

126116
To remove an app deployment in Azure Spring Cloud, you use the
127-
[Remove-AzSpringCloudAppDeployment](/powershell/module/az.springcloud/remove-azspringcloudappdeployment)
128-
cmdlet. The following example deletes an app deployed in Azure Spring Cloud named `default` for the
129-
specified service and app.
117+
[Remove-AzSpringCloudAppDeployment](/powershell/module/az.springcloud/remove-azspringcloudappdeployment) cmdlet. The following example deletes an app deployed in Azure Spring Cloud named `default`, for the specified service and app.
130118

131119
```azurepowershell-interactive
132120
Remove-AzSpringCloudAppDeployment -ResourceGroupName <resource group name> -ServiceName <service instance name> -AppName gateway -DeploymentName default
133121
```
134122

135-
### Delete an app in Azure Spring Cloud
123+
### Delete an app
136124

137125
To remove an app in Azure Spring Cloud, you use the
138-
[Remove-AzSpringCloudApp](/powershell/module/Az.SpringCloud/remove-azspringcloudapp) cmdlet. The
139-
following example deletes the `gateway` app in the specified service and resource group.
126+
[Remove-AzSpringCloudApp](/powershell/module/Az.SpringCloud/remove-azspringcloudapp) cmdlet. The following example deletes the `gateway` app in the specified service and resource group.
140127

141128
```azurepowershell
142129
Remove-AzSpringCloudApp -ResourceGroupName <resource group name> -ServiceName <service instance name> -AppName gateway
143130
```
144131

145-
### Delete an Azure Spring Cloud service
132+
### Delete a service
146133

147134
To remove an Azure Spring Cloud service, you use the
148-
[Remove-AzSpringCloud](/powershell/module/Az.SpringCloud/remove-azspringcloud) cmdlet. The following
149-
example deletes the specified Azure Spring Cloud service.
135+
[Remove-AzSpringCloud](/powershell/module/Az.SpringCloud/remove-azspringcloud) cmdlet. The following example deletes the specified Azure Spring Cloud service.
150136

151137
```azurepowershell
152138
Remove-AzSpringCloud -ResourceGroupName <resource group name> -ServiceName <service instance name>
@@ -155,14 +141,12 @@ Remove-AzSpringCloud -ResourceGroupName <resource group name> -ServiceName <serv
155141
### Delete the resource group
156142

157143
> [!CAUTION]
158-
> The following example deletes the specified resource group and all resources contained within it.
159-
> If resources outside the scope of this article exist in the specified resource group, they will
160-
> also be deleted.
144+
> The following example deletes the specified resource group and all resources contained within it. If resources outside the scope of this article exist in the specified resource group, they will also be deleted.
161145
162146
```azurepowershell-interactive
163147
Remove-AzResourceGroup -Name <resource group name>
164148
```
165149

166150
## Next steps
167151

168-
[Azure Spring Cloud developer resources](./resources.md).
152+
[Azure Spring Cloud developer resources](./resources.md)

0 commit comments

Comments
 (0)