Skip to content

Commit 538f1c4

Browse files
Migrate Workloads from generation to main (Azure#23815)
* Move Workloads to main * Update ChangeLog.md for workloads --------- Co-authored-by: Xiaogang <[email protected]>
1 parent 8dd8b48 commit 538f1c4

File tree

707 files changed

+42066
-14464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

707 files changed

+42066
-14464
lines changed

src/Workloads/Workloads.Autorest/Az.Workloads.format.ps1xml

Lines changed: 1321 additions & 1259 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -1,167 +1,24 @@
1-
#
2-
# Module manifest for module 'Az.Workloads'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 4/17/2023
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.Workloads.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '0.1.0'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = 'ee197d70-9add-4652-9b94-eab7bc0e93e1'
22-
23-
# Author of this module
24-
Author = 'Microsoft Corporation'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft Corporation'
28-
29-
# Copyright statement for this module
30-
Copyright = 'Microsoft Corporation. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
Description = 'Microsoft Azure PowerShell: Workloads cmdlets'
34-
35-
# Minimum version of the PowerShell engine required by this module
36-
PowerShellVersion = '5.1'
37-
38-
# Name of the PowerShell host required by this module
39-
# PowerShellHostName = ''
40-
41-
# Minimum version of the PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
DotNetFrameworkVersion = '4.7.2'
46-
47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# ClrVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.1'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.Workloads.private.dll'
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = './Az.Workloads.format.ps1xml'
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Get-AzWorkloadsMonitor', 'Get-AzWorkloadsProviderInstance',
73-
'Get-AzWorkloadsSapApplicationInstance',
74-
'Get-AzWorkloadsSapCentralInstance',
75-
'Get-AzWorkloadsSapDatabaseInstance',
76-
'Get-AzWorkloadsSapLandscapeMonitor',
77-
'Get-AzWorkloadsSapVirtualInstance',
78-
'Invoke-AzWorkloadsSapDiskConfiguration',
79-
'Invoke-AzWorkloadsSapSizingRecommendation',
80-
'Invoke-AzWorkloadsSapSupportedSku', 'New-AzWorkloadsMonitor',
81-
'New-AzWorkloadsProviderDB2InstanceObject',
82-
'New-AzWorkloadsProviderHanaDbInstanceObject',
83-
'New-AzWorkloadsProviderInstance',
84-
'New-AzWorkloadsProviderPrometheusHaClusterInstanceObject',
85-
'New-AzWorkloadsProviderPrometheusOSInstanceObject',
86-
'New-AzWorkloadsProviderSapNetWeaverInstanceObject',
87-
'New-AzWorkloadsProviderSqlServerInstanceObject',
88-
'New-AzWorkloadsSapLandscapeMonitor',
89-
'New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject',
90-
'New-AzWorkloadsSapLandscapeMonitorSidMappingObject',
91-
'New-AzWorkloadsSapVirtualInstance', 'Remove-AzWorkloadsMonitor',
92-
'Remove-AzWorkloadsProviderInstance',
93-
'Remove-AzWorkloadsSapLandscapeMonitor',
94-
'Remove-AzWorkloadsSapVirtualInstance',
95-
'Start-AzWorkloadsSapApplicationInstance',
96-
'Start-AzWorkloadsSapCentralInstance',
97-
'Start-AzWorkloadsSapDatabaseInstance',
98-
'Start-AzWorkloadsSapVirtualInstance',
99-
'Stop-AzWorkloadsSapApplicationInstance',
100-
'Stop-AzWorkloadsSapCentralInstance',
101-
'Stop-AzWorkloadsSapDatabaseInstance',
102-
'Stop-AzWorkloadsSapVirtualInstance', 'Update-AzWorkloadsMonitor',
103-
'Update-AzWorkloadsSapApplicationInstance',
104-
'Update-AzWorkloadsSapCentralInstance',
105-
'Update-AzWorkloadsSapDatabaseInstance',
106-
'Update-AzWorkloadsSapLandscapeMonitor',
107-
'Update-AzWorkloadsSapVirtualInstance'
108-
109-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
110-
CmdletsToExport = @()
111-
112-
# Variables to export from this module
113-
# VariablesToExport = @()
114-
115-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
116-
AliasesToExport = '*'
117-
118-
# DSC resources to export from this module
119-
# DscResourcesToExport = @()
120-
121-
# List of all modules packaged with this module
122-
# ModuleList = @()
123-
124-
# List of all files packaged with this module
125-
# FileList = @()
126-
127-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
128-
PrivateData = @{
129-
2+
GUID = 'ee197d70-9add-4652-9b94-eab7bc0e93e1'
3+
RootModule = './Az.Workloads.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: Workloads cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.Workloads.private.dll'
13+
FormatsToProcess = './Az.Workloads.format.ps1xml'
14+
FunctionsToExport = 'Get-AzWorkloadsMonitor', 'Get-AzWorkloadsProviderInstance', 'Get-AzWorkloadsSapApplicationInstance', 'Get-AzWorkloadsSapCentralInstance', 'Get-AzWorkloadsSapDatabaseInstance', 'Get-AzWorkloadsSapLandscapeMonitor', 'Get-AzWorkloadsSapVirtualInstance', 'Invoke-AzWorkloadsSapDiskConfiguration', 'Invoke-AzWorkloadsSapSizingRecommendation', 'Invoke-AzWorkloadsSapSupportedSku', 'New-AzWorkloadsMonitor', 'New-AzWorkloadsProviderDB2InstanceObject', 'New-AzWorkloadsProviderHanaDbInstanceObject', 'New-AzWorkloadsProviderInstance', 'New-AzWorkloadsProviderPrometheusHaClusterInstanceObject', 'New-AzWorkloadsProviderPrometheusOSInstanceObject', 'New-AzWorkloadsProviderSapNetWeaverInstanceObject', 'New-AzWorkloadsProviderSqlServerInstanceObject', 'New-AzWorkloadsSapLandscapeMonitor', 'New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject', 'New-AzWorkloadsSapLandscapeMonitorSidMappingObject', 'New-AzWorkloadsSapVirtualInstance', 'Remove-AzWorkloadsMonitor', 'Remove-AzWorkloadsProviderInstance', 'Remove-AzWorkloadsSapLandscapeMonitor', 'Remove-AzWorkloadsSapVirtualInstance', 'Start-AzWorkloadsSapApplicationInstance', 'Start-AzWorkloadsSapCentralInstance', 'Start-AzWorkloadsSapDatabaseInstance', 'Start-AzWorkloadsSapVirtualInstance', 'Stop-AzWorkloadsSapApplicationInstance', 'Stop-AzWorkloadsSapCentralInstance', 'Stop-AzWorkloadsSapDatabaseInstance', 'Stop-AzWorkloadsSapVirtualInstance', 'Update-AzWorkloadsMonitor', 'Update-AzWorkloadsSapApplicationInstance', 'Update-AzWorkloadsSapCentralInstance', 'Update-AzWorkloadsSapDatabaseInstance', 'Update-AzWorkloadsSapLandscapeMonitor', 'Update-AzWorkloadsSapVirtualInstance', '*'
15+
AliasesToExport = '*'
16+
PrivateData = @{
13017
PSData = @{
131-
132-
# Tags applied to this module. These help with module discovery in online galleries.
133-
Tags = 'Azure','ResourceManager','ARM','PSModule','Workloads'
134-
135-
# A URL to the license for this module.
136-
LicenseUri = 'https://aka.ms/azps-license'
137-
138-
# A URL to the main website for this project.
139-
ProjectUri = 'https://github.com/Azure/azure-powershell'
140-
141-
# A URL to an icon representing this module.
142-
# IconUri = ''
143-
144-
# ReleaseNotes of this module
145-
# ReleaseNotes = ''
146-
147-
# Prerelease string of this module
148-
# Prerelease = ''
149-
150-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
151-
# RequireLicenseAcceptance = $false
152-
153-
# External dependent modules of this module
154-
# ExternalModuleDependencies = @()
155-
156-
} # End of PSData hashtable
157-
158-
} # End of PrivateData hashtable
159-
160-
# HelpInfo URI of this module
161-
# HelpInfoURI = ''
162-
163-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
164-
# DefaultCommandPrefix = ''
165-
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Workloads'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
16624
}
167-

src/Workloads/Workloads.Autorest/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ For information on how to develop for `Az.Workloads`, see [how-to.md](how-to.md)
3030
> see https://aka.ms/autorest
3131
3232
```yaml
33-
branch: c7c06e7e311df89b6851aa7e12142c8f0d129cd8
33+
commit: 202321f386ea5b0c103b46902d43b3d3c50e029c
34+
tag: package-preview-2023-10
35+
# tag: package-2023-04
3436
require:
35-
- $(this-folder)/../readme.azure.noprofile.md
37+
- $(this-folder)/../../readme.azure.noprofile.md
3638
- $(repo)/specification/workloads/resource-manager/readme.md
3739

3840
try-require:
@@ -43,6 +45,10 @@ identity-correction-for-post: true
4345
nested-object-to-string: true
4446
inlining-threshold: 100
4547

48+
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
49+
use-extension:
50+
"@autorest/powershell": "3.x"
51+
4652
directive:
4753
# Monitor
4854
- where:
@@ -352,6 +358,11 @@ directive:
352358
# - PrometheusHaClusterProviderInstanceProperties
353359
# - MsSqlServerProviderInstanceProperties
354360

361+
- from: swagger-document
362+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}"].delete.responses
363+
transform: >-
364+
return { "200": { "description": "OK" }, "202": { "description": "Accepted", "headers": { "Location": { "description": "The URL of the resource used to check the status of the asynchronous operation.", "type": "string" }, "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", "type": "integer", "format": "int32" }, "Azure-AsyncOperation": { "description": "The URI to poll for completion status.", "type": "string" } } }, "204": { "description": "No Content" }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/202321f386ea5b0c103b46902d43b3d3c50e029c/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }
365+
355366
# Result shoule be in SingleServerRecommendationResult and ThreeTierRecommendationResult
356367
- from: source-file-csharp
357368
where: $

src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-applicationInstances.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "sapVirtualInstances/applicationInstances",
3-
"apiVersion": "2023-04-01",
3+
"apiVersion": "2023-10-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
66
},

src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-centralInstances.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "sapVirtualInstances/centralInstances",
3-
"apiVersion": "2023-04-01",
3+
"apiVersion": "2023-10-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
66
},

src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-databaseInstances.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "sapVirtualInstances/databaseInstances",
3-
"apiVersion": "2023-04-01",
3+
"apiVersion": "2023-10-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
66
},

src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "sapVirtualInstances",
3-
"apiVersion": "2023-04-01",
3+
"apiVersion": "2023-10-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
66
},

src/Workloads/Workloads.Autorest/build-module.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ if($NoDocs) {
143143
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
144144
}
145145
$null = New-Item -ItemType Directory -Force -Path $docsFolder
146-
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
146+
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
147+
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
147148
}
148149

149150
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
@@ -162,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
162163
Write-Host -ForegroundColor Green 'Creating example stubs...'
163164
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
164165

166+
if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
167+
{
168+
Write-Host -ForegroundColor Green 'Creating ux metadata...'
169+
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
170+
}
171+
165172
Write-Host -ForegroundColor Green '-------------Done-------------'

src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapExpanded.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public partial class InvokeAzWorkloadsSapSizingRecommendation_SapExpanded : glob
1919
{
2020
/// <summary>a delegate that is called when the remote service returns 200 (OK).</summary>
2121
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
22-
/// <param name="response">the body result as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult">Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult</see>
22+
/// <param name="response">the body result as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult">Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult</see>
2323
/// from the remote call</param>
2424
/// <returns>
2525
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed.
2626
/// </returns>
27-
partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult> response, ref global::System.Threading.Tasks.Task<bool> returnNow)
27+
partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult> response, ref global::System.Threading.Tasks.Task<bool> returnNow)
2828
{
2929
// onOk - response for 200 / application/json
30-
// should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult
30+
// should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult
3131
WriteObject(response.Result);
3232
returnNow = global::System.Threading.Tasks.Task.FromResult(true);
3333
}

src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapViaIdentityExpanded.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public partial class InvokeAzWorkloadsSapSizingRecommendation_SapViaIdentityExpa
1919
{
2020
/// <summary>a delegate that is called when the remote service returns 200 (OK).</summary>
2121
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
22-
/// <param name="response">the body result as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult">Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult</see>
22+
/// <param name="response">the body result as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult">Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult</see>
2323
/// from the remote call</param>
2424
/// <returns>
2525
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed.
2626
/// </returns>
27-
partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult> response, ref global::System.Threading.Tasks.Task<bool> returnNow)
27+
partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult> response, ref global::System.Threading.Tasks.Task<bool> returnNow)
2828
{
2929
// onOk - response for 200 / application/json
30-
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult
30+
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult
3131
WriteObject(response.Result);
3232
returnNow = global::System.Threading.Tasks.Task.FromResult(true);
3333
}

src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Creates a Virtual Instance for SAP solutions (VIS) resource
2525
{{ Add code here }}
2626
2727
.Outputs
28-
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
28+
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
2929
.Notes
3030
COMPLEX PARAMETER PROPERTIES
3131
@@ -37,7 +37,7 @@ CONFIGURATION <ISapConfiguration>: Defines if the SAP system is being created us
3737
https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadssapvirtualinstance
3838
#>
3939
function New-AzWorkloadsSapVirtualInstance {
40-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance])]
40+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance])]
4141
[CmdletBinding(DefaultParameterSetName='CreateWithDiscovery', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
4242
param(
4343
[Parameter(Mandatory)]
@@ -182,7 +182,7 @@ function New-AzWorkloadsSapVirtualInstance {
182182
process {
183183
try {
184184
$configuration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType]::Discovery
185-
$discoveryConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiscoveryConfiguration]::new();
185+
$discoveryConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiscoveryConfiguration]::new();
186186
$discoveryConfiguration.ConfigurationType = $configuration
187187
$discoveryConfiguration.CentralServerVMId = $CentralServerVmId
188188
$null = $PSBoundParameters.Remove('CentralServerVmId')

0 commit comments

Comments
 (0)