Skip to content

Commit 43262c8

Browse files
authored
[Az.DataProtection] Added support for validate for Modify backup with UAMI (Azure#27445)
1 parent 4160929 commit 43262c8

File tree

147 files changed

+9474
-5067
lines changed

Some content is hidden

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

147 files changed

+9474
-5067
lines changed

src/DataProtection/DataProtection.Autorest/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ generated
55
internal
66
exports
77
tools
8+
custom/*.psm1
9+
custom/autogen-model-cmdlets
810
test/*-TestResults.xml
911
license.txt
1012
/*.ps1
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 - DataProtection")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.6.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.6.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/DataProtection/DataProtection.Autorest/README.md

+36-9
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ This file contains the configuration for generating My API from the OpenAPI spec
3131
3232
``` yaml
3333
# it's the same options as command line options, just drop the double-dash!
34-
commit: 4aad50a36767f7c36673f2c7982bb4055dbf5ed4
34+
commit: b88b86f58a98ee1569ae6e7cba6f84061e15166b
3535
require:
3636
- $(this-folder)/../../readme.azure.noprofile.md
3737
input-file:
38-
- $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/dataprotection.json
38+
- $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/dataprotection.json
3939
title: DataProtection
4040
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
4141
use-extension:
@@ -310,10 +310,19 @@ directive:
310310
- from: swagger-document
311311
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete"].post
312312
transform: $["description"] = "Undeletes a soft deleted backup instance"
313+
- from: swagger-document
314+
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateForModifyBackup"].post
315+
transform: >
316+
$.responses["200"] = {
317+
"description": "Contains additional information like job Id",
318+
"schema": {
319+
"$ref": "#/definitions/OperationJobExtendedInfo"
320+
}
321+
}
313322
- where:
314323
verb: Test
315324
subject: BackupInstance
316-
variant: ^Validate1$|^ValidateExpanded1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$
325+
variant: ^Validate2$|^ValidateExpanded2$|^ValidateViaIdentity2$|^ValidateViaIdentityExpanded2$
317326
set:
318327
subject: BackupInstanceRestore
319328
- where:
@@ -322,6 +331,17 @@ directive:
322331
variant: ^Validate$|^ValidateExpanded$|^ValidateViaIdentity$|^ValidateViaIdentityExpanded$
323332
set:
324333
subject: BackupInstanceReadiness
334+
- where:
335+
verb: Test
336+
subject: BackupInstance
337+
variant: ^Validate1$|^ValidateExpanded1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$
338+
set:
339+
subject: BackupInstanceUpdate
340+
- where:
341+
verb: Test
342+
subject: BackupInstanceUpdate
343+
variant: ^Validate1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$
344+
hide: true
325345
- where:
326346
verb: Test
327347
subject: BackupInstanceReadiness
@@ -330,12 +350,19 @@ directive:
330350
- where:
331351
verb: Test
332352
subject: BackupInstanceRestore
333-
variant: ^Validate1$|^ValidateExpanded1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$
353+
variant: ^Validate2$|^ValidateExpanded2$|^ValidateViaIdentity2$|^ValidateViaIdentityExpanded2$
334354
hide: true
335355
- where:
336356
verb: Test
337357
subject: BackupInstanceCrossRegionRestore
338358
hide: true
359+
- where:
360+
verb: Test
361+
subject: BackupInstanceUpdate
362+
parameter-name: Name
363+
set:
364+
alias:
365+
- BackupInstanceName
339366
- where:
340367
subject: FetchCrossRegionRestoreJob
341368
set:
@@ -440,19 +467,19 @@ directive:
440467
- EncryptionSettings
441468
- from: source-file-csharp
442469
where: $
443-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicy Property');
470+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBaseBackupPolicy Property');
444471
- from: source-file-csharp
445472
where: $
446-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ITriggerContext Trigger');
473+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ITriggerContext Trigger');
447474
- from: source-file-csharp
448475
where: $
449-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupParameters BackupParameter');
476+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupParameters BackupParameter');
450477
- from: source-file-csharp
451478
where: $
452-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRecoveryPoint Property');
479+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRecoveryPoint Property');
453480
- from: source-file-csharp
454481
where: $
455-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.INamespacedNameResource ResourceModifierReference', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.INamespacedNameResource ResourceModifierReference');
482+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.INamespacedNameResource ResourceModifierReference', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.INamespacedNameResource ResourceModifierReference');
456483
```
457484
458485
## Alternate settings

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances-recoveryPoints.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupInstances/recoveryPoints",
3-
"apiVersion": "2024-04-01",
3+
"apiVersion": "2025-01-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances.json

+44-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupInstances",
3-
"apiVersion": "2024-04-01",
3+
"apiVersion": "2025-01-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},
@@ -219,6 +219,49 @@
219219
]
220220
}
221221
]
222+
},
223+
{
224+
"name": "Test-AzDataProtectionBackupInstanceUpdate",
225+
"description": "Validate whether update for backup instance will be successful or not",
226+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateForModifyBackup",
227+
"help": {
228+
"learnMore": {
229+
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstanceupdate"
230+
},
231+
"parameterSets": [
232+
{
233+
"parameters": [
234+
"-Name <String>",
235+
"-ResourceGroupName <String>",
236+
"[-SubscriptionId <String>]",
237+
"-VaultName <String>"
238+
]
239+
}
240+
]
241+
},
242+
"examples": [
243+
{
244+
"description": "Validate whether update for backup instance will be successful or not",
245+
"parameters": [
246+
{
247+
"name": "-Name",
248+
"value": "[Path.backupInstanceName]"
249+
},
250+
{
251+
"name": "-ResourceGroupName",
252+
"value": "[Path.resourceGroupName]"
253+
},
254+
{
255+
"name": "-SubscriptionId",
256+
"value": "[Path.subscriptionId]"
257+
},
258+
{
259+
"name": "-VaultName",
260+
"value": "[Path.vaultName]"
261+
}
262+
]
263+
}
264+
]
222265
}
223266
]
224267
}

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupJobs.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupJobs",
3-
"apiVersion": "2024-04-01",
3+
"apiVersion": "2025-01-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupPolicies.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupPolicies",
3-
"apiVersion": "2024-04-01",
3+
"apiVersion": "2025-01-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupResourceGuardProxies.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupResourceGuardProxies",
3-
"apiVersion": "2024-04-01",
3+
"apiVersion": "2025-01-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-deletedBackupInstances.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/deletedBackupInstances",
3-
"apiVersion": "2024-04-01",
3+
"apiVersion": "2025-01-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults",
3-
"apiVersion": "2024-04-01",
3+
"apiVersion": "2025-01-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/locations-operationStatus.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "locations/operationStatus",
3-
"apiVersion": "2024-04-01",
3+
"apiVersion": "2025-01-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/resourceGuards.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "resourceGuards",
3-
"apiVersion": "2024-04-01",
3+
"apiVersion": "2025-01-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
foreach($argResponse in $argInstanceResponse)
103103
{
104104
$jsonStringResponse = $argResponse | ConvertTo-Json -Depth 100
105-
$backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstanceResource]::FromJsonString($jsonStringResponse)
105+
$backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupInstanceResource]::FromJsonString($jsonStringResponse)
106106
}
107107
return $backupInstances
108108
}

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
foreach($argVault in $argAllVaults)
9595
{
9696
$jsonStringResponse = $argVault | ConvertTo-Json -Depth 100
97-
$backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupVaultResource]::FromJsonString($jsonStringResponse)
97+
$backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupVaultResource]::FromJsonString($jsonStringResponse)
9898
}
9999
return $backupVaults
100100
}

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
foreach($jobresponse in $argJobResponse)
131131
{
132132
$jsonStringResponse = $jobresponse | ConvertTo-Json -Depth 100
133-
$backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
133+
$backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
134134
}
135135
return $backupJobs
136136
}

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function New-AzDataProtectionResourceGuard
44
{
5-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardResource')]
5+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource')]
66
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]
77
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates a resource guard under a resource group')]
88

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function Update-AzDataProtectionResourceGuard
44
{
5-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardResource')]
5+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource')]
66
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]
77
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a resource guard belonging to a resource group')]
88

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Initialize-AzDataProtectionBackupInstance.ps1

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Initialize-AzDataProtectionBackupInstance {
2-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource')]
2+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource')]
33
[CmdletBinding(PositionalBinding=$false)]
44
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Backup instance Request object for configuring backup')]
55

@@ -41,7 +41,7 @@
4141
${FriendlyName},
4242

4343
[Parameter(Mandatory=$false, HelpMessage='Backup configuration for backup. Use this parameter to configure protection for AzureKubernetesService,AzureBlob.')]
44-
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupDatasourceParameters]
44+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupDatasourceParameters]
4545
${BackupConfiguration},
4646

4747
[Parameter(Mandatory=$false, HelpMessage='Use system assigned identity')]
@@ -57,7 +57,7 @@
5757
process {
5858

5959
$manifest = LoadManifest -DatasourceType $DatasourceType.ToString()
60-
$backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstance]::new()
60+
$backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupInstance]::new()
6161
$backupInstance.ObjectType = "BackupInstance"
6262

6363
if($manifest.snapshotRGPermissions.Length -eq 0 -and $SnapshotResourceGroupId -ne "")
@@ -113,11 +113,11 @@
113113
throw "UserAssignedIdentityArmId cannot be provided without UseSystemAssignedIdentity and UseSystemAssignedIdentity must be false when UserAssignedIdentityArmId is provided."
114114
}
115115

116-
$backupInstance.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IdentityDetails]::new()
116+
$backupInstance.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IdentityDetails]::new()
117117
$backupInstance.IdentityDetail.UseSystemAssignedIdentity = $UseSystemAssignedIdentity
118118

119119
if ($hasUserAssignedIdentityArmId) {
120-
$instance.Property.IdentityDetail.UserAssignedIdentityArmUrl = $UserAssignedIdentityArmId
120+
$backupInstance.IdentityDetail.UserAssignedIdentityArmUrl = $UserAssignedIdentityArmId
121121
}
122122
}
123123

@@ -131,9 +131,9 @@
131131
$errormsg = "Please input SecretStoreType"
132132
throw $errormsg
133133
}
134-
$backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SecretStoreBasedAuthCredentials]::new()
134+
$backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.SecretStoreBasedAuthCredentials]::new()
135135
$backupInstance.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials"
136-
$backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SecretStoreResource]::new()
136+
$backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.SecretStoreResource]::new()
137137
$backupInstance.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType
138138
$backupInstance.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI
139139
}
@@ -143,7 +143,7 @@
143143
}
144144
}
145145

146-
$backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstanceResource]::new()
146+
$backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupInstanceResource]::new()
147147
$backupInstanceResource.Property = $backupInstance
148148

149149
if($PSBoundParameters.ContainsKey("DatasourceId"))
@@ -161,7 +161,7 @@
161161

162162
if($manifest.addDataStoreParametersList -eq $true)
163163
{
164-
$operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureOperationalStoreParameters]::new()
164+
$operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureOperationalStoreParameters]::new()
165165
$operationalParam.DataStoreType = "OperationalStore"
166166
$operationalParam.ObjectType = "AzureOperationalStoreParameters"
167167
$operationalParam.ResourceGroupId = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"

0 commit comments

Comments
 (0)