Skip to content

Commit dc7fdb0

Browse files
jaskisinJaskirat Singh
andauthored
[Workloads] Generation of GA PowerShell module for Workloads 2024-09-01 api (#27209)
* Merge remote-tracking branch 'Azure/legacy-main-tools-2025-02-14' into workloadsapi20240901 * Add GA PowerShell module for Workloads's 2024-09-01 API to ChangeLog * Remove locations.json file from SAP Virtual Instance Autorest --------- Co-authored-by: Jaskirat Singh <[email protected]>
1 parent f055fc9 commit dc7fdb0

File tree

121 files changed

+38106
-33900
lines changed

Some content is hidden

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

121 files changed

+38106
-33900
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - SapVirtualInstance")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.4.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.4.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/Workloads/SapVirtualInstance.Autorest/README.md

Lines changed: 48 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@ For information on how to develop for `Az.SapVirtualInstance`, see [how-to.md](h
2727
> see https://aka.ms/autorest
2828
2929
```yaml
30-
commit: 202321f386ea5b0c103b46902d43b3d3c50e029c
31-
tag: package-preview-2023-10
32-
# tag: package-2023-04
30+
commit: 724933f1dfe3bc7831d74b6f1d0a189790fca5e0
31+
tag: package-2024-09
3332

3433
require:
3534
- $(this-folder)/../../readme.azure.noprofile.md
3635
- $(repo)/specification/workloads/resource-manager/Microsoft.Workloads/SAPVirtualInstance/readme.md
3736

38-
try-require:
37+
try-require:
3938
- $(repo)/specification/workloads/resource-manager/readme.powershell.md
4039

4140
# For new RP, the version is 0.1.0
@@ -92,32 +91,38 @@ directive:
9291
# SapCentralInstance
9392
- where:
9493
verb: New
95-
subject: ^SapCentralInstance$
94+
subject: ^SapCentralServerInstance$
9695
remove: true
9796

9897
- where:
9998
verb: Stop
100-
subject: ^SapCentralInstance$
99+
subject: ^SapCentralServerInstance$
101100
variant: ^Stop$|^StopViaIdentity$
102101
remove: true
103102

104103
- where:
105104
verb: Update
106-
subject: ^SapCentralInstance$
105+
subject: ^SapCentralServerInstance$
107106
variant: ^Update$|^UpdateViaIdentity$
108107
remove: true
109108

110109
- where:
111110
verb: Remove
112-
subject: ^SapCentralInstance$
111+
subject: ^SapCentralServerInstance$
113112
remove: true
114113

115114
- where:
116-
subject: SapCentralInstance
115+
subject: SapCentralServerInstance
117116
parameter-name: CentralInstanceName
118117
set:
119118
parameter-name: Name
120119

120+
- where:
121+
verb: Get|Start|Stop|Update
122+
subject: ^SapCentralServerInstance$
123+
set:
124+
subject: SapCentralInstance
125+
121126
# SapDatabaseInstance
122127
- where:
123128
verb: New
@@ -187,30 +192,48 @@ directive:
187192
# SapAvailabilityZoneDetail
188193
- where:
189194
verb: Invoke
190-
subject: ^SapAvailabilityZoneDetail$
195+
subject: ^InvokeSapVirtualInstanceAvailabilityZoneDetail$
191196
remove: true
192197

193198
# SapDiskConfiguration
194199
- where:
195200
verb: Invoke
196-
subject: ^SapDiskConfiguration$
201+
subject: ^InvokeSapVirtualInstanceDiskConfiguration$
197202
variant: ^Sap$|^SapViaIdentity$
198203
remove: true
199204

205+
- where:
206+
verb: Invoke
207+
subject: ^InvokeSapVirtualInstanceDiskConfiguration$
208+
set:
209+
subject: SapDiskConfiguration
210+
200211
# SapSizingRecommendation
201212
- where:
202213
verb: Invoke
203-
subject: ^SapSizingRecommendation$
214+
subject: ^InvokeSapVirtualInstanceSizingRecommendation$
204215
variant: ^Sap$|^SapViaIdentity$
205216
remove: true
206217

218+
- where:
219+
verb: Invoke
220+
subject: ^InvokeSapVirtualInstanceSizingRecommendation$
221+
set:
222+
subject: SapSizingRecommendation
223+
207224
# SapSupportedSku
208225
- where:
209226
verb: Invoke
210-
subject: ^SapSupportedSku$
227+
subject: ^InvokeSapVirtualInstanceSapSupportedSku$
211228
variant: ^Sap$|^SapViaIdentity$
212229
remove: true
213230

231+
- where:
232+
verb: Invoke
233+
subject: ^InvokeSapVirtualInstanceSapSupportedSku$
234+
set:
235+
subject: SapSupportedSku
236+
214237
#Aliasing
215238
- where:
216239
verb: New
@@ -229,7 +252,7 @@ directive:
229252
subject: ^SapVirtualInstance$
230253
set:
231254
alias: Remove-AzVIS
232-
255+
233256
- where:
234257
verb: Update
235258
subject: ^SapVirtualInstance$
@@ -241,7 +264,7 @@ directive:
241264
subject: ^SapVirtualInstance$
242265
set:
243266
alias: Start-AzVIS
244-
267+
245268
- where:
246269
verb: Stop
247270
subject: ^SapVirtualInstance$
@@ -388,44 +411,41 @@ directive:
388411
- Name
389412
- ResourceGroupName
390413
- ProvisioningState
391-
- Location
414+
- Location
392415
- Status
393-
- IPAddress
416+
- IPAddress
394417
- DatabaseSid
395418

396419
- no-inline: # choose ONE of these models to disable inlining
397420
- ProviderSpecificProperties
398421
- SAPConfiguration
399422
- ErrorInnerError
400-
- model-cmdlet:
401-
- SapLandscapeMonitorSidMapping
402-
- SapLandscapeMonitorMetricThresholds
403423

404424
- from: swagger-document
405425
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}"].delete.responses
406426

407427
transform: >-
408-
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" } } }
409-
428+
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/724933f1dfe3bc7831d74b6f1d0a189790fca5e0/specification/common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }
429+
410430
# Result shoule be in SingleServerRecommendationResult and ThreeTierRecommendationResult
411431
- from: source-file-csharp
412432
where: $
413-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult Property', 'public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult Property');
433+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult Property', 'public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20240901.ISapSizingRecommendationResult Property');
414434

415435
# remove System Data in module Monitor, ProviderInstance, SapApplicationServerInstance, SapCentralServerInstance, SapDatabaseInstance, SapLandscapeMonitor, SapVirtualInstance
416436
- from: SapApplicationServerInstance.cs
417437
where: $
418-
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData');
438+
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
419439
- from: SapCentralServerInstance.cs
420440
where: $
421-
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData');
441+
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
422442
- from: SapDatabaseInstance.cs
423443
where: $
424-
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData');
444+
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
425445
- from: SapLandscapeMonitor.cs
426446
where: $
427-
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData');
447+
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
428448
- from: SapVirtualInstance.cs
429449
where: $
430-
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData');
450+
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData SystemData', 'internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api50.ISystemData SystemData');
431451
```

src/Workloads/SapVirtualInstance.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-10-01-preview",
3+
"apiVersion": "2024-09-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
66
},

src/Workloads/SapVirtualInstance.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-10-01-preview",
3+
"apiVersion": "2024-09-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
66
},

src/Workloads/SapVirtualInstance.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-10-01-preview",
3+
"apiVersion": "2024-09-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
66
},

src/Workloads/SapVirtualInstance.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-10-01-preview",
3+
"apiVersion": "2024-09-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
66
},

src/Workloads/SapVirtualInstance.Autorest/custom/Az.SapVirtualInstance.custom.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# region Generated
1+
# region Generated
22
# Load the private module dll
33
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.SapVirtualInstance.private.dll')
44

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Cmdlet
1414
/// <remarks>
1515
/// [OpenAPI] SAPSizingRecommendations=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSizingRecommendations"
1616
/// </remarks>
17-
public partial class InvokeAzWorkloadsSapSizingRecommendation_SapExpanded : global::System.Management.Automation.PSCmdlet,
17+
public partial class InvokeAzWorkloadsSapSizingRecommendation_InvokeExpanded : global::System.Management.Automation.PSCmdlet,
1818
Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener
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.SapVirtualInstance.Models.Api20231001Preview.ISapSizingRecommendationResult">Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20231001Preview.ISapSizingRecommendationResult</see>
22+
/// <param name="response">the body result as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationResult">Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.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.SapVirtualInstance.Models.Api20231001Preview.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.SapVirtualInstance.Models.Api20240901.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.SapVirtualInstance.Models.Api20231001Preview.ISapSizingRecommendationResult
30+
// should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationResult
3131
WriteObject(response.Result);
3232
returnNow = global::System.Threading.Tasks.Task.FromResult(true);
3333
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Cmdlet
1414
/// <remarks>
1515
/// [OpenAPI] SAPSizingRecommendations=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSizingRecommendations"
1616
/// </remarks>
17-
public partial class InvokeAzWorkloadsSapSizingRecommendation_SapViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
17+
public partial class InvokeAzWorkloadsSapSizingRecommendation_InvokeViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
1818
Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.IEventListener
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.SapVirtualInstance.Models.Api20231001Preview.ISapSizingRecommendationResult">Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20231001Preview.ISapSizingRecommendationResult</see>
22+
/// <param name="response">the body result as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationResult">Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.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.SapVirtualInstance.Models.Api20231001Preview.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.SapVirtualInstance.Models.Api20240901.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.SapVirtualInstance.Models.Api20231001Preview.ISapSizingRecommendationResult
30+
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapSizingRecommendationResult
3131
WriteObject(response.Result);
3232
returnNow = global::System.Threading.Tasks.Task.FromResult(true);
3333
}

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

Lines changed: 4 additions & 4 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.SapVirtualInstance.Models.Api20231001Preview.ISapVirtualInstance
28+
Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.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.SapVirtualInstance.Models.Api20231001Preview.ISapVirtualInstance])]
40+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.ISapVirtualInstance])]
4141
[Alias('New-AzVIS')]
4242
[CmdletBinding(DefaultParameterSetName='CreateWithDiscovery', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
4343
param(
@@ -115,7 +115,7 @@ function New-AzWorkloadsSapVirtualInstance {
115115

116116
[Parameter()]
117117
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Category('Body')]
118-
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api30.ITrackedResourceTags]))]
118+
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api50.ITrackedResourceTags]))]
119119
[System.Collections.Hashtable]
120120
# Resource tags.
121121
${Tag},
@@ -189,7 +189,7 @@ function New-AzWorkloadsSapVirtualInstance {
189189
process {
190190
try {
191191
$configuration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Support.SapConfigurationType]::Discovery
192-
$discoveryConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20231001Preview.DiscoveryConfiguration]::new();
192+
$discoveryConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.SapVirtualInstance.Models.Api20240901.DiscoveryConfiguration]::new();
193193
$discoveryConfiguration.ConfigurationType = $configuration
194194
$discoveryConfiguration.CentralServerVMId = $CentralServerVmId
195195
$null = $PSBoundParameters.Remove('CentralServerVmId')

0 commit comments

Comments
 (0)