New-AzSpringCloud

Create a new Service or update an exiting Service.

Syntax

New-AzSpringCloud
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   [-Location <String>]
   [-NetworkProfileResourceGroup <String>]
   [-NetworkProfileServiceCidr <String>]
   [-NetworkProfileServiceResourceGroup <String>]
   [-NetworkProfileServiceSubnetId <String>]
   [-NetworkProfileSubnetId <String>]
   [-SkuCapacity <Int32>]
   [-SkuName <String>]
   [-SkuTier <String>]
   [-Tag <Hashtable>]
   [-ZoneRedundant]
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create a new Service or update an exiting Service.

Examples

Example 1: Create or update a new standard spring cloud service

New-AzSpringCloud -ResourceGroupName springcloudrg -Name spring-pwsh01 -Location eastus

Location Name                SystemDataCreatedAt SystemDataCreatedBy     SystemDataCreatedByType SystemDataLastModified
                                                                                                 At
-------- ----                ------------------- -------------------     ----------------------- ----------------------
eastus   springcloud-service 2022/6/28 7:59:45   ******@microsoft.com    User                    2022/6/28 7:59:45

Create or update a new standard spring cloud service.

Example 2: Create or update a new enterprise spring cloud service

New-AzSpringCloud -ResourceGroupName springcloudrg -Name espring-pwsh01 -Location eastus -SkuTier "Enterprise" -SkuName "E0"

Location Name           SystemDataCreatedAt  SystemDataCreatedBy  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName
-------- ----           -------------------  -------------------  ----------------------- ------------------------ ------------------------ ---------------------------- -----------------
eastus   espring-pwsh01 7/22/2022 7:35:40 AM v-diya@microsoft.com User                    7/22/2022 7:35:40 AM     v-diya@microsoft.com     User                         springcloudrg

Create or update a new enterprise spring cloud service .

Parameters

-AsJob

Run the command as a job

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

The GEO location of the resource.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

The name of the Service resource.

Type:String
Aliases:ServiceName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-NetworkProfileResourceGroup

Name of the resource group containing network resources for customer apps in Azure Spring Apps

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NetworkProfileServiceCidr

Azure Spring Apps service reserved CIDR

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NetworkProfileServiceResourceGroup

Name of the resource group containing network resources of Azure Spring Apps Service Runtime

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NetworkProfileServiceSubnetId

Fully qualified resource Id of the subnet to host Azure Spring Apps Service Runtime

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NetworkProfileSubnetId

Fully qualified resource Id of the subnet to host customer apps in Azure Spring Apps

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NoWait

Run the command asynchronously

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SkuCapacity

Current capacity of the target resource

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SkuName

Name of the Sku

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SkuTier

Tier of the Sku

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Tag

Tags of the service which is a list of key value pairs that describe the resource.

Type:Hashtable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ZoneRedundant

.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IServiceResource

Notes

ALIASES