From e070c4a2cfb294b7004ab661429a2776b1fcc8de Mon Sep 17 00:00:00 2001
From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com>
Date: Sun, 27 Jul 2025 03:16:39 +1000
Subject: [PATCH 01/13] migrate workloads sapVirtualInstance to autorest v4
---
.../Properties/AssemblyInfo.cs | 6 +-
.../SapVirtualInstance.Autorest/README.md | 153 ++++--------------
...sSapSizingRecommendation_InvokeExpanded.cs | 6 +-
...ecommendation_InvokeViaIdentityExpanded.cs | 6 +-
...SapVirtualInstance_CreateWithDiscovery.ps1 | 15 +-
...SapVirtualInstance_CreateWithJsonString.cs | 22 +--
...ualInstance_CreateWithJsonTemplatePath.ps1 | 13 +-
.../SapVirtualInstance.cs | 2 +-
.../examples/README.md | 11 ++
9 files changed, 76 insertions(+), 158 deletions(-)
create mode 100644 src/Workloads/SapVirtualInstance.Autorest/examples/README.md
diff --git a/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs b/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs
index e20bdedb67cc..787d971e23f0 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs
+++ b/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs
@@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - SapVirtualInstance")]
-[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0")]
-[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
-[assembly: System.CLSCompliantAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
\ No newline at end of file
diff --git a/src/Workloads/SapVirtualInstance.Autorest/README.md b/src/Workloads/SapVirtualInstance.Autorest/README.md
index 749235dc9322..8935eb5ef61c 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/README.md
+++ b/src/Workloads/SapVirtualInstance.Autorest/README.md
@@ -44,39 +44,33 @@ root-module-name: $(prefix).Workloads
title: SapVirtualInstance
subject-prefix: Workloads
namespace: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance
-resourcegroup-append: true
-identity-correction-for-post: true
-nested-object-to-string: true
-#add-api-version-in-model-namespace: true
inlining-threshold: 100
-# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
-use-extension:
- "@autorest/powershell": "3.x"
-
directive:
-- where:
- verb: New
- subject: ^SapApplicationServerInstance$
- remove: true
-
-- where:
- verb: Stop
- subject: ^SapApplicationServerInstance$
- variant: ^Stop$|^StopViaIdentity$
- remove: true
-
-- where:
- verb: Update
- subject: ^SapApplicationServerInstance$
- variant: ^Update$|^UpdateViaIdentity$
+# #|^CreateViaJsonString$|^CreateViaJsonFilePath$
+# - where:
+# verb: New
+# subject: ^SapVirtualInstance$
+# variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^CreateExpanded$
+# remove: true
+
+# - where:
+# verb: New
+# subject: ^SapVirtualInstance$
+# variant: ^CreateViaJsonString$|^CreateViaJsonFilePath$
+# set:
+# operation-name: SapVirtualInstancesCreateViaJsonAlt
+
+- where:
+ variant: ^(Stop|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
- verb: Remove
- subject: ^SapApplicationServerInstance$
+ verb: New|Remove
+ subject: ^SapApplicationServerInstance$|^SapCentralServerInstance$|^SapDatabaseInstance$
remove: true
+#SapApplicationInstance
- where:
subject: SapApplicationServerInstance
set:
@@ -89,28 +83,6 @@ directive:
parameter-name: Name
# SapCentralInstance
-- where:
- verb: New
- subject: ^SapCentralServerInstance$
- remove: true
-
-- where:
- verb: Stop
- subject: ^SapCentralServerInstance$
- variant: ^Stop$|^StopViaIdentity$
- remove: true
-
-- where:
- verb: Update
- subject: ^SapCentralServerInstance$
- variant: ^Update$|^UpdateViaIdentity$
- remove: true
-
-- where:
- verb: Remove
- subject: ^SapCentralServerInstance$
- remove: true
-
- where:
subject: SapCentralServerInstance
parameter-name: CentralInstanceName
@@ -124,28 +96,6 @@ directive:
subject: SapCentralInstance
# SapDatabaseInstance
-- where:
- verb: New
- subject: ^SapDatabaseInstance$
- remove: true
-
-- where:
- verb: Stop
- subject: ^SapDatabaseInstance$
- variant: ^Stop$|^StopViaIdentity$
- remove: true
-
-- where:
- verb: Update
- subject: ^SapDatabaseInstance$
- variant: ^Update$|^UpdateViaIdentity$
- remove: true
-
-- where:
- verb: Remove
- subject: ^SapDatabaseInstance$
- remove: true
-
- where:
subject: SapDatabaseInstance
parameter-name: DatabaseInstanceName
@@ -153,29 +103,17 @@ directive:
parameter-name: Name
# SapVirtualInstance
-- where:
- verb: New
- subject: ^SapVirtualInstance$
- variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$
- remove: true
-
-- where:
- verb: New
- subject: ^SapVirtualInstance$
- variant: ^CreateExpanded$
- hide: true
-
-- where:
- verb: Stop
- subject: ^SapVirtualInstance$
- variant: ^Stop$|^StopViaIdentity$
- remove: true
+# - where:
+# verb: New
+# subject: ^SapVirtualInstance$
+# variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^CreateExpanded$
+# remove: true
-- where:
- verb: Update
- subject: ^SapVirtualInstance$
- variant: ^Update$|^UpdateViaIdentity$
- remove: true
+# - where:
+# subject: ^SapVirtualInstance$
+# variant: ^CreateViaJsonString$
+# set:
+# operation-name: SapVirtualInstancesCreateViaJsonAlt
- where:
subject: ^SapVirtualInstance$
@@ -430,43 +368,22 @@ directive:
# Result shoule be in SingleServerRecommendationResult and ThreeTierRecommendationResult
- from: source-file-csharp
where: $
- transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult Property', 'public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20240901.ISapSizingRecommendationResult Property');
+ transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISapSizingRecommendationResult Property', 'public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISapSizingRecommendationResult Property');
# remove System Data in module Monitor, ProviderInstance, SapApplicationServerInstance, SapCentralServerInstance, SapDatabaseInstance, SapLandscapeMonitor, SapVirtualInstance
- from: SapApplicationServerInstance.cs
where: $
- transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
+ transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData');
- from: SapCentralServerInstance.cs
where: $
- transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
+ transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData');
- from: SapDatabaseInstance.cs
where: $
- transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
+ transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData');
- from: SapLandscapeMonitor.cs
where: $
- transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
+ transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData');
- from: SapVirtualInstance.cs
where: $
- transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
-
-- where:
- verb: Get|Start|Stop|Update
- subject: SapApplicationInstance|SapCentralInstance|SapDatabaseInstance|SapVirtualInstance
- set:
- preview-announcement:
- preview-message: "*****************************************************************************************\\r\\n* This cmdlet will undergo a breaking change in Az v15.0.0, to be released on November 19th 2025. *\\r\\n* At least one change applies to this cmdlet. *\\r\\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\\r\\n**************************************************************************************************"
-
-- where:
- verb: Invoke
- subject: SapDiskConfiguration|SapSizingRecommendation|SapSupportedSku
- set:
- preview-announcement:
- preview-message: "*****************************************************************************************\\r\\n* This cmdlet will undergo a breaking change in Az v15.0.0, to be released on November 19th 2025. *\\r\\n* At least one change applies to this cmdlet. *\\r\\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\\r\\n**************************************************************************************************"
-
-- where:
- verb: New
- subject: SapVirtualInstance
- set:
- preview-announcement:
- preview-message: "*****************************************************************************************\\r\\n* This cmdlet will undergo a breaking change in Az v15.0.0, to be released on November 19th 2025. *\\r\\n* At least one change applies to this cmdlet. *\\r\\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\\r\\n**************************************************************************************************"
+ transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.ISystemData SystemData');
```
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_InvokeExpanded.cs b/src/Workloads/SapVirtualInstance.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_InvokeExpanded.cs
index bd27c0bebff4..8f1c4edb049b 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_InvokeExpanded.cs
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_InvokeExpanded.cs
@@ -19,15 +19,15 @@ public partial class InvokeAzWorkloadsSapSizingRecommendation_InvokeExpanded : g
{
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationResult
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSizingRecommendationResult
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow)
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow)
{
// onOk - response for 200 / application/json
- // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationResult
+ // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSizingRecommendationResult
WriteObject(response.Result);
returnNow = global::System.Threading.Tasks.Task.FromResult(true);
}
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_InvokeViaIdentityExpanded.cs b/src/Workloads/SapVirtualInstance.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_InvokeViaIdentityExpanded.cs
index 2cf185124f35..cdc26000b4a8 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_InvokeViaIdentityExpanded.cs
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_InvokeViaIdentityExpanded.cs
@@ -19,15 +19,15 @@ public partial class InvokeAzWorkloadsSapSizingRecommendation_InvokeViaIdentityE
{
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationResult
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSizingRecommendationResult
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow)
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow)
{
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationResult
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSizingRecommendationResult
WriteObject(response.Result);
returnNow = global::System.Threading.Tasks.Task.FromResult(true);
}
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1 b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1
index 6d6bc277b33a..8658d9f5303e 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1
@@ -25,7 +25,7 @@ Creates a Virtual Instance for SAP solutions (VIS) resource
{{ Add code here }}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -37,12 +37,7 @@ CONFIGURATION : Defines if the SAP system is being created us
https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadssapvirtualinstance
#>
function New-AzWorkloadsSapVirtualInstance {
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.PreviewMessage("**********************************************************************************************`n
- * This cmdlet will undergo a breaking change in Az v15.0.0, to be released on November 19th 2025. *`n
- * At least one change applies to this cmdlet. *`n
- * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n
- ***************************************************************************************************")]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance])]
[Alias('New-AzVIS')]
[CmdletBinding(DefaultParameterSetName='CreateWithDiscovery', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
@@ -120,14 +115,14 @@ function New-AzWorkloadsSapVirtualInstance {
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api50.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api50.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.IUserAssignedIdentities]))]
[System.Collections.Hashtable]
# User assigned identities dictionary
${UserAssignedIdentity},
@@ -194,7 +189,7 @@ function New-AzWorkloadsSapVirtualInstance {
process {
try {
$configuration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapConfigurationType]::Discovery
- $discoveryConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.DiscoveryConfiguration]::new();
+ $discoveryConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.DiscoveryConfiguration]::new();
$discoveryConfiguration.ConfigurationType = $configuration
$discoveryConfiguration.CentralServerVMId = $CentralServerVmId
$null = $PSBoundParameters.Remove('CentralServerVmId')
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs
index 116313ef9272..5f978b4b393f 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs
@@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Cmdlet
[global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.InternalExport]
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWorkloadsSapVirtualInstance_CreateWithJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.Alias("New-AzVIS")]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance))]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Description(@"Creates a Virtual Instance for SAP solutions (VIS) resource")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Generated]
public partial class NewAzWorkloadsSapVirtualInstance_CreateWithJsonString : global::System.Management.Automation.PSCmdlet,
@@ -176,24 +176,24 @@ public partial class NewAzWorkloadsSapVirtualInstance_CreateWithJsonString : glo
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api50.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.IErrorResponse
/// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
- partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance
/// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow);
///
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
@@ -423,12 +423,12 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api50.IErrorResponse
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.IErrorResponse
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -445,7 +445,7 @@ protected override void StopProcessing()
if ((null == code || null == message))
{
// Unrecognized Response. Create an error record based on what we have.
- var ex = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.RestException(responseMessage, await response);
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.RestException(responseMessage, await response);
WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=JsonString })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
@@ -463,12 +463,12 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
+ private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
using( NoSynchronizationContext )
{
@@ -480,7 +480,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance
WriteObject((await response));
}
}
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1 b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1
index 0c8b3bdbf2dd..0bb1639b04c1 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1
@@ -25,7 +25,7 @@ Creates a Virtual Instance for SAP solutions (VIS) resource
{{ Add code here }}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -37,12 +37,7 @@ CONFIGURATION : Defines if the SAP system is being created us
https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadssapvirtualinstance
#>
function New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath {
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.PreviewMessage("**********************************************************************************************`n
- * This cmdlet will undergo a breaking change in Az v15.0.0, to be released on November 19th 2025. *`n
- * At least one change applies to this cmdlet. *`n
- * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n
- ***************************************************************************************************")]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance])]
[Alias('New-AzVIS')]
[CmdletBinding(DefaultParameterSetName='CreateWithDiscovery', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
@@ -114,14 +109,14 @@ function New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath {
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api50.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api50.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.IUserAssignedIdentities]))]
[System.Collections.Hashtable]
# User assigned identities dictionary
${UserAssignedIdentity},
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/SapVirtualInstance.cs b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/SapVirtualInstance.cs
index b5048de9fce3..4ee31633ff86 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/SapVirtualInstance.cs
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/SapVirtualInstance.cs
@@ -29,7 +29,7 @@ public partial class SapVirtualInstance
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task SapVirtualInstancesCreateViaJsonString(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task SapVirtualInstancesCreateViaJsonString(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-09-01";
// Constant Parameters
diff --git a/src/Workloads/SapVirtualInstance.Autorest/examples/README.md b/src/Workloads/SapVirtualInstance.Autorest/examples/README.md
new file mode 100644
index 000000000000..ac871d71fc72
--- /dev/null
+++ b/src/Workloads/SapVirtualInstance.Autorest/examples/README.md
@@ -0,0 +1,11 @@
+# Examples
+This directory contains examples from the exported cmdlets of the module. When `build-module.ps1` is ran, example stub files will be generated here. If your module support Azure Profiles, the example stubs will be in individual profile folders. These example stubs should be updated to show how the cmdlet is used. The examples are imported into the documentation when `generate-help.ps1` is ran.
+
+## Info
+- Modifiable: yes
+- Generated: partial
+- Committed: yes
+- Packaged: no
+
+## Purpose
+This separates the example documentation details from the generated documentation information provided directly from the generated cmdlets. Since the cmdlets don't have examples from the REST spec, this provides a means to add examples easily. The example stubs provide the markdown format that is required. The 3 core elements are: the name of the example, the code information of the example, and the description of the example. That information, if the markdown format is followed, will be available to documentation generation and be part of the documents in the `..\docs` folder.
\ No newline at end of file
From e47a21c949317f1e80c237dd8285a82bcad4fa7f Mon Sep 17 00:00:00 2001
From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com>
Date: Mon, 28 Jul 2025 17:40:55 +1000
Subject: [PATCH 02/13] update custom code
---
.../Properties/AssemblyInfo.cs | 6 +-
.../SapVirtualInstance.Autorest/README.md | 36 ++--
...VirtualInstances-applicationInstances.json | 43 -----
.../sapVirtualInstances-centralInstances.json | 43 -----
...sapVirtualInstances-databaseInstances.json | 43 -----
.../sapVirtualInstances.json | 38 ----
...SapVirtualInstance_CreateWithDiscovery.ps1 | 26 ++-
...SapVirtualInstance_CreateWithJsonString.cs | 164 +++++++++++-------
...ualInstance_CreateWithJsonTemplatePath.ps1 | 22 +--
.../SapVirtualInstance.cs | 2 +-
.../examples/README.md | 11 --
.../generate-info.json | 2 +-
src/Workloads/Workloads.sln | 57 +++---
src/Workloads/Workloads/Az.Workloads.psd1 | 12 +-
src/Workloads/Workloads/help/Az.Workloads.md | 8 +-
.../Get-AzWorkloadsSapApplicationInstance.md | 27 ++-
.../help/Get-AzWorkloadsSapCentralInstance.md | 26 ++-
.../Get-AzWorkloadsSapDatabaseInstance.md | 26 ++-
.../help/Get-AzWorkloadsSapVirtualInstance.md | 3 +-
.../Invoke-AzWorkloadsSapDiskConfiguration.md | 72 ++++++--
...voke-AzWorkloadsSapSizingRecommendation.md | 78 ++++++---
.../help/Invoke-AzWorkloadsSapSupportedSku.md | 76 ++++++--
.../help/New-AzWorkloadsSapVirtualInstance.md | 97 ++++++++---
.../Remove-AzWorkloadsSapVirtualInstance.md | 1 -
...Start-AzWorkloadsSapApplicationInstance.md | 97 +++++++++--
.../Start-AzWorkloadsSapCentralInstance.md | 95 ++++++++--
.../Start-AzWorkloadsSapDatabaseInstance.md | 97 +++++++++--
.../Start-AzWorkloadsSapVirtualInstance.md | 60 ++++++-
.../Stop-AzWorkloadsSapApplicationInstance.md | 83 ++++++++-
.../Stop-AzWorkloadsSapCentralInstance.md | 81 ++++++++-
.../Stop-AzWorkloadsSapDatabaseInstance.md | 81 ++++++++-
.../Stop-AzWorkloadsSapVirtualInstance.md | 57 +++++-
...pdate-AzWorkloadsSapApplicationInstance.md | 79 ++++++++-
.../Update-AzWorkloadsSapCentralInstance.md | 83 ++++++++-
.../Update-AzWorkloadsSapDatabaseInstance.md | 83 ++++++++-
.../Update-AzWorkloadsSapVirtualInstance.md | 66 +++++--
36 files changed, 1330 insertions(+), 551 deletions(-)
delete mode 100644 src/Workloads/SapVirtualInstance.Autorest/examples/README.md
diff --git a/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs b/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs
index 787d971e23f0..e20bdedb67cc 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs
+++ b/src/Workloads/SapVirtualInstance.Autorest/Properties/AssemblyInfo.cs
@@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - SapVirtualInstance")]
-[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")]
-[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
-[assembly: System.CLSCompliantAttribute(false)]
\ No newline at end of file
+[assembly: System.CLSCompliantAttribute(false)]
diff --git a/src/Workloads/SapVirtualInstance.Autorest/README.md b/src/Workloads/SapVirtualInstance.Autorest/README.md
index 8935eb5ef61c..71e2a7e06614 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/README.md
+++ b/src/Workloads/SapVirtualInstance.Autorest/README.md
@@ -47,20 +47,6 @@ namespace: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance
inlining-threshold: 100
directive:
-# #|^CreateViaJsonString$|^CreateViaJsonFilePath$
-# - where:
-# verb: New
-# subject: ^SapVirtualInstance$
-# variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^CreateExpanded$
-# remove: true
-
-# - where:
-# verb: New
-# subject: ^SapVirtualInstance$
-# variant: ^CreateViaJsonString$|^CreateViaJsonFilePath$
-# set:
-# operation-name: SapVirtualInstancesCreateViaJsonAlt
-
- where:
variant: ^(Stop|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
@@ -103,17 +89,17 @@ directive:
parameter-name: Name
# SapVirtualInstance
-# - where:
-# verb: New
-# subject: ^SapVirtualInstance$
-# variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^CreateExpanded$
-# remove: true
-
-# - where:
-# subject: ^SapVirtualInstance$
-# variant: ^CreateViaJsonString$
-# set:
-# operation-name: SapVirtualInstancesCreateViaJsonAlt
+- where:
+ verb: New
+ subject: ^SapVirtualInstance$
+ variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$
+ remove: true
+
+- where:
+ verb: New
+ subject: ^SapVirtualInstance$
+ variant: ^CreateExpanded$
+ hide: true
- where:
subject: ^SapVirtualInstance$
diff --git a/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-applicationInstances.json b/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-applicationInstances.json
index 5999b65689c5..d67fed4b4c7f 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-applicationInstances.json
+++ b/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-applicationInstances.json
@@ -47,49 +47,6 @@
]
}
]
- },
- {
- "name": "Start-AzWorkloadsSapApplicationInstance",
- "description": "Starts the SAP Application Server Instance.",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/applicationInstances/{applicationInstanceName}/start",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapapplicationinstance"
- },
- "parameterSets": [
- {
- "parameters": [
- "-Name ",
- "-ResourceGroupName ",
- "-SapVirtualInstanceName ",
- "[-SubscriptionId ]"
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "Starts the SAP Application Server Instance.",
- "parameters": [
- {
- "name": "-Name",
- "value": "[Path.applicationInstanceName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SapVirtualInstanceName",
- "value": "[Path.sapVirtualInstanceName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- }
- ]
- }
- ]
}
]
}
diff --git a/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-centralInstances.json b/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-centralInstances.json
index b874a51c28d1..2d8d5c84f471 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-centralInstances.json
+++ b/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-centralInstances.json
@@ -47,49 +47,6 @@
]
}
]
- },
- {
- "name": "Start-AzWorkloadsSapCentralInstance",
- "description": "Starts the SAP Central Services Instance.",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/centralInstances/{centralInstanceName}/start",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapcentralinstance"
- },
- "parameterSets": [
- {
- "parameters": [
- "-Name ",
- "-ResourceGroupName ",
- "-SapVirtualInstanceName ",
- "[-SubscriptionId ]"
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "Starts the SAP Central Services Instance.",
- "parameters": [
- {
- "name": "-Name",
- "value": "[Path.centralInstanceName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SapVirtualInstanceName",
- "value": "[Path.sapVirtualInstanceName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- }
- ]
- }
- ]
}
]
}
diff --git a/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-databaseInstances.json b/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-databaseInstances.json
index 008804d9e8e3..21a0aa020f72 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-databaseInstances.json
+++ b/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-databaseInstances.json
@@ -47,49 +47,6 @@
]
}
]
- },
- {
- "name": "Start-AzWorkloadsSapDatabaseInstance",
- "description": "Starts the database instance of the SAP system.",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/databaseInstances/{databaseInstanceName}/start",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapdatabaseinstance"
- },
- "parameterSets": [
- {
- "parameters": [
- "-Name ",
- "-ResourceGroupName ",
- "-SapVirtualInstanceName ",
- "[-SubscriptionId ]"
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "Starts the database instance of the SAP system.",
- "parameters": [
- {
- "name": "-Name",
- "value": "[Path.databaseInstanceName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SapVirtualInstanceName",
- "value": "[Path.sapVirtualInstanceName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- }
- ]
- }
- ]
}
]
}
diff --git a/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances.json b/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances.json
index 1d2976c3995b..bd7121477bfc 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances.json
+++ b/src/Workloads/SapVirtualInstance.Autorest/UX/Microsoft.Workloads/sapVirtualInstances.json
@@ -80,44 +80,6 @@
]
}
]
- },
- {
- "name": "Start-AzWorkloadsSapVirtualInstance",
- "description": "Starts the SAP application, that is the Central Services instance and Application server instances.",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/start",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapvirtualinstance"
- },
- "parameterSets": [
- {
- "parameters": [
- "-Name ",
- "-ResourceGroupName ",
- "[-SubscriptionId ]"
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "Starts the SAP application, that is the Central Services instance and Application server instances.",
- "parameters": [
- {
- "name": "-Name",
- "value": "[Path.sapVirtualInstanceName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- }
- ]
- }
- ]
}
]
}
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1 b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1
index 8658d9f5303e..2b56e45a827e 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1
@@ -75,9 +75,9 @@ function New-AzWorkloadsSapVirtualInstance {
${ManagedRgStorageAccountName},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapEnvironmentType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.PSArgumentCompleterAttribute("NonProd", "Prod")]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapEnvironmentType]
+ [System.String]
# Defines the environment type - Production/Non Production.
${Environment},
@@ -88,18 +88,17 @@ function New-AzWorkloadsSapVirtualInstance {
${Location},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapProductType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.PSArgumentCompleterAttribute("ECC", "S4HANA", "Other")]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapProductType]
+ [System.String]
# Defines the SAP Product type.
${SapProduct},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.ManagedServiceIdentityType])]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.ManagedServiceIdentityType]
- # Type of manage identity
- ${IdentityType},
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
@@ -119,12 +118,13 @@ function New-AzWorkloadsSapVirtualInstance {
[System.Collections.Hashtable]
# Resource tags.
${Tag},
-
+
[Parameter()]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # User assigned identities dictionary
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter()]
@@ -188,9 +188,7 @@ function New-AzWorkloadsSapVirtualInstance {
)
process {
try {
- $configuration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapConfigurationType]::Discovery
$discoveryConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.DiscoveryConfiguration]::new();
- $discoveryConfiguration.ConfigurationType = $configuration
$discoveryConfiguration.CentralServerVMId = $CentralServerVmId
$null = $PSBoundParameters.Remove('CentralServerVmId')
if($PSBoundParameters.ContainsKey('ManagedRgStorageAccountName')) {
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs
index 5f978b4b393f..07759bd8cb1d 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs
@@ -39,7 +39,7 @@ public partial class NewAzWorkloadsSapVirtualInstance_CreateWithJsonString : glo
Required = true,
ReadOnly = false,
Description = @"Json string",
- PossibleTypes = new [] { typeof(string) })]
+ PossibleTypes = new[] { typeof(string) })]
public string JsonString { get => this._jsonString; set => this._jsonString = value; }
/// Backing field for property.
@@ -84,7 +84,7 @@ public partial class NewAzWorkloadsSapVirtualInstance_CreateWithJsonString : glo
public Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
/// Accessor for our copy of the InvocationInfo.
- public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
+ public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation; set { __invocationInfo = value; } }
///
/// cancellation delegate. Stops the cmdlet when called.
@@ -104,7 +104,7 @@ public partial class NewAzWorkloadsSapVirtualInstance_CreateWithJsonString : glo
ReadOnly = false,
Description = @"The name of the Virtual Instances for SAP solutions resource",
SerializedName = @"sapVirtualInstanceName",
- PossibleTypes = new [] { typeof(string) })]
+ PossibleTypes = new[] { typeof(string) })]
[global::System.Management.Automation.Alias("SapVirtualInstanceName")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.ParameterCategory.Path)]
public string Name { get => this._name; set => this._name = value; }
@@ -148,7 +148,7 @@ public partial class NewAzWorkloadsSapVirtualInstance_CreateWithJsonString : glo
ReadOnly = false,
Description = @"The name of the resource group. The name is case insensitive.",
SerializedName = @"resourceGroupName",
- PossibleTypes = new [] { typeof(string) })]
+ PossibleTypes = new[] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.ParameterCategory.Path)]
public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; }
@@ -163,14 +163,22 @@ public partial class NewAzWorkloadsSapVirtualInstance_CreateWithJsonString : glo
ReadOnly = false,
Description = @"The ID of the target subscription.",
SerializedName = @"subscriptionId",
- PossibleTypes = new [] { typeof(string) })]
+ PossibleTypes = new[] { typeof(string) })]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.DefaultInfo(
Name = @"",
- Description =@"",
+ Description = @"",
Script = @"(Get-AzContext).Subscription.Id")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.ParameterCategory.Path)]
public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; }
+ ///
+ /// The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in
+ /// the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
+ ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The array of user assigned identities associated with the resource. The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'")]
+ [global::System.Management.Automation.AllowEmptyCollection]
+ public string[] UserAssignedIdentity { get; set; }
+
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
@@ -210,7 +218,7 @@ protected override void BeginProcessing()
{
Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.AttachDebugger.Break();
}
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletBeginProcessing).Wait(); if (((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
}
/// Creates a duplicate instance of this cmdlet (via JSON serialization).
@@ -250,66 +258,66 @@ protected override void EndProcessing()
///
/// A that will be complete when handling of the message is completed.
///
- async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
+ async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData)
{
- using( NoSynchronizationContext )
+ using (NoSynchronizationContext)
{
if (token.IsCancellationRequested)
{
- return ;
+ return;
}
- switch ( id )
+ switch (id)
{
case Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.Verbose:
- {
- WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
- return ;
- }
+ {
+ WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}");
+ return;
+ }
case Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.Warning:
- {
- WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
- return ;
- }
+ {
+ WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}");
+ return;
+ }
case Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.Information:
- {
- // When an operation supports asjob, Information messages must go thru verbose.
- WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}");
- return ;
- }
+ {
+ // When an operation supports asjob, Information messages must go thru verbose.
+ WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}");
+ return;
+ }
case Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.Debug:
- {
- WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
- return ;
- }
+ {
+ WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}");
+ return;
+ }
case Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.Error:
- {
- WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) );
- return ;
- }
+ {
+ WriteError(new global::System.Management.Automation.ErrorRecord(new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null));
+ return;
+ }
case Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.DelayBeforePolling:
- {
- if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait"))
{
- var data = messageData();
- if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response)
+ if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait"))
{
- var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation");
- var location = response.GetFirstHeader(@"Location");
- var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation;
- WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.PowerShell.AsyncOperationResponse { Target = uri });
- // do nothing more.
- data.Cancel();
- return;
+ var data = messageData();
+ if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response)
+ {
+ var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation");
+ var location = response.GetFirstHeader(@"Location");
+ var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation;
+ WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.PowerShell.AsyncOperationResponse { Target = uri });
+ // do nothing more.
+ data.Cancel();
+ return;
+ }
}
+ break;
}
- break;
- }
}
- await Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null );
+ await Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null);
if (token.IsCancellationRequested)
{
- return ;
+ return;
}
WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}");
}
@@ -326,7 +334,7 @@ public NewAzWorkloadsSapVirtualInstance_CreateWithJsonString()
/// Performs execution of the command.
protected override void ProcessRecord()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletProcessRecordStart).Wait(); if (((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
__processRecordId = System.Guid.NewGuid().ToString();
try
{
@@ -344,9 +352,9 @@ protected override void ProcessRecord()
}
else
{
- using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token) )
+ using (var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token))
{
- asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token);
+ asyncCommandRuntime.Wait(ProcessRecordAsync(), ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token);
}
}
}
@@ -354,18 +362,18 @@ protected override void ProcessRecord()
catch (global::System.AggregateException aggregateException)
{
// unroll the inner exceptions to get the root cause
- foreach( var innerException in aggregateException.Flatten().InnerExceptions )
+ foreach (var innerException in aggregateException.Flatten().InnerExceptions)
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if (((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
// Write exception out to error channel.
- WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) );
+ WriteError(new global::System.Management.Automation.ErrorRecord(innerException, string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null));
}
}
- catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null)
+ catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException) == null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null)
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if (((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
// Write exception out to error channel.
- WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) );
+ WriteError(new global::System.Management.Automation.ErrorRecord(exception, string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null));
}
finally
{
@@ -377,7 +385,7 @@ protected override void ProcessRecord()
///
/// A that will be complete when handling of the method is completed.
///
- protected async global::System.Threading.Tasks.Task ProcessRecordAsync()
+ protected async global::System.Threading.Tasks.Task ProcessRecordAsync()
{
using( NoSynchronizationContext )
{
@@ -395,6 +403,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+ this.PreProcessManagedIdentityParameters();
await this.Client.SapVirtualInstancesCreateViaJsonString(SubscriptionId, ResourceGroupName, Name, JsonString, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -430,14 +439,14 @@ protected override void StopProcessing()
///
private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
- using( NoSynchronizationContext )
+ using (NoSynchronizationContext)
{
var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
overrideOnDefault(responseMessage, response, ref _returnNow);
// if overrideOnDefault has returned true, then return right away.
if ((null != _returnNow && await _returnNow))
{
- return ;
+ return;
}
// Error Response : default
var code = (await response)?.Code;
@@ -446,16 +455,16 @@ protected override void StopProcessing()
{
// Unrecognized Response. Create an error record based on what we have.
var ex = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.RestException(responseMessage, await response);
- WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=JsonString })
+ WriteError(new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId = SubscriptionId, ResourceGroupName = ResourceGroupName, Name = Name, body = JsonString })
{
- ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
+ ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
});
}
else
{
- WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=JsonString })
+ WriteError(new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId = SubscriptionId, ResourceGroupName = ResourceGroupName, Name = Name, body = JsonString })
{
- ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty }
+ ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty }
});
}
}
@@ -470,19 +479,44 @@ protected override void StopProcessing()
///
private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response)
{
- using( NoSynchronizationContext )
+ using (NoSynchronizationContext)
{
var _returnNow = global::System.Threading.Tasks.Task.FromResult(false);
overrideOnOk(responseMessage, response, ref _returnNow);
// if overrideOnOk has returned true, then return right away.
if ((null != _returnNow && await _returnNow))
{
- return ;
+ return;
}
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance
WriteObject((await response));
}
}
+
+ private void PreProcessManagedIdentityParameters()
+ {
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ // calculate UserAssignedIdentity
+ _resourceBody.IdentityUserAssignedIdentity.Clear();
+ foreach( var id in this.UserAssignedIdentity )
+ {
+ _resourceBody.IdentityUserAssignedIdentity.Add(id, new Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.UserAssignedIdentity());
+ }
+ }
+ // calculate IdentityType
+ if (this.UserAssignedIdentity?.Length > 0)
+ {
+ if ("SystemAssigned".Equals(_resourceBody.IdentityType, StringComparison.InvariantCultureIgnoreCase))
+ {
+ _resourceBody.IdentityType = "SystemAssigned,UserAssigned";
+ }
+ else
+ {
+ _resourceBody.IdentityType = "UserAssigned";
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1 b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1
index 0bb1639b04c1..f242a08cf42f 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1
@@ -69,9 +69,9 @@ function New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath {
${Configuration},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapEnvironmentType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.PSArgumentCompleterAttribute("NonProd", "Prod")]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapEnvironmentType]
+ [System.String]
# Defines the environment type - Production/Non Production.
${Environment},
@@ -82,18 +82,17 @@ function New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath {
${Location},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapProductType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.PSArgumentCompleterAttribute("ECC", "S4HANA", "Other")]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapProductType]
+ [System.String]
# Defines the SAP Product type.
${SapProduct},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.ManagedServiceIdentityType])]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.ManagedServiceIdentityType]
- # Type of manage identity
- ${IdentityType},
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
@@ -115,10 +114,11 @@ function New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath {
${Tag},
[Parameter()]
+ [AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.IUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # User assigned identities dictionary
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
${UserAssignedIdentity},
[Parameter()]
diff --git a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/SapVirtualInstance.cs b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/SapVirtualInstance.cs
index 4ee31633ff86..df855662248d 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/SapVirtualInstance.cs
+++ b/src/Workloads/SapVirtualInstance.Autorest/custom/New-AzWorkloadsSapVirtualInstance/SapVirtualInstance.cs
@@ -29,7 +29,7 @@ public partial class SapVirtualInstance
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task SapVirtualInstancesCreateViaJsonString(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task SapVirtualInstancesCreateViaJsonStringAlt(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.ISendAsync sender)
{
var apiVersion = @"2024-09-01";
// Constant Parameters
diff --git a/src/Workloads/SapVirtualInstance.Autorest/examples/README.md b/src/Workloads/SapVirtualInstance.Autorest/examples/README.md
deleted file mode 100644
index ac871d71fc72..000000000000
--- a/src/Workloads/SapVirtualInstance.Autorest/examples/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Examples
-This directory contains examples from the exported cmdlets of the module. When `build-module.ps1` is ran, example stub files will be generated here. If your module support Azure Profiles, the example stubs will be in individual profile folders. These example stubs should be updated to show how the cmdlet is used. The examples are imported into the documentation when `generate-help.ps1` is ran.
-
-## Info
-- Modifiable: yes
-- Generated: partial
-- Committed: yes
-- Packaged: no
-
-## Purpose
-This separates the example documentation details from the generated documentation information provided directly from the generated cmdlets. Since the cmdlets don't have examples from the REST spec, this provides a means to add examples easily. The example stubs provide the markdown format that is required. The 3 core elements are: the name of the example, the code information of the example, and the description of the example. That information, if the markdown format is followed, will be available to documentation generation and be part of the documents in the `..\docs` folder.
\ No newline at end of file
diff --git a/src/Workloads/SapVirtualInstance.Autorest/generate-info.json b/src/Workloads/SapVirtualInstance.Autorest/generate-info.json
index cceb424f6c48..79fa040f42ae 100644
--- a/src/Workloads/SapVirtualInstance.Autorest/generate-info.json
+++ b/src/Workloads/SapVirtualInstance.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "7a07ab5e-ee86-4b3a-a44f-5adfe2a66327"
+ "generate_Id": "7a2aec18-6b04-4faf-a1da-b073751cf52a"
}
diff --git a/src/Workloads/Workloads.sln b/src/Workloads/Workloads.sln
index bc835093abad..865d7c9fcca6 100644
--- a/src/Workloads/Workloads.sln
+++ b/src/Workloads/Workloads.sln
@@ -1,4 +1,4 @@
-
+
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
@@ -21,11 +21,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Workloads", "Workloads\Work
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Monitors.Autorest", "Monitors.Autorest", "{F8EE8587-579C-E9CA-BFA7-D4EB0C8B506E}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Monitors", "..\..\generated\Workloads\Monitors.Autorest\Az.Monitors.csproj", "{E1784FF1-A4FC-49E7-857F-59677B4BEF9A}"
-EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SapVirtualInstance.Autorest", "SapVirtualInstance.Autorest", "{EB808B23-4039-57BF-39D0-8ACE41B9711F}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SapVirtualInstance", "..\..\generated\Workloads\SapVirtualInstance.Autorest\Az.SapVirtualInstance.csproj", "{07994ECA-ABC8-453C-8882-A7AA40B47B75}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SapVirtualInstance", "..\..\generated\Workloads\SapVirtualInstance.Autorest\Az.SapVirtualInstance.csproj", "{FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -121,30 +119,30 @@ Global
{F27ABA7E-B3ED-4B35-8409-43B3D92FFBFE}.Release|x64.Build.0 = Release|Any CPU
{F27ABA7E-B3ED-4B35-8409-43B3D92FFBFE}.Release|x86.ActiveCfg = Release|Any CPU
{F27ABA7E-B3ED-4B35-8409-43B3D92FFBFE}.Release|x86.Build.0 = Release|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Debug|x64.ActiveCfg = Debug|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Debug|x64.Build.0 = Debug|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Debug|x86.ActiveCfg = Debug|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Debug|x86.Build.0 = Debug|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Release|Any CPU.Build.0 = Release|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Release|x64.ActiveCfg = Release|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Release|x64.Build.0 = Release|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Release|x86.ActiveCfg = Release|Any CPU
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A}.Release|x86.Build.0 = Release|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Debug|x64.ActiveCfg = Debug|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Debug|x64.Build.0 = Debug|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Debug|x86.ActiveCfg = Debug|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Debug|x86.Build.0 = Debug|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Release|Any CPU.Build.0 = Release|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Release|x64.ActiveCfg = Release|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Release|x64.Build.0 = Release|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Release|x86.ActiveCfg = Release|Any CPU
- {07994ECA-ABC8-453C-8882-A7AA40B47B75}.Release|x86.Build.0 = Release|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Debug|x64.Build.0 = Debug|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Debug|x86.Build.0 = Debug|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Release|Any CPU.Build.0 = Release|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Release|x64.ActiveCfg = Release|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Release|x64.Build.0 = Release|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Release|x86.ActiveCfg = Release|Any CPU
+ {74EA2E4F-203E-47AB-8EB7-8FD701000929}.Release|x86.Build.0 = Release|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Debug|x64.Build.0 = Debug|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Debug|x86.Build.0 = Debug|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Release|x64.ActiveCfg = Release|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Release|x64.Build.0 = Release|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Release|x86.ActiveCfg = Release|Any CPU
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -156,7 +154,6 @@ Global
{21B0E1A3-B9B6-42E9-97B7-DC1A56FDBABA} = {CDFD4C75-7CF6-4B30-9A7E-D8B5D25EB75A}
{84EB3D08-249C-4900-8E17-832EC2DB5494} = {CDFD4C75-7CF6-4B30-9A7E-D8B5D25EB75A}
{CF8A9A95-4825-47E0-86E7-2788A2127BE1} = {CDFD4C75-7CF6-4B30-9A7E-D8B5D25EB75A}
- {E1784FF1-A4FC-49E7-857F-59677B4BEF9A} = {F8EE8587-579C-E9CA-BFA7-D4EB0C8B506E}
- {07994ECA-ABC8-453C-8882-A7AA40B47B75} = {EB808B23-4039-57BF-39D0-8ACE41B9711F}
+ {FA6D1716-7B9C-41F6-A959-BF98A5D2E0E7} = {EB808B23-4039-57BF-39D0-8ACE41B9711F}
EndGlobalSection
EndGlobal
diff --git a/src/Workloads/Workloads/Az.Workloads.psd1 b/src/Workloads/Workloads/Az.Workloads.psd1
index 8d82798a06f1..937ceae50edc 100644
--- a/src/Workloads/Workloads/Az.Workloads.psd1
+++ b/src/Workloads/Workloads/Az.Workloads.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 10/9/2025
+# Generated on: 7/28/2025
#
@{
@@ -51,17 +51,17 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''
# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.0'; })
+RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; })
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Monitors.Autorest/bin/Az.Monitors.private.dll',
'SapVirtualInstance.Autorest/bin/Az.SapVirtualInstance.private.dll'
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
-# ScriptsToProcess = @()
+ScriptsToProcess = @()
# Type files (.ps1xml) to be loaded when importing this module
-# TypesToProcess = @()
+TypesToProcess = @()
# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = 'Monitors.Autorest/Az.Monitors.format.ps1xml',
@@ -142,7 +142,7 @@ PrivateData = @{
PSData = @{
# Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure','ResourceManager','ARM','PSModule','Workloads'
+ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Workloads'
# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
@@ -167,7 +167,7 @@ PrivateData = @{
} # End of PSData hashtable
- } # End of PrivateData hashtable
+} # End of PrivateData hashtable
# HelpInfo URI of this module
# HelpInfoURI = ''
diff --git a/src/Workloads/Workloads/help/Az.Workloads.md b/src/Workloads/Workloads/help/Az.Workloads.md
index 4e3e527f3a28..6c753e933143 100644
--- a/src/Workloads/Workloads/help/Az.Workloads.md
+++ b/src/Workloads/Workloads/help/Az.Workloads.md
@@ -75,7 +75,7 @@ Create an in-memory object for SapLandscapeMonitorMetricThresholds.
Create an in-memory object for SapLandscapeMonitorSidMapping.
### [New-AzWorkloadsSapVirtualInstance](New-AzWorkloadsSapVirtualInstance.md)
-Creates a Virtual Instance for SAP solutions (VIS) resource
+Create a Virtual Instance for SAP solutions (VIS) resource
### [Remove-AzWorkloadsMonitor](Remove-AzWorkloadsMonitor.md)
Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
@@ -120,15 +120,15 @@ Patches the Tags field of a SAP monitor for the specified subscription, resource
Puts the SAP Application Server Instance resource.
### [Update-AzWorkloadsSapCentralInstance](Update-AzWorkloadsSapCentralInstance.md)
-Updates the SAP Central Services Instance resource.
+Update the SAP Central Services Instance resource.
<br><br>This can be used to update tags on the resource.
### [Update-AzWorkloadsSapDatabaseInstance](Update-AzWorkloadsSapDatabaseInstance.md)
-Updates the Database resource.
+Update the Database resource.
### [Update-AzWorkloadsSapLandscapeMonitor](Update-AzWorkloadsSapLandscapeMonitor.md)
Patches the SAP Landscape Monitor Dashboard for the specified subscription, resource group, and SAP monitor name.
### [Update-AzWorkloadsSapVirtualInstance](Update-AzWorkloadsSapVirtualInstance.md)
-Updates a Virtual Instance for SAP solutions resource
+Update a Virtual Instance for SAP solutions (VIS) resource
diff --git a/src/Workloads/Workloads/help/Get-AzWorkloadsSapApplicationInstance.md b/src/Workloads/Workloads/help/Get-AzWorkloadsSapApplicationInstance.md
index 8ac8e36636d2..04c92e389779 100644
--- a/src/Workloads/Workloads/help/Get-AzWorkloadsSapApplicationInstance.md
+++ b/src/Workloads/Workloads/help/Get-AzWorkloadsSapApplicationInstance.md
@@ -19,6 +19,13 @@ Get-AzWorkloadsSapApplicationInstance -ResourceGroupName -SapVirtualIns
[]
```
+### GetViaIdentitySapVirtualInstance
+```
+Get-AzWorkloadsSapApplicationInstance -Name
+ -SapVirtualInstanceInputObject [-DefaultProfile ]
+ []
+```
+
### Get
```
Get-AzWorkloadsSapApplicationInstance -Name -ResourceGroupName
@@ -96,7 +103,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
@@ -115,7 +121,7 @@ The name of SAP Application Server instance resource.
```yaml
Type: System.String
-Parameter Sets: Get
+Parameter Sets: GetViaIdentitySapVirtualInstance, Get
Aliases:
Required: True
@@ -141,6 +147,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -SapVirtualInstanceInputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
+Parameter Sets: GetViaIdentitySapVirtualInstance
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
### -SapVirtualInstanceName
The name of the Virtual Instances for SAP solutions resource
@@ -181,7 +202,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapApplicationServerInstance
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapApplicationServerInstance
## NOTES
diff --git a/src/Workloads/Workloads/help/Get-AzWorkloadsSapCentralInstance.md b/src/Workloads/Workloads/help/Get-AzWorkloadsSapCentralInstance.md
index 3807ac5b7143..f2158878470a 100644
--- a/src/Workloads/Workloads/help/Get-AzWorkloadsSapCentralInstance.md
+++ b/src/Workloads/Workloads/help/Get-AzWorkloadsSapCentralInstance.md
@@ -19,6 +19,12 @@ Get-AzWorkloadsSapCentralInstance -ResourceGroupName -SapVirtualInstanc
[]
```
+### GetViaIdentitySapVirtualInstance
+```
+Get-AzWorkloadsSapCentralInstance -Name -SapVirtualInstanceInputObject
+ [-DefaultProfile ] []
+```
+
### Get
```
Get-AzWorkloadsSapCentralInstance -Name -ResourceGroupName -SapVirtualInstanceName
@@ -83,7 +89,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
@@ -102,7 +107,7 @@ Central Services Instance resource name string modeled as parameter for auto gen
```yaml
Type: System.String
-Parameter Sets: Get
+Parameter Sets: GetViaIdentitySapVirtualInstance, Get
Aliases:
Required: True
@@ -128,6 +133,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -SapVirtualInstanceInputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
+Parameter Sets: GetViaIdentitySapVirtualInstance
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
### -SapVirtualInstanceName
The name of the Virtual Instances for SAP solutions resource
@@ -168,7 +188,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapCentralServerInstance
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapCentralServerInstance
## NOTES
diff --git a/src/Workloads/Workloads/help/Get-AzWorkloadsSapDatabaseInstance.md b/src/Workloads/Workloads/help/Get-AzWorkloadsSapDatabaseInstance.md
index 972736397e38..7b7c761e86a3 100644
--- a/src/Workloads/Workloads/help/Get-AzWorkloadsSapDatabaseInstance.md
+++ b/src/Workloads/Workloads/help/Get-AzWorkloadsSapDatabaseInstance.md
@@ -19,6 +19,12 @@ Get-AzWorkloadsSapDatabaseInstance -ResourceGroupName -SapVirtualInstan
[]
```
+### GetViaIdentitySapVirtualInstance
+```
+Get-AzWorkloadsSapDatabaseInstance -Name -SapVirtualInstanceInputObject
+ [-DefaultProfile ] []
+```
+
### Get
```
Get-AzWorkloadsSapDatabaseInstance -Name -ResourceGroupName -SapVirtualInstanceName
@@ -83,7 +89,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
@@ -102,7 +107,7 @@ Database resource name string modeled as parameter for auto generation to work c
```yaml
Type: System.String
-Parameter Sets: Get
+Parameter Sets: GetViaIdentitySapVirtualInstance, Get
Aliases:
Required: True
@@ -128,6 +133,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -SapVirtualInstanceInputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
+Parameter Sets: GetViaIdentitySapVirtualInstance
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
### -SapVirtualInstanceName
The name of the Virtual Instances for SAP solutions resource
@@ -168,7 +188,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapDatabaseInstance
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapDatabaseInstance
## NOTES
diff --git a/src/Workloads/Workloads/help/Get-AzWorkloadsSapVirtualInstance.md b/src/Workloads/Workloads/help/Get-AzWorkloadsSapVirtualInstance.md
index 20f54b91614b..97ee56879e52 100644
--- a/src/Workloads/Workloads/help/Get-AzWorkloadsSapVirtualInstance.md
+++ b/src/Workloads/Workloads/help/Get-AzWorkloadsSapVirtualInstance.md
@@ -102,7 +102,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
@@ -172,7 +171,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstance
## NOTES
diff --git a/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapDiskConfiguration.md b/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapDiskConfiguration.md
index 94b45b1bf926..84256a70e5b4 100644
--- a/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapDiskConfiguration.md
+++ b/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapDiskConfiguration.md
@@ -15,9 +15,20 @@ Get the SAP Disk Configuration Layout prod/non-prod SAP System.
### InvokeExpanded (Default)
```
Invoke-AzWorkloadsSapDiskConfiguration -Location [-SubscriptionId ] -AppLocation
- -DatabaseType -DbVMSku -DeploymentType
- -Environment -SapProduct [-DefaultProfile ]
- [-WhatIf] [-Confirm] []
+ -DatabaseType -DbVMSku -DeploymentType -Environment -SapProduct
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### InvokeViaJsonString
+```
+Invoke-AzWorkloadsSapDiskConfiguration -Location [-SubscriptionId ] -JsonString
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### InvokeViaJsonFilePath
+```
+Invoke-AzWorkloadsSapDiskConfiguration -Location [-SubscriptionId ] -JsonFilePath
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
```
### Invoke
@@ -30,9 +41,8 @@ Invoke-AzWorkloadsSapDiskConfiguration -Location [-SubscriptionId -AppLocation
- -DatabaseType -DbVMSku -DeploymentType
- -Environment -SapProduct [-DefaultProfile ]
- [-WhatIf] [-Confirm] []
+ -DatabaseType -DbVMSku -DeploymentType -Environment -SapProduct
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
```
### InvokeViaIdentity
@@ -100,10 +110,9 @@ Accept wildcard characters: False
### -Body
The SAP request to get list of disk configurations.
-To construct, see NOTES section for BODY properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapDiskConfigurationsRequest
+Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapDiskConfigurationsRequest
Parameter Sets: Invoke, InvokeViaIdentity
Aliases:
@@ -119,7 +128,7 @@ The database type.
Eg: HANA, DB2, etc
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapDatabaseType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -166,7 +175,7 @@ The deployment type.
Eg: SingleServer/ThreeTier
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapDeploymentType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -181,7 +190,7 @@ Accept wildcard characters: False
Defines the environment type - Production/Non Production.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapEnvironmentType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -194,7 +203,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
@@ -208,12 +216,42 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
+### -JsonFilePath
+Path of Json file supplied to the Invoke operation
+
+```yaml
+Type: System.String
+Parameter Sets: InvokeViaJsonFilePath
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -JsonString
+Json string supplied to the Invoke operation
+
+```yaml
+Type: System.String
+Parameter Sets: InvokeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Location
The name of the Azure region.
```yaml
Type: System.String
-Parameter Sets: InvokeExpanded, Invoke
+Parameter Sets: InvokeExpanded, InvokeViaJsonString, InvokeViaJsonFilePath, Invoke
Aliases:
Required: True
@@ -227,7 +265,7 @@ Accept wildcard characters: False
Defines the SAP Product type.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapProductType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -244,7 +282,7 @@ The value must be an UUID.
```yaml
Type: System.String
-Parameter Sets: InvokeExpanded, Invoke
+Parameter Sets: InvokeExpanded, InvokeViaJsonString, InvokeViaJsonFilePath, Invoke
Aliases:
Required: False
@@ -290,13 +328,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapDiskConfigurationsRequest
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapDiskConfigurationsRequest
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapDiskConfigurationsResultVolumeConfigurations
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapDiskConfigurationsResult
## NOTES
diff --git a/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapSizingRecommendation.md b/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapSizingRecommendation.md
index ce90093b129f..00792b2eb4b9 100644
--- a/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapSizingRecommendation.md
+++ b/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapSizingRecommendation.md
@@ -15,9 +15,20 @@ Gets the sizing recommendations.
### InvokeExpanded (Default)
```
Invoke-AzWorkloadsSapSizingRecommendation -Location [-SubscriptionId ] -AppLocation
- -DatabaseType -DbMemory -DeploymentType
- -Environment -Sap -SapProduct
- [-DbScaleMethod ] [-HighAvailabilityType ]
+ -DatabaseType -DbMemory -DeploymentType -Environment -Sap
+ -SapProduct [-DbScaleMethod ] [-HighAvailabilityType ] [-DefaultProfile ]
+ [-WhatIf] [-Confirm] []
+```
+
+### InvokeViaJsonString
+```
+Invoke-AzWorkloadsSapSizingRecommendation -Location [-SubscriptionId ] -JsonString
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### InvokeViaJsonFilePath
+```
+Invoke-AzWorkloadsSapSizingRecommendation -Location [-SubscriptionId ] -JsonFilePath
[-DefaultProfile ] [-WhatIf] [-Confirm] []
```
@@ -31,10 +42,9 @@ Invoke-AzWorkloadsSapSizingRecommendation -Location [-SubscriptionId -AppLocation
- -DatabaseType -DbMemory -DeploymentType
- -Environment -Sap -SapProduct
- [-DbScaleMethod ] [-HighAvailabilityType ]
- [-DefaultProfile ] [-WhatIf] [-Confirm] []
+ -DatabaseType -DbMemory -DeploymentType -Environment -Sap
+ -SapProduct [-DbScaleMethod ] [-HighAvailabilityType ] [-DefaultProfile ]
+ [-WhatIf] [-Confirm] []
```
### InvokeViaIdentity
@@ -81,10 +91,9 @@ Accept wildcard characters: False
### -Body
The SAP Sizing Recommendation request.
-To construct, see NOTES section for BODY properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationRequest
+Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSizingRecommendationRequest
Parameter Sets: Invoke, InvokeViaIdentity
Aliases:
@@ -99,7 +108,7 @@ Accept wildcard characters: False
The database type.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapDatabaseType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -129,7 +138,7 @@ Accept wildcard characters: False
The DB scale method.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapDatabaseScaleMethod
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -161,7 +170,7 @@ The deployment type.
Eg: SingleServer/ThreeTier
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapDeploymentType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -176,7 +185,7 @@ Accept wildcard characters: False
Defines the environment type - Production/Non Production.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapEnvironmentType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -191,7 +200,7 @@ Accept wildcard characters: False
The high availability type.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapHighAvailabilityType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -204,7 +213,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
@@ -218,12 +226,42 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
+### -JsonFilePath
+Path of Json file supplied to the Invoke operation
+
+```yaml
+Type: System.String
+Parameter Sets: InvokeViaJsonFilePath
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -JsonString
+Json string supplied to the Invoke operation
+
+```yaml
+Type: System.String
+Parameter Sets: InvokeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Location
The name of the Azure region.
```yaml
Type: System.String
-Parameter Sets: InvokeExpanded, Invoke
+Parameter Sets: InvokeExpanded, InvokeViaJsonString, InvokeViaJsonFilePath, Invoke
Aliases:
Required: True
@@ -252,7 +290,7 @@ Accept wildcard characters: False
Defines the SAP Product type.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapProductType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -269,7 +307,7 @@ The value must be an UUID.
```yaml
Type: System.String
-Parameter Sets: InvokeExpanded, Invoke
+Parameter Sets: InvokeExpanded, InvokeViaJsonString, InvokeViaJsonFilePath, Invoke
Aliases:
Required: False
@@ -315,13 +353,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationRequest
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSizingRecommendationRequest
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapDeploymentType
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSizingRecommendationResult
## NOTES
diff --git a/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapSupportedSku.md b/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapSupportedSku.md
index c32e4653e463..085063cc47da 100644
--- a/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapSupportedSku.md
+++ b/src/Workloads/Workloads/help/Invoke-AzWorkloadsSapSupportedSku.md
@@ -15,9 +15,21 @@ Get a list of SAP supported SKUs for ASCS, Application and Database tier.
### InvokeExpanded (Default)
```
Invoke-AzWorkloadsSapSupportedSku -Location [-SubscriptionId ] -AppLocation
- -DatabaseType -DeploymentType -Environment
- -SapProduct [-HighAvailabilityType ] [-DefaultProfile ]
- [-WhatIf] [-Confirm] []
+ -DatabaseType -DeploymentType -Environment -SapProduct
+ [-HighAvailabilityType ] [-DefaultProfile ] [-WhatIf]
+ [-Confirm] []
+```
+
+### InvokeViaJsonString
+```
+Invoke-AzWorkloadsSapSupportedSku -Location [-SubscriptionId ] -JsonString
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### InvokeViaJsonFilePath
+```
+Invoke-AzWorkloadsSapSupportedSku -Location [-SubscriptionId ] -JsonFilePath
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
```
### Invoke
@@ -30,9 +42,9 @@ Invoke-AzWorkloadsSapSupportedSku -Location [-SubscriptionId ]
### InvokeViaIdentityExpanded
```
Invoke-AzWorkloadsSapSupportedSku -InputObject -AppLocation
- -DatabaseType -DeploymentType -Environment
- -SapProduct [-HighAvailabilityType ] [-DefaultProfile ]
- [-WhatIf] [-Confirm] []
+ -DatabaseType -DeploymentType -Environment -SapProduct
+ [-HighAvailabilityType ] [-DefaultProfile ] [-WhatIf]
+ [-Confirm] []
```
### InvokeViaIdentity
@@ -83,10 +95,9 @@ Accept wildcard characters: False
### -Body
The SAP request to get list of supported SKUs.
-To construct, see NOTES section for BODY properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSupportedSkusRequest
+Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSupportedSkusRequest
Parameter Sets: Invoke, InvokeViaIdentity
Aliases:
@@ -102,7 +113,7 @@ The database type.
Eg: HANA, DB2, etc
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapDatabaseType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -134,7 +145,7 @@ The deployment type.
Eg: SingleServer/ThreeTier
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapDeploymentType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -149,7 +160,7 @@ Accept wildcard characters: False
Defines the environment type - Production/Non Production.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapEnvironmentType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -164,7 +175,7 @@ Accept wildcard characters: False
The high availability type.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapHighAvailabilityType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -177,7 +188,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
@@ -191,12 +201,42 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
+### -JsonFilePath
+Path of Json file supplied to the Invoke operation
+
+```yaml
+Type: System.String
+Parameter Sets: InvokeViaJsonFilePath
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -JsonString
+Json string supplied to the Invoke operation
+
+```yaml
+Type: System.String
+Parameter Sets: InvokeViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Location
The name of the Azure region.
```yaml
Type: System.String
-Parameter Sets: InvokeExpanded, Invoke
+Parameter Sets: InvokeExpanded, InvokeViaJsonString, InvokeViaJsonFilePath, Invoke
Aliases:
Required: True
@@ -210,7 +250,7 @@ Accept wildcard characters: False
Defines the SAP Product type.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapProductType
+Type: System.String
Parameter Sets: InvokeExpanded, InvokeViaIdentityExpanded
Aliases:
@@ -227,7 +267,7 @@ The value must be an UUID.
```yaml
Type: System.String
-Parameter Sets: InvokeExpanded, Invoke
+Parameter Sets: InvokeExpanded, InvokeViaJsonString, InvokeViaJsonFilePath, Invoke
Aliases:
Required: False
@@ -273,13 +313,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSupportedSkusRequest
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSupportedSkusRequest
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapVirtualInstanceIdentity
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSupportedSku
+### Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.ISapSupportedResourceSkusResult
## NOTES
diff --git a/src/Workloads/Workloads/help/New-AzWorkloadsSapVirtualInstance.md b/src/Workloads/Workloads/help/New-AzWorkloadsSapVirtualInstance.md
index 4a440d750381..f80a5e0ba905 100644
--- a/src/Workloads/Workloads/help/New-AzWorkloadsSapVirtualInstance.md
+++ b/src/Workloads/Workloads/help/New-AzWorkloadsSapVirtualInstance.md
@@ -8,32 +8,45 @@ schema: 2.0.0
# New-AzWorkloadsSapVirtualInstance
## SYNOPSIS
-Creates a Virtual Instance for SAP solutions (VIS) resource
+Create a Virtual Instance for SAP solutions (VIS) resource
## SYNTAX
### CreateWithDiscovery (Default)
```
New-AzWorkloadsSapVirtualInstance -Name -ResourceGroupName [-SubscriptionId ]
- -Environment -Location -SapProduct -CentralServerVmId
- [-ManagedRgStorageAccountName ] [-IdentityType ]
- [-ManagedResourceGroupName ] [-ManagedResourcesNetworkAccessType ] [-Tag ]
- [-UserAssignedIdentity ] [-DefaultProfile ] [-AsJob] [-NoWait]
+ -CentralServerVmId -Environment -Location -SapProduct
+ [-ManagedRgStorageAccountName ] [-EnableSystemAssignedIdentity] [-ManagedResourceGroupName ]
+ [-ManagedResourcesNetworkAccessType ] [-Tag ] [-UserAssignedIdentity ]
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm]
+ []
+```
+
+### CreateViaJsonFilePath
+```
+New-AzWorkloadsSapVirtualInstance -Name -ResourceGroupName [-SubscriptionId ]
+ -JsonFilePath [-DefaultProfile