diff --git a/documentation/azure-powershell-modules.md b/documentation/azure-powershell-modules.md
index 07358285d267..8beba6c6bac0 100644
--- a/documentation/azure-powershell-modules.md
+++ b/documentation/azure-powershell-modules.md
@@ -98,6 +98,7 @@ Security | `Az.Security`
Service Bus | `Az.ServiceBus` | [![ServiceBus]][ServiceBusGallery]
Service Fabric | `Az.ServiceFabric` | [![ServiceFabric]][ServiceFabricGallery]
SignalR | `Az.SignalR` | [![SignalR]][SignalRGallery]
+SpringCloud | `Az.SpringCloud` | [![SpringCloud]][SpringCloudGallery]
SQL | `Az.Sql` | [![Sql]][SqlGallery]
SQL Server on Virtual Machines | `Az.SqlVirtualMachine` | [![SqlVirtualMachine]][SqlVirtualMachineGallery]
Stack Edge | `Az.StackEdge` | [![StackEdge]][StackEdgeGallery]
@@ -204,10 +205,11 @@ Web App Service | `Az.Websites`
[ServiceBus]: https://img.shields.io/powershellgallery/v/Az.ServiceBus.svg?style=flat-square&label=Az.ServiceBus
[ServiceFabric]: https://img.shields.io/powershellgallery/v/Az.ServiceFabric.svg?style=flat-square&label=Az.ServiceFabric
[SignalR]: https://img.shields.io/powershellgallery/v/Az.SignalR.svg?style=flat-square&label=Az.SignalR
+[SpringCloud]: https://img.shields.io/powershellgallery/v/Az.SpringCloud.svg?style=flat-square&label=Az.SpringCloud
[Sql]: https://img.shields.io/powershellgallery/v/Az.Sql.svg?style=flat-square&label=Az.Sql
[SqlVirtualMachine]: https://img.shields.io/powershellgallery/v/Az.SqlVirtualMachine.svg?style=flat-square&label=Az.SqlVirtualMachine
[StackEdge]: https://img.shields.io/powershellgallery/v/Az.StackEdge.svg?style=flat-square&label=Az.StackEdge
-[StackHCI]: https://img.shields.io/powershellgallery/v/Az.StackHCI.svg?style=flat-square&label=Az.StackHCI
+[StackHCI]: https://img.shields.io/powershellgallery/v/Az.StackHCI.svg?style=flat-square&label=Az.StackHCI
[Storage]: https://img.shields.io/powershellgallery/v/Az.Storage.svg?style=flat-square&label=Az.Storage
[StorageSync]: https://img.shields.io/powershellgallery/v/Az.StorageSync.svg?style=flat-square&label=Az.StorageSync
[StreamAnalytics]: https://img.shields.io/powershellgallery/v/Az.StreamAnalytics.svg?style=flat-square&label=Az.StreamAnalytics
@@ -308,6 +310,7 @@ Web App Service | `Az.Websites`
[ServiceBusGallery]: https://www.powershellgallery.com/packages/Az.ServiceBus/
[ServiceFabricGallery]: https://www.powershellgallery.com/packages/Az.ServiceFabric/
[SignalRGallery]: https://www.powershellgallery.com/packages/Az.SignalR/
+[SpringCloudGallery]: https://www.powershellgallery.com/packages/Az.SpringCloud/
[SqlGallery]: https://www.powershellgallery.com/packages/Az.Sql/
[SqlVirtualMachineGallery]: https://www.powershellgallery.com/packages/Az.SqlVirtualMachine/
[StackEdgeGallery]: https://www.powershellgallery.com/packages/Az.StackEdge/
diff --git a/src/SpringCloud/Az.SpringCloud.csproj b/src/SpringCloud/Az.SpringCloud.csproj
new file mode 100644
index 000000000000..06904d1cfcfc
--- /dev/null
+++ b/src/SpringCloud/Az.SpringCloud.csproj
@@ -0,0 +1,7 @@
+
+
+ SpringCloud
+
+
+
+
diff --git a/src/SpringCloud/Az.SpringCloud.format.ps1xml b/src/SpringCloud/Az.SpringCloud.format.ps1xml
new file mode 100644
index 000000000000..c34e5be67f86
--- /dev/null
+++ b/src/SpringCloud/Az.SpringCloud.format.ps1xml
@@ -0,0 +1,2099 @@
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.SpringCloudIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.SpringCloudIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AppName
+
+
+ BindingName
+
+
+ CertificateName
+
+
+ DeploymentName
+
+
+ DomainName
+
+
+ Location
+
+
+ ResourceGroupName
+
+
+ ServiceName
+
+
+ SubscriptionId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceCollection
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ActiveDeploymentName
+
+
+ CreatedTime
+
+
+ Fqdn
+
+
+ HttpsOnly
+
+
+ ProvisioningState
+
+
+ Public
+
+
+ Url
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AvailableOperations
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AvailableOperations
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.BindingResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.BindingResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.BindingResourceCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.BindingResourceCollection
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.BindingResourceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.BindingResourceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CreatedAt
+
+
+ GeneratedProperty
+
+
+ Key
+
+
+ ResourceId
+
+
+ ResourceName
+
+
+ ResourceType
+
+
+ UpdatedAt
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CertificateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CertificateProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ActivateDate
+
+
+ CertVersion
+
+
+ DnsName
+
+
+ ExpirationDate
+
+
+ IssuedDate
+
+
+ Issuer
+
+
+ KeyVaultCertName
+
+
+ SubjectName
+
+
+ Thumbprint
+
+
+ VaultUri
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CertificateResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CertificateResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CertificateResourceCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CertificateResourceCollection
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CloudErrorBody
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CloudErrorBody
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+ ServiceId
+
+
+ Version
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ HostKey
+
+
+ HostKeyAlgorithm
+
+
+ Label
+
+
+ Password
+
+
+ PrivateKey
+
+
+ SearchPath
+
+
+ StrictHostKeyChecking
+
+
+ Uri
+
+
+ Username
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+
+
+
+
+
+
+
+
+
+
+
+ State
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AppName
+
+
+ CertName
+
+
+ Thumbprint
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainResourceCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainResourceCollection
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainValidatePayload
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainValidatePayload
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainValidateResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.CustomDomainValidateResult
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ IsValid
+
+
+ Message
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentInstance
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentInstance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DiscoveryStatus
+
+
+ Name
+
+
+ Reason
+
+
+ Status
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceCollection
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Active
+
+
+ AppName
+
+
+ CreatedTime
+
+
+ ProvisioningState
+
+
+ Status
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cpu
+
+
+ InstanceCount
+
+
+ JvmOption
+
+
+ MemoryInGb
+
+
+ RuntimeVersion
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.GitPatternRepository
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.GitPatternRepository
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ HostKey
+
+
+ HostKeyAlgorithm
+
+
+ Label
+
+
+ Name
+
+
+ Password
+
+
+ Pattern
+
+
+ PrivateKey
+
+
+ SearchPath
+
+
+ StrictHostKeyChecking
+
+
+ Uri
+
+
+ Username
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.LogFileUrlResponse
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.LogFileUrlResponse
+
+
+
+
+
+
+
+
+
+
+
+ Url
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.LogSpecification
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.LogSpecification
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BlobDuration
+
+
+ DisplayName
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PrincipalId
+
+
+ TenantId
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.MetricDimension
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.MetricDimension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DisplayName
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.MetricSpecification
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.MetricSpecification
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AggregationType
+
+
+ Category
+
+
+ DisplayDescription
+
+
+ DisplayName
+
+
+ FillGapWithZero
+
+
+ Name
+
+
+ SupportedAggregationType
+
+
+ SupportedTimeGrainType
+
+
+ Unit
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NameAvailability
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NameAvailability
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Message
+
+
+ NameAvailable
+
+
+ Reason
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NameAvailabilityParameters
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NameAvailabilityParameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AppNetworkResourceGroup
+
+
+ AppSubnetId
+
+
+ ServiceCidr
+
+
+ ServiceRuntimeNetworkResourceGroup
+
+
+ ServiceRuntimeSubnetId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.OperationDetail
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.OperationDetail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ IsDataAction
+
+
+ Name
+
+
+ Origin
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.OperationDisplay
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.OperationDisplay
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ Operation
+
+
+ Provider
+
+
+ Resource
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MountPath
+
+
+ SizeInGb
+
+
+ UsedInGb
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ProxyResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ProxyResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.RegenerateTestKeyRequestPayload
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.RegenerateTestKeyRequestPayload
+
+
+
+
+
+
+
+
+
+
+
+ KeyType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Resource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Resource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSku
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSku
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceType
+
+
+ Tier
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuCapabilities
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuCapabilities
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Value
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuCollection
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuLocationInfo1
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuLocationInfo1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Zone
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuRestrictionInfo
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuRestrictionInfo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Zone
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuRestrictions1
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuRestrictions1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ReasonCode
+
+
+ Type
+
+
+ Value
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuZoneDetails
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceSkuZoneDetails
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceUploadDefinition
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ResourceUploadDefinition
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ RelativePath
+
+
+ UploadUrl
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ServiceResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ServiceResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ServiceResourceList
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ServiceResourceList
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Capacity
+
+
+ Name
+
+
+ Tier
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.SkuCapacity
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.SkuCapacity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Default
+
+
+ Maximum
+
+
+ Minimum
+
+
+ ScaleType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MountPath
+
+
+ SizeInGb
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TestKeys
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TestKeys
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Enabled
+
+
+ PrimaryKey
+
+
+ PrimaryTestEndpoint
+
+
+ SecondaryKey
+
+
+ SecondaryTestEndpoint
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AppInsightInstrumentationKey
+
+
+ Enabled
+
+
+ State
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+
+ Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ArtifactSelector
+
+
+ RelativePath
+
+
+ Type
+
+
+ Version
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/SpringCloud/Az.SpringCloud.psd1 b/src/SpringCloud/Az.SpringCloud.psd1
new file mode 100644
index 000000000000..dcfc02800bc9
--- /dev/null
+++ b/src/SpringCloud/Az.SpringCloud.psd1
@@ -0,0 +1,140 @@
+#
+# Module manifest for module 'Az.SpringCloud'
+#
+# Generated by: Microsoft Corporation
+#
+# Generated on: 2020-08-20
+#
+
+@{
+
+# Script module or binary module file associated with this manifest.
+RootModule = './Az.SpringCloud.psm1'
+
+# Version number of this module.
+ModuleVersion = '0.1.0'
+
+# Supported PSEditions
+CompatiblePSEditions = 'Core', 'Desktop'
+
+# ID used to uniquely identify this module
+GUID = '697e18d3-95de-4211-86a1-ec7c4e163874'
+
+# Author of this module
+Author = 'Microsoft Corporation'
+
+# Company or vendor of this module
+CompanyName = 'Microsoft Corporation'
+
+# Copyright statement for this module
+Copyright = 'Microsoft Corporation. All rights reserved.'
+
+# Description of the functionality provided by this module
+Description = 'Microsoft Azure PowerShell: SpringCloud cmdlets'
+
+# Minimum version of the PowerShell engine required by this module
+PowerShellVersion = '5.1'
+
+# Name of the PowerShell host required by this module
+# PowerShellHostName = ''
+
+# Minimum version of the PowerShell host required by this module
+# PowerShellHostVersion = ''
+
+# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
+DotNetFrameworkVersion = '4.7.2'
+
+# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
+# ClrVersion = ''
+
+# Processor architecture (None, X86, Amd64) required by this module
+# ProcessorArchitecture = ''
+
+# Modules that must be imported into the global environment prior to importing this module
+# RequiredModules = @()
+
+# Assemblies that must be loaded prior to importing this module
+RequiredAssemblies = './bin/Az.SpringCloud.private.dll'
+
+# Script files (.ps1) that are run in the caller's environment prior to importing this module.
+# ScriptsToProcess = @()
+
+# Type files (.ps1xml) to be loaded when importing this module
+# TypesToProcess = @()
+
+# Format files (.ps1xml) to be loaded when importing this module
+FormatsToProcess = './Az.SpringCloud.format.ps1xml'
+
+# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
+# NestedModules = @()
+
+# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
+FunctionsToExport = 'Deploy-AzSpringCloudApp', 'Get-AzSpringCloud',
+ 'Get-AzSpringCloudApp', 'Get-AzSpringCloudAppDeployment',
+ 'New-AzSpringCloud', 'New-AzSpringCloudApp',
+ 'New-AzSpringCloudAppDeployment', 'Remove-AzSpringCloud',
+ 'Remove-AzSpringCloudApp', 'Remove-AzSpringCloudAppDeployment',
+ 'Restart-AzSpringCloudAppDeployment',
+ 'Start-AzSpringCloudAppDeployment',
+ 'Stop-AzSpringCloudAppDeployment', 'Update-AzSpringCloud',
+ 'Update-AzSpringCloudApp', 'Update-AzSpringCloudAppDeployment'
+
+# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
+CmdletsToExport = @()
+
+# Variables to export from this module
+# VariablesToExport = @()
+
+# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
+AliasesToExport = '*'
+
+# DSC resources to export from this module
+# DscResourcesToExport = @()
+
+# List of all modules packaged with this module
+# ModuleList = @()
+
+# List of all files packaged with this module
+# FileList = @()
+
+# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
+PrivateData = @{
+
+ PSData = @{
+
+ # Tags applied to this module. These help with module discovery in online galleries.
+ Tags = 'Azure','ResourceManager','ARM','PSModule','SpringCloud'
+
+ # A URL to the license for this module.
+ LicenseUri = 'https://aka.ms/azps-license'
+
+ # A URL to the main website for this project.
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+
+ # A URL to an icon representing this module.
+ # IconUri = ''
+
+ # ReleaseNotes of this module
+ ReleaseNotes = 'First preview release for module Az.SpringCloud.'
+
+ # Prerelease string of this module
+ # Prerelease = ''
+
+ # Flag to indicate whether the module requires explicit user acceptance for install/update/save
+ # RequireLicenseAcceptance = $false
+
+ # External dependent modules of this module
+ # ExternalModuleDependencies = @()
+
+ } # End of PSData hashtable
+
+ } # End of PrivateData hashtable
+
+# HelpInfo URI of this module
+# HelpInfoURI = ''
+
+# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
+# DefaultCommandPrefix = ''
+
+}
+
diff --git a/src/SpringCloud/Az.SpringCloud.psm1 b/src/SpringCloud/Az.SpringCloud.psm1
new file mode 100644
index 000000000000..a0a37e79c3b6
--- /dev/null
+++ b/src/SpringCloud/Az.SpringCloud.psm1
@@ -0,0 +1,109 @@
+# region Generated
+ # ----------------------------------------------------------------------------------
+ #
+ # Copyright Microsoft Corporation
+ # Licensed under the Apache License, Version 2.0 (the "License");
+ # you may not use this file except in compliance with the License.
+ # You may obtain a copy of the License at
+ # http://www.apache.org/licenses/LICENSE-2.0
+ # Unless required by applicable law or agreed to in writing, software
+ # distributed under the License is distributed on an "AS IS" BASIS,
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+ # ----------------------------------------------------------------------------------
+ # Load required Az.Accounts module
+ $accountsName = 'Az.Accounts'
+ $accountsModule = Get-Module -Name $accountsName
+ if(-not $accountsModule) {
+ $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules'
+ if(Test-Path -Path $localAccountsPath) {
+ $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1
+ if($localAccounts) {
+ $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru
+ }
+ }
+ if(-not $accountsModule) {
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.8.1' } | Measure-Object).Count -gt 0
+ if($hasAdequateVersion) {
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.8.1 -Scope Global -PassThru
+ }
+ }
+ }
+
+ if(-not $accountsModule) {
+ Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
+ } elseif (($accountsModule.Version -lt [System.Version]'1.8.1') -and (-not $localAccounts)) {
+ Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
+ }
+ Write-Information "Loaded Module '$($accountsModule.Name)'"
+
+ # Load the private module dll
+ $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.SpringCloud.private.dll')
+
+ # Get the private module's instance
+ $instance = [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Module]::Instance
+
+ # Ask for the shared functionality table
+ $VTable = Register-AzModule
+
+ # Tweaks the pipeline on module load
+ $instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Tweaks the pipeline per call
+ $instance.OnNewRequest = $VTable.OnNewRequest
+
+ # Gets shared parameter values
+ $instance.GetParameterValue = $VTable.GetParameterValue
+
+ # Allows shared module to listen to events from this module
+ $instance.EventListener = $VTable.EventListener
+
+ # Gets shared argument completers
+ $instance.ArgumentCompleter = $VTable.ArgumentCompleter
+
+ # The name of the currently selected Azure profile
+ $instance.ProfileName = $VTable.ProfileName
+
+
+ # Load the custom module
+ $customModulePath = Join-Path $PSScriptRoot './custom/Az.SpringCloud.custom.psm1'
+ if(Test-Path $customModulePath) {
+ $null = Import-Module -Name $customModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export proxy cmdlet scripts
+ $exportsPath = Join-Path $PSScriptRoot './exports'
+ $directories = Get-ChildItem -Directory -Path $exportsPath
+ $profileDirectory = $null
+ if($instance.ProfileName) {
+ if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) {
+ $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName }
+ } else {
+ # Don't export anything if the profile doesn't exist for the module
+ $exportsPath = $null
+ Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded."
+ }
+ } elseif(($directories | Measure-Object).Count -gt 0) {
+ # Load the last folder if no profile is selected
+ $profileDirectory = $directories | Select-Object -Last 1
+ }
+
+ if($profileDirectory) {
+ Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
+ $exportsPath = $profileDirectory.FullName
+ }
+
+ if($exportsPath) {
+ Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
+ Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias)
+ }
+
+ # Finalize initialization of this module
+ $instance.Init();
+ Write-Information "Loaded Module '$($instance.Name)'"
+# endregion
diff --git a/src/SpringCloud/Changelog.md b/src/SpringCloud/Changelog.md
new file mode 100644
index 000000000000..c7cb372a3e05
--- /dev/null
+++ b/src/SpringCloud/Changelog.md
@@ -0,0 +1,24 @@
+
+## Upcoming Release
+
+## Version 0.1.0
+* First preview release for module Az.SpringCloud.
+
diff --git a/src/SpringCloud/MSSharedLibKey.snk b/src/SpringCloud/MSSharedLibKey.snk
new file mode 100644
index 000000000000..695f1b38774e
Binary files /dev/null and b/src/SpringCloud/MSSharedLibKey.snk differ
diff --git a/src/SpringCloud/Properties/AssemblyInfo.cs b/src/SpringCloud/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..d01a67c36f9c
--- /dev/null
+++ b/src/SpringCloud/Properties/AssemblyInfo.cs
@@ -0,0 +1,28 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Microsoft Azure Powershell - SpringCloud")]
+[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
+[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
+[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(false)]
+[assembly: Guid("37fbef8b-1e31-424f-9d6c-4f27c0a49965")]
+[assembly: AssemblyVersion("0.1.0")]
+[assembly: AssemblyFileVersion("0.1.0")]
diff --git a/src/SpringCloud/SpringCloud.sln b/src/SpringCloud/SpringCloud.sln
new file mode 100644
index 000000000000..17f688ea3c93
--- /dev/null
+++ b/src/SpringCloud/SpringCloud.sln
@@ -0,0 +1,48 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.SpringCloud", "Az.SpringCloud.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU
+ {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030}
+ EndGlobalSection
+EndGlobal
diff --git a/src/SpringCloud/build-module.ps1 b/src/SpringCloud/build-module.ps1
new file mode 100644
index 000000000000..677c48d8ebfb
--- /dev/null
+++ b/src/SpringCloud/build-module.ps1
@@ -0,0 +1,153 @@
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
+$ErrorActionPreference = 'Stop'
+
+if($PSEdition -ne 'Core') {
+ Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
+}
+
+if(-not $Isolated -and -not $Debugger) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+
+ if($LastExitCode -ne 0) {
+ # Build failed. Don't attempt to run the module.
+ return
+ }
+
+ if($Test) {
+ . (Join-Path $PSScriptRoot 'test-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Tests failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Docs) {
+ . (Join-Path $PSScriptRoot 'generate-help.ps1')
+ if($LastExitCode -ne 0) {
+ # Docs generation failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Pack) {
+ . (Join-Path $PSScriptRoot 'pack-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Packing failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ $runModulePath = Join-Path $PSScriptRoot 'run-module.ps1'
+ if($Code) {
+ . $runModulePath -Code
+ } elseif($Run) {
+ . $runModulePath
+ } else {
+ Write-Host -ForegroundColor Cyan "To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script."
+ }
+ return
+}
+
+$binFolder = Join-Path $PSScriptRoot 'bin'
+$objFolder = Join-Path $PSScriptRoot 'obj'
+
+if(-not $Debugger) {
+ Write-Host -ForegroundColor Green 'Cleaning build folders...'
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
+
+ if((Test-Path $binFolder) -or (Test-Path $objFolder)) {
+ Write-Host -ForegroundColor Cyan 'Did you forget to exit your isolated module session before rebuilding?'
+ Write-Error 'Unable to clean ''bin'' or ''obj'' folder. A process may have an open handle.'
+ }
+
+ Write-Host -ForegroundColor Green 'Compiling module...'
+ $buildConfig = 'Debug'
+ if($Release) {
+ $buildConfig = 'Release'
+ }
+ dotnet publish $PSScriptRoot --verbosity quiet --configuration $buildConfig /nologo
+ if($LastExitCode -ne 0) {
+ Write-Error 'Compilation failed.'
+ }
+
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release')
+}
+
+$dll = Join-Path $PSScriptRoot 'bin\Az.SpringCloud.private.dll'
+if(-not (Test-Path $dll)) {
+ Write-Error "Unable to find output assembly in '$binFolder'."
+}
+
+# Load DLL to use build-time cmdlets
+$null = Import-Module -Name $dll
+
+$modulePaths = $dll
+$customPsm1 = Join-Path $PSScriptRoot 'custom\Az.SpringCloud.custom.psm1'
+if(Test-Path $customPsm1) {
+ $modulePaths = @($dll, $customPsm1)
+}
+
+$exportsFolder = Join-Path $PSScriptRoot 'exports'
+if(Test-Path $exportsFolder) {
+ $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $exportsFolder
+
+$internalFolder = Join-Path $PSScriptRoot 'internal'
+if(Test-Path $internalFolder) {
+ $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $internalFolder
+
+$psd1 = Join-Path $PSScriptRoot './Az.SpringCloud.psd1'
+$guid = Get-ModuleGuid -Psd1Path $psd1
+$moduleName = 'Az.SpringCloud'
+$examplesFolder = Join-Path $PSScriptRoot 'examples'
+$null = New-Item -ItemType Directory -Force -Path $examplesFolder
+
+if($NoDocs) {
+ Write-Host -ForegroundColor Green 'Creating exports...'
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs
+} else {
+ Write-Host -ForegroundColor Green 'Creating exports and docs...'
+ $moduleDescription = 'Microsoft Azure PowerShell: SpringCloud cmdlets'
+ $docsFolder = Join-Path $PSScriptRoot 'docs'
+ if(Test-Path $docsFolder) {
+ $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+ }
+ $null = New-Item -ItemType Directory -Force -Path $docsFolder
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
+}
+
+Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
+$formatPs1xml = Join-Path $PSScriptRoot './Az.SpringCloud.format.ps1xml'
+Export-FormatPs1xml -FilePath $formatPs1xml
+
+Write-Host -ForegroundColor Green 'Creating psd1...'
+$customFolder = Join-Path $PSScriptRoot 'custom'
+Export-Psd1 -ExportsFolder $exportsFolder -CustomFolder $customFolder -Psd1Path $psd1 -ModuleGuid $guid
+
+Write-Host -ForegroundColor Green 'Creating test stubs...'
+$testFolder = Join-Path $PSScriptRoot 'test'
+$null = New-Item -ItemType Directory -Force -Path $testFolder
+Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFolder $testFolder
+
+Write-Host -ForegroundColor Green 'Creating example stubs...'
+Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
diff --git a/src/SpringCloud/check-dependencies.ps1 b/src/SpringCloud/check-dependencies.ps1
new file mode 100644
index 000000000000..513c52ca2fb5
--- /dev/null
+++ b/src/SpringCloud/check-dependencies.ps1
@@ -0,0 +1,64 @@
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+$ErrorActionPreference = 'Stop'
+
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
+ if($predicate) {
+ $module = Get-Module -ListAvailable -Name $moduleName
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) {
+ $null = New-Item -ItemType Directory -Force -Path $path
+ Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
+ if ($requiredVersion) {
+ Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path
+ }elseif($versionMinimum) {
+ Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path
+ } else {
+ Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path
+ }
+ }
+ }
+}
+
+$ProgressPreference = 'SilentlyContinue'
+$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1
+
+$localModulesPath = Join-Path $PSScriptRoot 'generated\modules'
+if(Test-Path -Path $localModulesPath) {
+ $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
+}
+
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.8.1'
+DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
+
+$tools = Join-Path $PSScriptRoot 'tools'
+$resourceDir = Join-Path $tools 'Resources'
+$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1'
+
+if ($Resources.IsPresent -and (-not (Test-Path -Path $resourceModule))) {
+ Write-Host -ForegroundColor Green "Building local Resource module used for test..."
+ Set-Location $resourceDir
+ $null = autorest-beta .\readme.md --output-folder=$HOME/.PSSharedModules/Resources
+ $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/
+ Set-Location $HOME/.PSSharedModules/Resources
+ $null = .\build-module.ps1
+ Set-Location $PSScriptRoot
+}
diff --git a/src/SpringCloud/custom/Az.SpringCloud.custom.psm1 b/src/SpringCloud/custom/Az.SpringCloud.custom.psm1
new file mode 100644
index 000000000000..c08c4fe96ff5
--- /dev/null
+++ b/src/SpringCloud/custom/Az.SpringCloud.custom.psm1
@@ -0,0 +1,17 @@
+# region Generated
+ # Load the private module dll
+ $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.SpringCloud.private.dll')
+
+ # Load the internal module
+ $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.SpringCloud.internal.psm1'
+ if(Test-Path $internalModulePath) {
+ $null = Import-Module -Name $internalModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export script cmdlets
+ Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias)
+# endregion
diff --git a/src/SpringCloud/custom/Deploy-AzSpringCloudApp.ps1 b/src/SpringCloud/custom/Deploy-AzSpringCloudApp.ps1
new file mode 100644
index 000000000000..63cae7192f17
--- /dev/null
+++ b/src/SpringCloud/custom/Deploy-AzSpringCloudApp.ps1
@@ -0,0 +1,167 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Deploy the built jar to service.
+.Description
+Deploy the built jar to service.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.SpringCloud/deploy-azSpringCloudapp
+#>
+function Deploy-AzSpringCloudApp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The path of the jar need to be deploied.
+ ${JarPath},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+
+ process {
+ $DeployPSBoundParameters = @{}
+ if ($PSBoundParameters.ContainsKey('HttpPipelineAppend')) {
+ $DeployPSBoundParameters['HttpPipelineAppend'] = $HttpPipelineAppend
+ }
+ if ($PSBoundParameters.ContainsKey('HttpPipelinePrepend')) {
+ $DeployPSBoundParameters['HttpPipelinePrepend'] = $HttpPipelinePrepend
+ }
+ $DeployPSBoundParameters['SubscriptionId'] = $SubscriptionId
+
+ Write-Host '[1/3] Requesting for upload URL' -ForegroundColor Yellow
+ $UploadInfo = Az.SpringCloud.internal\Get-AzSpringCloudAppResourceUploadUrl -ResourceGroupName $ResourceGroupName -serviceName $ServiceName -AppName $Name @DeployPSBoundParameters
+ $UploadUrl = $UploadInfo.UploadUrl
+ $Uri = [System.Uri]::New($UploadUrl.Split('?')[0])
+ $SasToken = $UploadUrl.Split('?')[-1]
+ $StorageCredentials = [Microsoft.WindowsAzure.Storage.Auth.StorageCredentials]::New($SasToken)
+ $CloudFile = [Microsoft.WindowsAzure.Storage.File.CloudFile]::New($Uri, $StorageCredentials)
+
+ Write-Host '[2/3] Uploading package to blob' -ForegroundColor Yellow
+ $UploadTask = $CloudFile.UploadFromFileAsync($JarPath)
+ try {
+ $null = $UploadTask.GetAwaiter().GetResult()
+ }
+ catch {
+ Write-Error $_.Exception
+ return
+ }
+ Write-Host "[3/3] Updating deployment in app $Name (this operation can take a while to complete)" -ForegroundColor Yellow
+ $App = Get-AzSpringCloudApp -ResourceGroupName $ResourceGroupName -ServiceName $ServiceName -AppName $Name @DeployPSBoundParameters
+ Update-AzSpringCloudAppDeployment -ResourceGroupName $ResourceGroupName -ServiceName $ServiceName -AppName $Name -DeploymentName $App.ActiveDeploymentName -SourceRelativePath $UploadInfo.RelativePath @DeployPSBoundParameters
+ Start-AzSpringCloudAppDeployment -ResourceGroupName $ResourceGroupName -ServiceName $ServiceName -AppName $Name -DeploymentName $App.ActiveDeploymentName @DeployPSBoundParameters
+ }
+}
diff --git a/src/SpringCloud/custom/Get-AzSpringCloud.ps1 b/src/SpringCloud/custom/Get-AzSpringCloud.ps1
new file mode 100644
index 000000000000..16b1e38f35a4
--- /dev/null
+++ b/src/SpringCloud/custom/Get-AzSpringCloud.ps1
@@ -0,0 +1,140 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get a Service and its properties.
+.Description
+Get a Service and its properties.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/get-azspringcloud
+#>
+function Get-AzSpringCloud {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ Az.SpringCloud.internal\Get-AzSpringCloudService @PSBoundParameters
+ }
+}
diff --git a/src/SpringCloud/custom/New-AzSpringCloud.ps1 b/src/SpringCloud/custom/New-AzSpringCloud.ps1
new file mode 100644
index 000000000000..e9e46a869c03
--- /dev/null
+++ b/src/SpringCloud/custom/New-AzSpringCloud.ps1
@@ -0,0 +1,188 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a new Service or update an exiting Service.
+.Description
+Create a new Service or update an exiting Service.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+GITPROPERTYREPOSITORY : Repositories of git.
+ Name : Name of the repository
+ Uri : URI of the repository
+ [HostKey ]: Public sshKey of git repository.
+ [HostKeyAlgorithm ]: SshKey algorithm of git repository.
+ [Label ]: Label of the repository
+ [Password ]: Password of git repository basic auth.
+ [Pattern ]: Collection of pattern of the repository
+ [PrivateKey ]: Private sshKey algorithm of git repository.
+ [SearchPath ]: Searching path of the repository
+ [StrictHostKeyChecking ]: Strict host key checking or not.
+ [Username ]: Username of git repository basic auth.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/new-azspringcloud
+#>
+function New-AzSpringCloud {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # URI of the repository
+ ${GitPropertyUri},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the resource.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the Sku
+ ${SkuName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Tier of the Sku
+ ${SkuTier},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Tags of the service which is a list of key value pairs that describe the resource.
+ ${Tag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Target application insight instrumentation key
+ ${TraceAppInsightInstrumentationKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether enable the tracing functionality
+ ${TraceEnabled},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ if (-not $PSBoundParameters.ContainsKey('Location')) {
+ $ResourceGroup = Get-AzResourceGroup -Name $ResourceGroupName
+ $PSBoundParameters.Add('Location', $ResourceGroup.Location)
+ }
+ Az.SpringCloud.internal\New-AzSpringCloudService @PSBoundParameters
+ }
+}
diff --git a/src/SpringCloud/custom/New-AzSpringCloudApp.ps1 b/src/SpringCloud/custom/New-AzSpringCloudApp.ps1
new file mode 100644
index 000000000000..69d8944731ef
--- /dev/null
+++ b/src/SpringCloud/custom/New-AzSpringCloudApp.ps1
@@ -0,0 +1,190 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a new App or update an exiting App.
+.Description
+Create a new App or update an exiting App.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/new-azspringcloudapp
+#>
+function New-AzSpringCloudApp {
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+ [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+ param(
+ [Parameter(Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the active deployment of the App
+ ${ActiveDeploymentName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Fully qualified dns Name.
+ ${Fqdn},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicate if only https is allowed.
+ ${HttpsOnly},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the application, always the same with its parent resource
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the persistent disk
+ ${PersistentDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the persistent disk in GB
+ ${PersistentDiskSizeInGb},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether the App exposes public endpoint
+ ${Public},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the temporary disk
+ ${TemporaryDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the temporary disk in GB
+ ${TemporaryDiskSizeInGb},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+ )
+
+
+ process {
+ if (-not $PSBoundParameters.ContainsKey('Location')) {
+ $ResourceGroup = Get-AzResourceGroup -Name $ResourceGroupName
+ $PSBoundParameters.Add('Location', $ResourceGroup.Location)
+ }
+ Az.SpringCloud.internal\New-AzSpringCloudApp @PSBoundParameters
+ }
+}
+
\ No newline at end of file
diff --git a/src/SpringCloud/custom/New-AzSpringCloudAppDeployment.ps1 b/src/SpringCloud/custom/New-AzSpringCloudAppDeployment.ps1
new file mode 100644
index 000000000000..a5e30a563b39
--- /dev/null
+++ b/src/SpringCloud/custom/New-AzSpringCloudAppDeployment.ps1
@@ -0,0 +1,230 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a new Deployment or update an exiting Deployment.
+.Description
+Create a new Deployment or update an exiting Deployment.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.SpringCloud/new-azSpringCloudappdeployment
+#>
+function New-AzSpringCloudAppDeployment {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required CPU
+ ${Cpu},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentSettingsEnvironmentVariables]))]
+ [System.Collections.Hashtable]
+ # Collection of environment variables
+ ${EnvironmentVariable},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Instance count
+ ${InstanceCount},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # JVM parameter
+ ${JvmOption},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required Memory size in GB
+ ${MemoryInGb},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion]
+ # Runtime version
+ ${RuntimeVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Selector for the artifact to be used for the deployment for multi-module projects.
+ # This should bethe relative path to the target module/project.
+ ${SourceArtifactSelector},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Relative path of the storage which stores the source
+ ${SourceRelativePath} = "",
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType]
+ # Type of the source uploaded
+ ${SourceType} = "Jar",
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Version of the source
+ ${SourceVersion},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ if ($PSBoundParameters.ContainsKey('Cpu')) {
+ $PSBoundParameters.Add('DeploymentSettingCpu', $Cpu)
+ $Null = $PSBoundParameters.Remove('Cpu')
+ }
+ if ($PSBoundParameters.ContainsKey('EnvironmentVariable')) {
+ $PSBoundParameters.Add('DeploymentSettingEnvironmentVariable', $EnvironmentVariable)
+ $Null = $PSBoundParameters.Remove('EnvironmentVariable')
+ }
+ if ($PSBoundParameters.ContainsKey('InstanceCount')) {
+ $PSBoundParameters.Add('DeploymentSettingInstanceCount', $InstanceCount)
+ $Null = $PSBoundParameters.Remove('InstanceCount')
+ }
+ if ($PSBoundParameters.ContainsKey('JvmOption')) {
+ $PSBoundParameters.Add('DeploymentSettingJvmOption', $JvmOption)
+ $Null = $PSBoundParameters.Remove('JvmOption')
+ }
+ if ($PSBoundParameters.ContainsKey('MemoryInGb')) {
+ $PSBoundParameters.Add('DeploymentSettingMemoryInGb', $MemoryInGb)
+ $Null = $PSBoundParameters.Remove('MemoryInGb')
+ }
+ if ($PSBoundParameters.ContainsKey('RuntimeVersion')) {
+ $PSBoundParameters.Add('DeploymentSettingRuntimeVersion', $RuntimeVersion)
+ $Null = $PSBoundParameters.Remove('RuntimeVersion')
+ }
+ if (-not $PSBoundParameters.ContainsKey('SourceRelativePath')) {
+ $PSBoundParameters.Add('SourceRelativePath', $SourceRelativePath)
+ }
+ if (-not $PSBoundParameters.ContainsKey('SourceType')) {
+ $PSBoundParameters.Add('SourceType', $SourceType)
+ }
+ Az.SpringCloud.internal\New-AzSpringCloudAppDeployment @PSBoundParameters
+ }
+}
diff --git a/src/SpringCloud/custom/Remove-AzSpringCloud.ps1 b/src/SpringCloud/custom/Remove-AzSpringCloud.ps1
new file mode 100644
index 000000000000..033bf46eaf9e
--- /dev/null
+++ b/src/SpringCloud/custom/Remove-AzSpringCloud.ps1
@@ -0,0 +1,155 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to delete a Service.
+.Description
+Operation to delete a Service.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/remove-azspringcloud
+#>
+function Remove-AzSpringCloud {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ Az.SpringCloud.internal\Remove-AzSpringCloudService @PSBoundParameters
+ }
+}
diff --git a/src/SpringCloud/custom/Update-AzSpringCloud.ps1 b/src/SpringCloud/custom/Update-AzSpringCloud.ps1
new file mode 100644
index 000000000000..19ead3d5cec6
--- /dev/null
+++ b/src/SpringCloud/custom/Update-AzSpringCloud.ps1
@@ -0,0 +1,205 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to update an exiting Service.
+.Description
+Operation to update an exiting Service.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+GITPROPERTYREPOSITORY : Repositories of git.
+ Name : Name of the repository
+ Uri : URI of the repository
+ [HostKey ]: Public sshKey of git repository.
+ [HostKeyAlgorithm ]: SshKey algorithm of git repository.
+ [Label ]: Label of the repository
+ [Password ]: Password of git repository basic auth.
+ [Pattern ]: Collection of pattern of the repository
+ [PrivateKey ]: Private sshKey algorithm of git repository.
+ [SearchPath ]: Searching path of the repository
+ [StrictHostKeyChecking ]: Strict host key checking or not.
+ [Username ]: Username of git repository basic auth.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/update-azspringcloud
+#>
+function Update-AzSpringCloud {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # URI of the repository
+ ${GitPropertyUri},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the resource.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the Sku
+ ${SkuName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Tier of the Sku
+ ${SkuTier},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Tags of the service which is a list of key value pairs that describe the resource.
+ ${Tag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Target application insight instrumentation key
+ ${TraceAppInsightInstrumentationKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether enable the tracing functionality
+ ${TraceEnabled},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ Az.SpringCloud.internal\Update-AzSpringCloudService @PSBoundParameters
+ }
+}
diff --git a/src/SpringCloud/custom/Update-AzSpringCloudApp.ps1 b/src/SpringCloud/custom/Update-AzSpringCloudApp.ps1
new file mode 100644
index 000000000000..a6fcc7b82bf7
--- /dev/null
+++ b/src/SpringCloud/custom/Update-AzSpringCloudApp.ps1
@@ -0,0 +1,210 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to update an exiting App.
+.Description
+Operation to update an exiting App.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/update-azspringcloudapp
+#>
+function Update-AzSpringCloudApp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the active deployment of the App
+ ${ActiveDeploymentName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Fully qualified dns Name.
+ ${Fqdn},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicate if only https is allowed.
+ ${HttpsOnly},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the application, always the same with its parent resource
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the persistent disk
+ ${PersistentDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the persistent disk in GB
+ ${PersistentDiskSizeInGb},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether the App exposes public endpoint
+ ${Public},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the temporary disk
+ ${TemporaryDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the temporary disk in GB
+ ${TemporaryDiskSizeInGb},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+
+ process {
+ Az.SpringCloud.internal\Update-AzSpringCloudApp @PSBoundParameters
+ }
+}
diff --git a/src/SpringCloud/custom/Update-AzSpringCloudAppDeployment.ps1 b/src/SpringCloud/custom/Update-AzSpringCloudAppDeployment.ps1
new file mode 100644
index 000000000000..e999f53cc392
--- /dev/null
+++ b/src/SpringCloud/custom/Update-AzSpringCloudAppDeployment.ps1
@@ -0,0 +1,248 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to update an exiting Deployment.
+.Description
+Operation to update an exiting Deployment.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.SpringCloud/update-azSpringCloudappdeployment
+#>
+function Update-AzSpringCloudAppDeployment {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required CPU
+ ${Cpu},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentSettingsEnvironmentVariables]))]
+ [System.Collections.Hashtable]
+ # Collection of environment variables
+ ${EnvironmentVariable},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Instance count
+ ${InstanceCount},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # JVM parameter
+ ${JvmOption},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required Memory size in GB
+ ${MemoryInGb},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion]
+ # Runtime version
+ ${RuntimeVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Selector for the artifact to be used for the deployment for multi-module projects.
+ # This should bethe relative path to the target module/project.
+ ${SourceArtifactSelector},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Relative path of the storage which stores the source
+ ${SourceRelativePath},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType]
+ # Type of the source uploaded
+ ${SourceType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Version of the source
+ ${SourceVersion},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+ process {
+ if ($PSBoundParameters.ContainsKey('Cpu')) {
+ $PSBoundParameters.Add('DeploymentSettingCpu', $Cpu)
+ $Null = $PSBoundParameters.Remove('Cpu')
+ }
+ if ($PSBoundParameters.ContainsKey('EnvironmentVariable')) {
+ $PSBoundParameters.Add('DeploymentSettingEnvironmentVariable', $EnvironmentVariable)
+ $Null = $PSBoundParameters.Remove('EnvironmentVariable')
+ }
+ if ($PSBoundParameters.ContainsKey('InstanceCount')) {
+ $PSBoundParameters.Add('DeploymentSettingInstanceCount', $InstanceCount)
+ $Null = $PSBoundParameters.Remove('InstanceCount')
+ }
+ if ($PSBoundParameters.ContainsKey('JvmOption')) {
+ $PSBoundParameters.Add('DeploymentSettingJvmOption', $JvmOption)
+ $Null = $PSBoundParameters.Remove('JvmOption')
+ }
+ if ($PSBoundParameters.ContainsKey('MemoryInGb')) {
+ $PSBoundParameters.Add('DeploymentSettingMemoryInGb', $MemoryInGb)
+ $Null = $PSBoundParameters.Remove('MemoryInGb')
+ }
+ if ($PSBoundParameters.ContainsKey('RuntimeVersion')) {
+ $PSBoundParameters.Add('DeploymentSettingRuntimeVersion', $RuntimeVersion)
+ $Null = $PSBoundParameters.Remove('RuntimeVersion')
+ }
+ Az.SpringCloud.internal\Update-AzSpringCloudAppDeployment @PSBoundParameters
+ }
+}
diff --git a/src/SpringCloud/custom/readme.md b/src/SpringCloud/custom/readme.md
new file mode 100644
index 000000000000..f4252ea5c52b
--- /dev/null
+++ b/src/SpringCloud/custom/readme.md
@@ -0,0 +1,41 @@
+# Custom
+This directory contains custom implementation for non-generated cmdlets for the `Az.SpringCloud` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.SpringCloud.custom.psm1`. This file should not be modified.
+
+## Info
+- Modifiable: yes
+- Generated: partial
+- Committed: yes
+- Packaged: yes
+
+## Details
+For `Az.SpringCloud` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*.
+
+For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.SpringCloud.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder.
+
+For script cmdlets, these are loaded via the `Az.SpringCloud.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundemental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
+
+## Purpose
+This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder.
+
+## Usage
+The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
+- Break
+- DefaultProfile
+- HttpPipelineAppend
+- HttpPipelinePrepend
+- Proxy
+- ProxyCredential
+- ProxyUseDefaultCredentials
+
+These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.SpringCloud`. For C#, follow the usage seen in the `ProcessRecordAsync` method.
+
+### Attributes
+For processing the cmdlets, we've created some additional attributes:
+- `Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.DescriptionAttribute`
+ - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
+- `Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.DoNotExportAttribute`
+ - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.SpringCloud`.
+- `Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.InternalExportAttribute`
+ - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.SpringCloud`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder.
+- `Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ProfileAttribute`
+ - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
\ No newline at end of file
diff --git a/src/SpringCloud/examples/Deploy-AzSpringCloudApp.md b/src/SpringCloud/examples/Deploy-AzSpringCloudApp.md
new file mode 100644
index 000000000000..ad8b3b43b122
--- /dev/null
+++ b/src/SpringCloud/examples/Deploy-AzSpringCloudApp.md
@@ -0,0 +1,13 @@
+### Example 1: Deploy local compiled jar to service by name.
+```powershell
+PS C:\> Deploy-AzSpringCloudApp -ResourceGroupName 'spring-cloud-rg' -ServiceName 'spring-cloud-service' -AppName 'gateway' -JarPath '/home/user/piggymetrics/gateway/target/gateway.jar'
+
+[1/3] Requesting for upload URL
+[2/3] Uploading package to blob
+[3/3] Updating deployment in app account-service (this operation can take a while to complete)
+Name Type
+---- ----
+prod Microsoft.AppPlatform/Spring/apps/deployments
+```
+
+Deploy local compiled jar to service by name.
diff --git a/src/SpringCloud/examples/Get-AzSpringCloud.md b/src/SpringCloud/examples/Get-AzSpringCloud.md
new file mode 100644
index 000000000000..801651a16a40
--- /dev/null
+++ b/src/SpringCloud/examples/Get-AzSpringCloud.md
@@ -0,0 +1,59 @@
+### Example 1: Get Spring Cloud Service by name
+```powershell
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+```
+
+Get Spring Cloud Service by name
+
+### Example 2: List all the spring cloud service under the resource group.
+```powershell
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg
+Location Name Type
+-------- ---- ----
+eastus spring-cloud-rg Microsoft.AppPlatform/Spring
+```
+
+List all the spring cloud service under the resource group.
diff --git a/src/SpringCloud/examples/Get-AzSpringCloudApp.md b/src/SpringCloud/examples/Get-AzSpringCloudApp.md
new file mode 100644
index 000000000000..ef5fbbe9a42b
--- /dev/null
+++ b/src/SpringCloud/examples/Get-AzSpringCloudApp.md
@@ -0,0 +1,41 @@
+### Example 1: Get Spring Cloud App by name.
+```powershell
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+ActiveDeploymentName : default
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+```
+
+Get Spring Cloud App by name.
+
+### Example 2: List all the app under a given spring cloud service.
+```powershell
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+Name Type Location
+---- ---- --------
+account-service Microsoft.AppPlatform/Spring/apps eastus
+auth-service Microsoft.AppPlatform/Spring/apps eastus
+gateway Microsoft.AppPlatform/Spring/apps eastus
+```
+
+List all the app under a given spring cloud service.
diff --git a/src/SpringCloud/examples/Get-AzSpringCloudAppDeployment.md b/src/SpringCloud/examples/Get-AzSpringCloudAppDeployment.md
new file mode 100644
index 000000000000..6ca11ed55b77
--- /dev/null
+++ b/src/SpringCloud/examples/Get-AzSpringCloudAppDeployment.md
@@ -0,0 +1,39 @@
+### Example 1: Get Spring Cloud App Deploymeng by name.
+```powershell
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+Active : False
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-6bd6f87954-nl2wl}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath :
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+```
+
+Get Spring Cloud App Deploymeng by name.
+
+### Example 2: List all the deployment under a given spring cloud app.
+```powershell
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+Name Type
+---- ----
+default Microsoft.AppPlatform/Spring/apps/deployments
+prod Microsoft.AppPlatform/Spring/apps/deployments
+```
+
+List all the deployment under a given spring cloud app.
diff --git a/src/SpringCloud/examples/New-AzSpringCloud.md b/src/SpringCloud/examples/New-AzSpringCloud.md
new file mode 100644
index 000000000000..715d1ecd0c40
--- /dev/null
+++ b/src/SpringCloud/examples/New-AzSpringCloud.md
@@ -0,0 +1,50 @@
+### Example 1: Create a spring cloud service.
+```powershell
+PS C:\> New-AzSpringCloud -ResourceGroupName spring-cloud-rp -name spring-cloud-service -Location eastus
+
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+```
+
+Create a spring cloud service.
diff --git a/src/SpringCloud/examples/New-AzSpringCloudApp.md b/src/SpringCloud/examples/New-AzSpringCloudApp.md
new file mode 100644
index 000000000000..a3030a83847f
--- /dev/null
+++ b/src/SpringCloud/examples/New-AzSpringCloudApp.md
@@ -0,0 +1,29 @@
+### Example 1: Create a spring cloud app.
+```powershell
+PS C:\> New-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+ActiveDeploymentName :
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+```
+
+Create a spring cloud app.
diff --git a/src/SpringCloud/examples/New-AzSpringCloudAppDeployment.md b/src/SpringCloud/examples/New-AzSpringCloudAppDeployment.md
new file mode 100644
index 000000000000..0cccd4ae77ee
--- /dev/null
+++ b/src/SpringCloud/examples/New-AzSpringCloudAppDeployment.md
@@ -0,0 +1,29 @@
+### Example 1: Example 1: Create a spring cloud deployment.
+```powershell
+PS C:\> New-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rp -name spring-cloud-service -AppName gateway -DeploymentName default
+
+Active : False
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-6bd6f87954-nl2wl}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath :
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+```
+
+Create a spring cloud deployment.
diff --git a/src/SpringCloud/examples/Remove-AzSpringCloud.md b/src/SpringCloud/examples/Remove-AzSpringCloud.md
new file mode 100644
index 000000000000..f681d28f9e14
--- /dev/null
+++ b/src/SpringCloud/examples/Remove-AzSpringCloud.md
@@ -0,0 +1,13 @@
+### Example 1: Remove Spring Cloud Service by name.
+```powershell
+PS C:\> Remove-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+```
+
+Remove Spring Cloud Service by name.
+
+### Example 2: Remove Spring Cloud Service from pipe.
+```powershell
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service | Remove-AzSpringCloud
+```
+
+Remove Spring Cloud Service from pipe.
diff --git a/src/SpringCloud/examples/Remove-AzSpringCloudApp.md b/src/SpringCloud/examples/Remove-AzSpringCloudApp.md
new file mode 100644
index 000000000000..edd41d911ccc
--- /dev/null
+++ b/src/SpringCloud/examples/Remove-AzSpringCloudApp.md
@@ -0,0 +1,13 @@
+### Example 1: Remove Spring Cloud App by name.
+```powershell
+PS C:\> Remove-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+```
+
+Remove Spring Cloud App by name.
+
+### Example 2: Remove Spring Cloud App from pipe.
+```powershell
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway | Remove-AzSpringCloudApp
+```
+
+Remove Spring Cloud App from pipe.
diff --git a/src/SpringCloud/examples/Remove-AzSpringCloudAppDeployment.md b/src/SpringCloud/examples/Remove-AzSpringCloudAppDeployment.md
new file mode 100644
index 000000000000..5588994f1f0c
--- /dev/null
+++ b/src/SpringCloud/examples/Remove-AzSpringCloudAppDeployment.md
@@ -0,0 +1,13 @@
+### Example 1: Remove Spring Cloud Deployment by name.
+```powershell
+PS C:\> Remove-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+```
+
+Remove Spring Cloud Deployment by name.
+
+### Example 2: Remove Spring Cloud Deployment from pipe.
+```powershell
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Remove-AzSpringCloudAppDeployment
+```
+
+Remove Spring Cloud Deployment from pipe.
diff --git a/src/SpringCloud/examples/Restart-AzSpringCloudAppDeployment.md b/src/SpringCloud/examples/Restart-AzSpringCloudAppDeployment.md
new file mode 100644
index 000000000000..675e266e6be9
--- /dev/null
+++ b/src/SpringCloud/examples/Restart-AzSpringCloudAppDeployment.md
@@ -0,0 +1,13 @@
+### Example 1: Restart Spring Cloud Service by name.
+```powershell
+PS C:\> Restart-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+```
+
+Restart Spring Cloud Service by name.
+
+### Example 2: Restart Spring Cloud Service from pipe.
+```powershell
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Restart-AzSpringCloud
+```
+
+Restart Spring Cloud Service from pipe.
diff --git a/src/SpringCloud/examples/Start-AzSpringCloudAppDeployment.md b/src/SpringCloud/examples/Start-AzSpringCloudAppDeployment.md
new file mode 100644
index 000000000000..1a29d9e1e03d
--- /dev/null
+++ b/src/SpringCloud/examples/Start-AzSpringCloudAppDeployment.md
@@ -0,0 +1,13 @@
+### Example 1: Start Spring Cloud Service by name.
+```powershell
+PS C:\> Start-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+```
+
+Start Spring Cloud Service by name.
+
+### Example 2: Start Spring Cloud Service from pipe.
+```powershell
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Start-AzSpringCloud
+```
+
+Start Spring Cloud Service from pipe.
diff --git a/src/SpringCloud/examples/Stop-AzSpringCloudAppDeployment.md b/src/SpringCloud/examples/Stop-AzSpringCloudAppDeployment.md
new file mode 100644
index 000000000000..15bc6c272357
--- /dev/null
+++ b/src/SpringCloud/examples/Stop-AzSpringCloudAppDeployment.md
@@ -0,0 +1,13 @@
+### Example 1: Stop Spring Cloud Service by name.
+```powershell
+PS C:\> Stop-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+```
+
+Stop Spring Cloud Service by name.
+
+### Example 2: Stop Spring Cloud Service from pipe.
+```powershell
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Stop-AzSpringCloud
+```
+
+Stop Spring Cloud Service from pipe.
diff --git a/src/SpringCloud/examples/Update-AzSpringCloud.md b/src/SpringCloud/examples/Update-AzSpringCloud.md
new file mode 100644
index 000000000000..563f726e5ca7
--- /dev/null
+++ b/src/SpringCloud/examples/Update-AzSpringCloud.md
@@ -0,0 +1,99 @@
+### Example 1: Update Spring Cloud Service by name.
+```powershell
+PS C:\> Update-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+```
+
+Update Spring Cloud Service by name.
+
+### Example 2: Update Spring Cloud Service from pipe.
+```powershell
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service | Update-AzSpringCloud
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+```
+
+Update Spring Cloud Service from pipe.
diff --git a/src/SpringCloud/examples/Update-AzSpringCloudApp.md b/src/SpringCloud/examples/Update-AzSpringCloudApp.md
new file mode 100644
index 000000000000..66d38bc8ad53
--- /dev/null
+++ b/src/SpringCloud/examples/Update-AzSpringCloudApp.md
@@ -0,0 +1,59 @@
+### Example 1: Update Spring Cloud App by name.
+```powershell
+PS C:\> Update-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -ActiveDeploymentName default
+ActiveDeploymentName : default
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+```
+
+Update Spring Cloud App by name.
+
+### Example 2: Update Spring Cloud App from pipe.
+```powershell
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway | Update-AzSpringCloudApp -ActiveDeploymentName default
+ActiveDeploymentName : default
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+```
+
+Update Spring Cloud App from pipe.
diff --git a/src/SpringCloud/examples/Update-AzSpringCloudAppDeployment.md b/src/SpringCloud/examples/Update-AzSpringCloudAppDeployment.md
new file mode 100644
index 000000000000..f4e3850e5f91
--- /dev/null
+++ b/src/SpringCloud/examples/Update-AzSpringCloudAppDeployment.md
@@ -0,0 +1,57 @@
+### Example 1: Update Spring Cloud Deployment by name.
+```powershell
+PS C:\> Update-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default -SourceRelativePath resources/4ea5ee68fea05586106890ded5733820bb77d919cda27bc4b8139b7cd33b8889-2020080815-6986fdbd-59f6-42b8-8d1f-a75d403cbcde
+Active : True
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-fb79b6b5d-kvmpz}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath : resources/4ea5ee68fea05586106890ded5733820bb77d919cda27bc4b8139b7cd33b8889-2020080815-6986fdbd-59f6-42b8-8d1f-a75d403cbcde
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+```
+
+Update Spring Cloud Deployment by name.
+
+### Example 2: Update Spring Cloud Deployment from pipe.
+```powershell
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Update-AzSpringCloudAppDeployment -SourceRelativePath resources/4ea5ee68fea05586106890ded5733820bb77d919cda27bc4b8139b7cd33b8889-2020080815-6986fdbd-59f6-42b8-8d1f-a75d403cbcde
+Active : True
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-fb79b6b5d-kvmpz}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath : resources/4ea5ee68fea05586106890ded5733820bb77d919cda27bc4b8139b7cd33b8889-2020080815-6986fdbd-59f6-42b8-8d1f-a75d403cbcde
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+```
+
+Update Spring Cloud Deployment from pipe.
diff --git a/src/SpringCloud/export-surface.ps1 b/src/SpringCloud/export-surface.ps1
new file mode 100644
index 000000000000..ab6a1e48755d
--- /dev/null
+++ b/src/SpringCloud/export-surface.ps1
@@ -0,0 +1,40 @@
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat)
+$ErrorActionPreference = 'Stop'
+
+$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+$dll = Join-Path $PSScriptRoot 'bin\Az.SpringCloud.private.dll'
+if(-not (Test-Path $dll)) {
+ Write-Error "Unable to find output assembly in '$binFolder'."
+}
+$null = Import-Module -Name $dll
+
+$moduleName = 'Az.SpringCloud'
+$exportsFolder = Join-Path $PSScriptRoot 'exports'
+$resourcesFolder = Join-Path $PSScriptRoot 'resources'
+
+Export-CmdletSurface -ModuleName $moduleName -CmdletFolder $exportsFolder -OutputFolder $resourcesFolder -IncludeGeneralParameters $IncludeGeneralParameters.IsPresent -UseExpandedFormat $UseExpandedFormat.IsPresent
+Write-Host -ForegroundColor Green "CmdletSurface file(s) created in '$resourcesFolder'"
+
+Export-ModelSurface -OutputFolder $resourcesFolder -UseExpandedFormat $UseExpandedFormat.IsPresent
+Write-Host -ForegroundColor Green "ModelSurface file created in '$resourcesFolder'"
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
\ No newline at end of file
diff --git a/src/SpringCloud/exports/Deploy-AzSpringCloudApp.ps1 b/src/SpringCloud/exports/Deploy-AzSpringCloudApp.ps1
new file mode 100644
index 000000000000..60ee25d0e16d
--- /dev/null
+++ b/src/SpringCloud/exports/Deploy-AzSpringCloudApp.ps1
@@ -0,0 +1,171 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Deploy the built jar to service.
+.Description
+Deploy the built jar to service.
+.Example
+PS C:\> Deploy-AzSpringCloudApp -ResourceGroupName 'spring-cloud-rg' -ServiceName 'spring-cloud-service' -AppName 'gateway' -JarPath '/home/user/piggymetrics/gateway/target/gateway.jar'
+
+[1/3] Requesting for upload URL
+[2/3] Uploading package to blob
+[3/3] Updating deployment in app account-service (this operation can take a while to complete)
+Name Type
+---- ----
+prod Microsoft.AppPlatform/Spring/apps/deployments
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.SpringCloud/deploy-azSpringCloudapp
+#>
+function Deploy-AzSpringCloudApp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The path of the jar need to be deploied.
+ ${JarPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.SpringCloud.custom\Deploy-AzSpringCloudApp';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/SpringCloud/exports/Get-AzSpringCloud.ps1 b/src/SpringCloud/exports/Get-AzSpringCloud.ps1
new file mode 100644
index 000000000000..24ee9c5910bf
--- /dev/null
+++ b/src/SpringCloud/exports/Get-AzSpringCloud.ps1
@@ -0,0 +1,219 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get a Service and its properties.
+.Description
+Get a Service and its properties.
+.Example
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+.Example
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg
+Location Name Type
+-------- ---- ----
+eastus spring-cloud-rg Microsoft.AppPlatform/Spring
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/get-azspringcloud
+#>
+function Get-AzSpringCloud {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ List = 'Az.SpringCloud.custom\Get-AzSpringCloud';
+ Get = 'Az.SpringCloud.custom\Get-AzSpringCloud';
+ List1 = 'Az.SpringCloud.custom\Get-AzSpringCloud';
+ GetViaIdentity = 'Az.SpringCloud.custom\Get-AzSpringCloud';
+ }
+ if (('List', 'Get', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/SpringCloud/exports/Get-AzSpringCloudApp.ps1 b/src/SpringCloud/exports/Get-AzSpringCloudApp.ps1
new file mode 100644
index 000000000000..bf5b67df95c6
--- /dev/null
+++ b/src/SpringCloud/exports/Get-AzSpringCloudApp.ps1
@@ -0,0 +1,213 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get an App and its properties.
+.Description
+Get an App and its properties.
+.Example
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+ActiveDeploymentName : default
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+.Example
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+Name Type Location
+---- ---- --------
+account-service Microsoft.AppPlatform/Spring/apps eastus
+auth-service Microsoft.AppPlatform/Spring/apps eastus
+gateway Microsoft.AppPlatform/Spring/apps eastus
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/get-azspringcloudapp
+#>
+function Get-AzSpringCloudApp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='GetViaIdentity')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Query')]
+ [System.String]
+ # Indicates whether sync status
+ ${SyncStatus},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Get = 'Az.SpringCloud.private\Get-AzSpringCloudApp_Get';
+ GetViaIdentity = 'Az.SpringCloud.private\Get-AzSpringCloudApp_GetViaIdentity';
+ List = 'Az.SpringCloud.private\Get-AzSpringCloudApp_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/SpringCloud/exports/Get-AzSpringCloudAppDeployment.ps1 b/src/SpringCloud/exports/Get-AzSpringCloudAppDeployment.ps1
new file mode 100644
index 000000000000..21a17ff6551f
--- /dev/null
+++ b/src/SpringCloud/exports/Get-AzSpringCloudAppDeployment.ps1
@@ -0,0 +1,217 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get a Deployment and its properties.
+.Description
+Get a Deployment and its properties.
+.Example
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+Active : False
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-6bd6f87954-nl2wl}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath :
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+.Example
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+Name Type
+---- ----
+default Microsoft.AppPlatform/Spring/apps/deployments
+prod Microsoft.AppPlatform/Spring/apps/deployments
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/get-azspringcloudappdeployment
+#>
+function Get-AzSpringCloudAppDeployment {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Query')]
+ [System.String[]]
+ # Version of the deployments to be listed
+ ${Version},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Get = 'Az.SpringCloud.private\Get-AzSpringCloudAppDeployment_Get';
+ GetViaIdentity = 'Az.SpringCloud.private\Get-AzSpringCloudAppDeployment_GetViaIdentity';
+ List = 'Az.SpringCloud.private\Get-AzSpringCloudAppDeployment_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/SpringCloud/exports/New-AzSpringCloud.ps1 b/src/SpringCloud/exports/New-AzSpringCloud.ps1
new file mode 100644
index 000000000000..e4e74f766730
--- /dev/null
+++ b/src/SpringCloud/exports/New-AzSpringCloud.ps1
@@ -0,0 +1,239 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a new Service or update an exiting Service.
+.Description
+Create a new Service or update an exiting Service.
+.Example
+PS C:\> New-AzSpringCloud -ResourceGroupName spring-cloud-rp -name spring-cloud-service -Location eastus
+
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/new-azspringcloud
+#>
+function New-AzSpringCloud {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # URI of the repository
+ ${GitPropertyUri},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the resource.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the Sku
+ ${SkuName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Tier of the Sku
+ ${SkuTier},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Tags of the service which is a list of key value pairs that describe the resource.
+ ${Tag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Target application insight instrumentation key
+ ${TraceAppInsightInstrumentationKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether enable the tracing functionality
+ ${TraceEnabled},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.SpringCloud.custom\New-AzSpringCloud';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/SpringCloud/exports/New-AzSpringCloudApp.ps1 b/src/SpringCloud/exports/New-AzSpringCloudApp.ps1
new file mode 100644
index 000000000000..c508157a837a
--- /dev/null
+++ b/src/SpringCloud/exports/New-AzSpringCloudApp.ps1
@@ -0,0 +1,235 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a new App or update an exiting App.
+.Description
+Create a new App or update an exiting App.
+.Example
+PS C:\> New-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+ActiveDeploymentName :
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/new-azspringcloudapp
+#>
+function New-AzSpringCloudApp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the active deployment of the App
+ ${ActiveDeploymentName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Fully qualified dns Name.
+ ${Fqdn},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicate if only https is allowed.
+ ${HttpsOnly},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the application, always the same with its parent resource
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the persistent disk
+ ${PersistentDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the persistent disk in GB
+ ${PersistentDiskSizeInGb},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether the App exposes public endpoint
+ ${Public},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the temporary disk
+ ${TemporaryDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the temporary disk in GB
+ ${TemporaryDiskSizeInGb},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.SpringCloud.custom\New-AzSpringCloudApp';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/SpringCloud/exports/New-AzSpringCloudAppDeployment.ps1 b/src/SpringCloud/exports/New-AzSpringCloudAppDeployment.ps1
new file mode 100644
index 000000000000..fbab1ac8ad67
--- /dev/null
+++ b/src/SpringCloud/exports/New-AzSpringCloudAppDeployment.ps1
@@ -0,0 +1,251 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a new Deployment or update an exiting Deployment.
+.Description
+Create a new Deployment or update an exiting Deployment.
+.Example
+PS C:\> New-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rp -name spring-cloud-service -AppName gateway -DeploymentName default
+
+Active : False
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-6bd6f87954-nl2wl}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath :
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.SpringCloud/new-azSpringCloudappdeployment
+#>
+function New-AzSpringCloudAppDeployment {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required CPU
+ ${Cpu},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentSettingsEnvironmentVariables]))]
+ [System.Collections.Hashtable]
+ # Collection of environment variables
+ ${EnvironmentVariable},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Instance count
+ ${InstanceCount},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # JVM parameter
+ ${JvmOption},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required Memory size in GB
+ ${MemoryInGb},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion]
+ # Runtime version
+ ${RuntimeVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Selector for the artifact to be used for the deployment for multi-module projects.
+ # This should bethe relative path to the target module/project.
+ ${SourceArtifactSelector},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Relative path of the storage which stores the source
+ ${SourceRelativePath},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType]
+ # Type of the source uploaded
+ ${SourceType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Version of the source
+ ${SourceVersion},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.SpringCloud.custom\New-AzSpringCloudAppDeployment';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/SpringCloud/exports/ProxyCmdletDefinitions.ps1 b/src/SpringCloud/exports/ProxyCmdletDefinitions.ps1
new file mode 100644
index 000000000000..5cfd58455735
--- /dev/null
+++ b/src/SpringCloud/exports/ProxyCmdletDefinitions.ps1
@@ -0,0 +1,3586 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get a Deployment and its properties.
+.Description
+Get a Deployment and its properties.
+.Example
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+Active : False
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-6bd6f87954-nl2wl}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath :
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+.Example
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+Name Type
+---- ----
+default Microsoft.AppPlatform/Spring/apps/deployments
+prod Microsoft.AppPlatform/Spring/apps/deployments
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/get-azspringcloudappdeployment
+#>
+function Get-AzSpringCloudAppDeployment {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Query')]
+ [System.String[]]
+ # Version of the deployments to be listed
+ ${Version},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Get = 'Az.SpringCloud.private\Get-AzSpringCloudAppDeployment_Get';
+ GetViaIdentity = 'Az.SpringCloud.private\Get-AzSpringCloudAppDeployment_GetViaIdentity';
+ List = 'Az.SpringCloud.private\Get-AzSpringCloudAppDeployment_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get an App and its properties.
+.Description
+Get an App and its properties.
+.Example
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+ActiveDeploymentName : default
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+.Example
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+Name Type Location
+---- ---- --------
+account-service Microsoft.AppPlatform/Spring/apps eastus
+auth-service Microsoft.AppPlatform/Spring/apps eastus
+gateway Microsoft.AppPlatform/Spring/apps eastus
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/get-azspringcloudapp
+#>
+function Get-AzSpringCloudApp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='GetViaIdentity')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Query')]
+ [System.String]
+ # Indicates whether sync status
+ ${SyncStatus},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Get = 'Az.SpringCloud.private\Get-AzSpringCloudApp_Get';
+ GetViaIdentity = 'Az.SpringCloud.private\Get-AzSpringCloudApp_GetViaIdentity';
+ List = 'Az.SpringCloud.private\Get-AzSpringCloudApp_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to delete a Deployment.
+.Description
+Operation to delete a Deployment.
+.Example
+PS C:\> Remove-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+.Example
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Remove-AzSpringCloudAppDeployment
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/remove-azspringcloudappdeployment
+#>
+function Remove-AzSpringCloudAppDeployment {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Delete = 'Az.SpringCloud.private\Remove-AzSpringCloudAppDeployment_Delete';
+ DeleteViaIdentity = 'Az.SpringCloud.private\Remove-AzSpringCloudAppDeployment_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to delete an App.
+.Description
+Operation to delete an App.
+.Example
+PS C:\> Remove-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+.Example
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway | Remove-AzSpringCloudApp
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/remove-azspringcloudapp
+#>
+function Remove-AzSpringCloudApp {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Delete = 'Az.SpringCloud.private\Remove-AzSpringCloudApp_Delete';
+ DeleteViaIdentity = 'Az.SpringCloud.private\Remove-AzSpringCloudApp_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Restart the deployment.
+.Description
+Restart the deployment.
+.Example
+PS C:\> Restart-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+.Example
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Restart-AzSpringCloud
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/restart-azspringcloudappdeployment
+#>
+function Restart-AzSpringCloudAppDeployment {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Restart', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(ParameterSetName='Restart', Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Restart', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Restart', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='Restart')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Restart = 'Az.SpringCloud.private\Restart-AzSpringCloudAppDeployment_Restart';
+ RestartViaIdentity = 'Az.SpringCloud.private\Restart-AzSpringCloudAppDeployment_RestartViaIdentity';
+ }
+ if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Start the deployment.
+.Description
+Start the deployment.
+.Example
+PS C:\> Start-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+.Example
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Start-AzSpringCloud
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/start-azspringcloudappdeployment
+#>
+function Start-AzSpringCloudAppDeployment {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Start', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(ParameterSetName='Start', Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Start', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Start', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='Start')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Start = 'Az.SpringCloud.private\Start-AzSpringCloudAppDeployment_Start';
+ StartViaIdentity = 'Az.SpringCloud.private\Start-AzSpringCloudAppDeployment_StartViaIdentity';
+ }
+ if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Stop the deployment.
+.Description
+Stop the deployment.
+.Example
+PS C:\> Stop-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default
+.Example
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Stop-AzSpringCloud
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/stop-azspringcloudappdeployment
+#>
+function Stop-AzSpringCloudAppDeployment {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Stop', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(ParameterSetName='Stop', Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Stop', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Stop', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='Stop')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Stop = 'Az.SpringCloud.private\Stop-AzSpringCloudAppDeployment_Stop';
+ StopViaIdentity = 'Az.SpringCloud.private\Stop-AzSpringCloudAppDeployment_StopViaIdentity';
+ }
+ if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Deploy the built jar to service.
+.Description
+Deploy the built jar to service.
+.Example
+PS C:\> Deploy-AzSpringCloudApp -ResourceGroupName 'spring-cloud-rg' -ServiceName 'spring-cloud-service' -AppName 'gateway' -JarPath '/home/user/piggymetrics/gateway/target/gateway.jar'
+
+[1/3] Requesting for upload URL
+[2/3] Uploading package to blob
+[3/3] Updating deployment in app account-service (this operation can take a while to complete)
+Name Type
+---- ----
+prod Microsoft.AppPlatform/Spring/apps/deployments
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.SpringCloud/deploy-azSpringCloudapp
+#>
+function Deploy-AzSpringCloudApp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The path of the jar need to be deploied.
+ ${JarPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.SpringCloud.custom\Deploy-AzSpringCloudApp';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get a Service and its properties.
+.Description
+Get a Service and its properties.
+.Example
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+.Example
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg
+Location Name Type
+-------- ---- ----
+eastus spring-cloud-rg Microsoft.AppPlatform/Spring
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/get-azspringcloud
+#>
+function Get-AzSpringCloud {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ List = 'Az.SpringCloud.custom\Get-AzSpringCloud';
+ Get = 'Az.SpringCloud.custom\Get-AzSpringCloud';
+ List1 = 'Az.SpringCloud.custom\Get-AzSpringCloud';
+ GetViaIdentity = 'Az.SpringCloud.custom\Get-AzSpringCloud';
+ }
+ if (('List', 'Get', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a new Service or update an exiting Service.
+.Description
+Create a new Service or update an exiting Service.
+.Example
+PS C:\> New-AzSpringCloud -ResourceGroupName spring-cloud-rp -name spring-cloud-service -Location eastus
+
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/new-azspringcloud
+#>
+function New-AzSpringCloud {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # URI of the repository
+ ${GitPropertyUri},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the resource.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the Sku
+ ${SkuName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Tier of the Sku
+ ${SkuTier},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Tags of the service which is a list of key value pairs that describe the resource.
+ ${Tag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Target application insight instrumentation key
+ ${TraceAppInsightInstrumentationKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether enable the tracing functionality
+ ${TraceEnabled},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.SpringCloud.custom\New-AzSpringCloud';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a new App or update an exiting App.
+.Description
+Create a new App or update an exiting App.
+.Example
+PS C:\> New-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway
+ActiveDeploymentName :
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/new-azspringcloudapp
+#>
+function New-AzSpringCloudApp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the active deployment of the App
+ ${ActiveDeploymentName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Fully qualified dns Name.
+ ${Fqdn},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicate if only https is allowed.
+ ${HttpsOnly},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the application, always the same with its parent resource
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the persistent disk
+ ${PersistentDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the persistent disk in GB
+ ${PersistentDiskSizeInGb},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether the App exposes public endpoint
+ ${Public},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the temporary disk
+ ${TemporaryDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the temporary disk in GB
+ ${TemporaryDiskSizeInGb},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.SpringCloud.custom\New-AzSpringCloudApp';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a new Deployment or update an exiting Deployment.
+.Description
+Create a new Deployment or update an exiting Deployment.
+.Example
+PS C:\> New-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rp -name spring-cloud-service -AppName gateway -DeploymentName default
+
+Active : False
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-6bd6f87954-nl2wl}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath :
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.SpringCloud/new-azSpringCloudappdeployment
+#>
+function New-AzSpringCloudAppDeployment {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required CPU
+ ${Cpu},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentSettingsEnvironmentVariables]))]
+ [System.Collections.Hashtable]
+ # Collection of environment variables
+ ${EnvironmentVariable},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Instance count
+ ${InstanceCount},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # JVM parameter
+ ${JvmOption},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required Memory size in GB
+ ${MemoryInGb},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion]
+ # Runtime version
+ ${RuntimeVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Selector for the artifact to be used for the deployment for multi-module projects.
+ # This should bethe relative path to the target module/project.
+ ${SourceArtifactSelector},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Relative path of the storage which stores the source
+ ${SourceRelativePath},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType]
+ # Type of the source uploaded
+ ${SourceType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Version of the source
+ ${SourceVersion},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.SpringCloud.custom\New-AzSpringCloudAppDeployment';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to delete a Service.
+.Description
+Operation to delete a Service.
+.Example
+PS C:\> Remove-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+.Example
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service | Remove-AzSpringCloud
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/remove-azspringcloud
+#>
+function Remove-AzSpringCloud {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ Delete = 'Az.SpringCloud.custom\Remove-AzSpringCloud';
+ DeleteViaIdentity = 'Az.SpringCloud.custom\Remove-AzSpringCloud';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to update an exiting Service.
+.Description
+Operation to update an exiting Service.
+.Example
+PS C:\> Update-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+.Example
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service | Update-AzSpringCloud
+ConfigServerPropertiesErrorCode :
+ConfigServerPropertiesErrorMessage :
+ConfigServerPropertyState : Succeeded
+GitPropertyHostKey :
+GitPropertyHostKeyAlgorithm :
+GitPropertyLabel :
+GitPropertyPassword :
+GitPropertyPrivateKey :
+GitPropertyRepository :
+GitPropertySearchPath :
+GitPropertyStrictHostKeyChecking :
+GitPropertyUri :
+GitPropertyUsername :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service
+Location : eastus
+Name : spring-cloud-service
+NetworkProfileAppNetworkResourceGroup :
+NetworkProfileAppSubnetId :
+NetworkProfileServiceCidr :
+NetworkProfileServiceRuntimeNetworkResourceGroup :
+NetworkProfileServiceRuntimeSubnetId :
+ProvisioningState : Succeeded
+ServiceId : e5e964885b4146b1a91e9bfc17971ee5
+SkuCapacity :
+SkuName : S0
+SkuTier : Standard
+Tag : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TrackedResourceTags
+TraceAppInsightInstrumentationKey :
+TraceEnabled : False
+TraceErrorCode :
+TraceErrorMessage :
+TraceState : Succeeded
+Type : Microsoft.AppPlatform/Spring
+Version : 2
+ConfigServerGitProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerGitProperty
+ConfigServerProperty : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerProperties
+ConfigServerPropertyConfigServer : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ConfigServerSettings
+ConfigServerPropertyError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+NetworkProfile : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.NetworkProfile
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ClusterResourceProperties
+Sku : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Sku
+Trace : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TraceProperties
+TraceError : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.Error
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/update-azspringcloud
+#>
+function Update-AzSpringCloud {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IServiceResource])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # URI of the repository
+ ${GitPropertyUri},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the resource.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the Sku
+ ${SkuName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Tier of the Sku
+ ${SkuTier},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Tags of the service which is a list of key value pairs that describe the resource.
+ ${Tag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Target application insight instrumentation key
+ ${TraceAppInsightInstrumentationKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether enable the tracing functionality
+ ${TraceEnabled},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ UpdateExpanded = 'Az.SpringCloud.custom\Update-AzSpringCloud';
+ UpdateViaIdentityExpanded = 'Az.SpringCloud.custom\Update-AzSpringCloud';
+ }
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to update an exiting App.
+.Description
+Operation to update an exiting App.
+.Example
+PS C:\> Update-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -ActiveDeploymentName default
+ActiveDeploymentName : default
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+.Example
+PS C:\> Get-AzSpringCloudApp -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway | Update-AzSpringCloudApp -ActiveDeploymentName default
+ActiveDeploymentName : default
+CreatedTime : 2020-08-08 15:37:43
+Fqdn : spring-cloud-service.azuremicroservices.io
+HttpsOnly : False
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway
+IdentityPrincipalId :
+IdentityTenantId :
+IdentityType :
+Location : eastus
+Name : gateway
+PersistentDiskMountPath : /persistent
+PersistentDiskSizeInGb : 0
+PersistentDiskUsedInGb :
+ProvisioningState : Succeeded
+Public : False
+TemporaryDiskMountPath : /tmp
+TemporaryDiskSizeInGb : 5
+Type : Microsoft.AppPlatform/Spring/apps
+Url :
+Identity : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.ManagedIdentityProperties
+PersistentDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.PersistentDisk
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.AppResourceProperties
+TemporaryDisk : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.TemporaryDisk
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.springcloud/update-azspringcloudapp
+#>
+function Update-AzSpringCloudApp {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IAppResource])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Alias('AppName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Name of the active deployment of the App
+ ${ActiveDeploymentName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Fully qualified dns Name.
+ ${Fqdn},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicate if only https is allowed.
+ ${HttpsOnly},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # The GEO location of the application, always the same with its parent resource
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the persistent disk
+ ${PersistentDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the persistent disk in GB
+ ${PersistentDiskSizeInGb},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates whether the App exposes public endpoint
+ ${Public},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Mount path of the temporary disk
+ ${TemporaryDiskMountPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Size of the temporary disk in GB
+ ${TemporaryDiskSizeInGb},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ UpdateExpanded = 'Az.SpringCloud.custom\Update-AzSpringCloudApp';
+ UpdateViaIdentityExpanded = 'Az.SpringCloud.custom\Update-AzSpringCloudApp';
+ }
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to update an exiting Deployment.
+.Description
+Operation to update an exiting Deployment.
+.Example
+PS C:\> Update-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default -SourceRelativePath resources/4ea5ee68fea05586106890ded5733820bb77d919cda27bc4b8139b7cd33b8889-2020080815-6986fdbd-59f6-42b8-8d1f-a75d403cbcde
+Active : True
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-fb79b6b5d-kvmpz}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath : resources/4ea5ee68fea05586106890ded5733820bb77d919cda27bc4b8139b7cd33b8889-2020080815-6986fdbd-59f6-42b8-8d1f-a75d403cbcde
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+.Example
+PS C:\> Get-AzSpringCloudAppDeployment -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service -AppName gateway -DeploymentName default | Update-AzSpringCloudAppDeployment -SourceRelativePath resources/4ea5ee68fea05586106890ded5733820bb77d919cda27bc4b8139b7cd33b8889-2020080815-6986fdbd-59f6-42b8-8d1f-a75d403cbcde
+Active : True
+AppName : gateway
+CreatedTime :
+DeploymentSettingCpu : 1
+DeploymentSettingEnvironmentVariable : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettingsEnvironmentVariables
+DeploymentSettingInstanceCount : 1
+DeploymentSettingJvmOption :
+DeploymentSettingMemoryInGb : 1
+DeploymentSettingRuntimeVersion : Java_8
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/spring-cloud-rg/providers/Microsoft.AppPlatform/Spring/spring-cloud-service/apps/gateway/deployments/default
+Instance : {gateway-default-7-fb79b6b5d-kvmpz}
+Name : default
+ProvisioningState : Succeeded
+SourceArtifactSelector :
+SourceRelativePath : resources/4ea5ee68fea05586106890ded5733820bb77d919cda27bc4b8139b7cd33b8889-2020080815-6986fdbd-59f6-42b8-8d1f-a75d403cbcde
+SourceType : Jar
+SourceVersion :
+Status : Running
+Type : Microsoft.AppPlatform/Spring/apps/deployments
+DeploymentSetting : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentSettings
+Property : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.DeploymentResourceProperties
+Source : Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.UserSourceInfo
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName ]: The name of the certificate resource.
+ [DeploymentName ]: The name of the Deployment resource.
+ [DomainName ]: The name of the custom domain resource.
+ [Id ]: Resource identity path
+ [Location ]: the region
+ [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.
+ [ServiceName ]: The name of the Service resource.
+ [SubscriptionId ]: Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.SpringCloud/update-azSpringCloudappdeployment
+#>
+function Update-AzSpringCloudAppDeployment {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentResource])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the App resource.
+ ${AppName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Alias('DeploymentName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Deployment resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the resource.
+ # You can obtain this value from the Azure Resource Manager API or the portal.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [System.String]
+ # The name of the Service resource.
+ ${ServiceName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # Gets subscription ID which uniquely identify the Microsoft Azure subscription.
+ # The subscription ID forms part of the URI for every service call.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required CPU
+ ${Cpu},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.Api20190501Preview.IDeploymentSettingsEnvironmentVariables]))]
+ [System.Collections.Hashtable]
+ # Collection of environment variables
+ ${EnvironmentVariable},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Instance count
+ ${InstanceCount},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # JVM parameter
+ ${JvmOption},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.Int32]
+ # Required Memory size in GB
+ ${MemoryInGb},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.RuntimeVersion]
+ # Runtime version
+ ${RuntimeVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Selector for the artifact to be used for the deployment for multi-module projects.
+ # This should bethe relative path to the target module/project.
+ ${SourceArtifactSelector},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Relative path of the storage which stores the source
+ ${SourceRelativePath},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Support.UserSourceType]
+ # Type of the source uploaded
+ ${SourceType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Body')]
+ [System.String]
+ # Version of the source
+ ${SourceVersion},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ UpdateExpanded = 'Az.SpringCloud.custom\Update-AzSpringCloudAppDeployment';
+ UpdateViaIdentityExpanded = 'Az.SpringCloud.custom\Update-AzSpringCloudAppDeployment';
+ }
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/SpringCloud/exports/Remove-AzSpringCloud.ps1 b/src/SpringCloud/exports/Remove-AzSpringCloud.ps1
new file mode 100644
index 000000000000..2516b4d4c5c8
--- /dev/null
+++ b/src/SpringCloud/exports/Remove-AzSpringCloud.ps1
@@ -0,0 +1,186 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Operation to delete a Service.
+.Description
+Operation to delete a Service.
+.Example
+PS C:\> Remove-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service
+.Example
+PS C:\> Get-AzSpringCloud -ResourceGroupName spring-cloud-rg -ServiceName spring-cloud-service | Remove-AzSpringCloud
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SpringCloud.Models.ISpringCloudIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AppName ]: The name of the App resource.
+ [BindingName ]: The name of the Binding resource.
+ [CertificateName