Skip to content

Commit d5a6b8a

Browse files
committed
added egs and renamed command
1 parent 54a1d17 commit d5a6b8a

18 files changed

+269
-387
lines changed

src/RecoveryServices/RecoveryServices.Backup.Autorest/Az.RecoveryServices.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.RecoveryServices.private.dll'
1313
FormatsToProcess = './Az.RecoveryServices.format.ps1xml'
14-
FunctionsToExport = 'Export-AzRecoveryServicesJob', 'Get-AzRecoveryServicesBackupEngine', 'Get-AzRecoveryServicesBackupJob', 'Get-AzRecoveryServicesBackupOperationResult', 'Get-AzRecoveryServicesBackupOperationStatuses', 'Get-AzRecoveryServicesBackupPolicy', 'Get-AzRecoveryServicesBackupProtectableItem', 'Get-AzRecoveryServicesBackupProtectedItem', 'Get-AzRecoveryServicesBackupProtectionContainer', 'Get-AzRecoveryServicesBackupProtectionIntent', 'Get-AzRecoveryServicesBackupResourceEncryptionConfig', 'Get-AzRecoveryServicesBackupResourceStorageConfigsNonCrr', 'Get-AzRecoveryServicesBackupResourceVaultConfig', 'Get-AzRecoveryServicesBackupStatus', 'Get-AzRecoveryServicesBackupUsageSummary', 'Get-AzRecoveryServicesBackupWorkloadItem', 'Get-AzRecoveryServicesBmsPrepareDataMoveOperationResult', 'Get-AzRecoveryServicesDeletedProtectionContainer', 'Get-AzRecoveryServicesExportJobsOperationResult', 'Get-AzRecoveryServicesJobDetail', 'Get-AzRecoveryServicesJobOperationResult', 'Get-AzRecoveryServicesOperationStatus', 'Get-AzRecoveryServicesPrivateEndpointConnection', 'Get-AzRecoveryServicesPrivateEndpointOperationStatus', 'Get-AzRecoveryServicesProtectableContainer', 'Get-AzRecoveryServicesProtectedItem', 'Get-AzRecoveryServicesProtectedItemOperationResult', 'Get-AzRecoveryServicesProtectedItemOperationStatuses', 'Get-AzRecoveryServicesProtectionContainer', 'Get-AzRecoveryServicesProtectionContainerOperationResult', 'Get-AzRecoveryServicesProtectionContainerRefreshOperationResult', 'Get-AzRecoveryServicesProtectionIntent', 'Get-AzRecoveryServicesProtectionPolicy', 'Get-AzRecoveryServicesProtectionPolicyOperationResult', 'Get-AzRecoveryServicesProtectionPolicyOperationStatuses', 'Get-AzRecoveryServicesRecoveryPoint', 'Get-AzRecoveryServicesRecoveryPointsRecommendedForMove', 'Get-AzRecoveryServicesResourceGuardProxy', 'Get-AzRecoveryServicesSecurityPiN', 'Get-AzRecoveryServicesValidateOperationResult', 'Get-AzRecoveryServicesValidateOperationStatuses', 'Invoke-AzRecoveryServicesInquireProtectionContainer', 'Invoke-AzRecoveryServicesPrepare', 'Move-AzRecoveryServicesRecoveryPoint', 'New-AzRecoveryServicesItemLevelRecoveryConnection', 'New-AzRecoveryServicesProtectedItem', 'New-AzRecoveryServicesProtectionIntent', 'New-AzRecoveryServicesProtectionPolicy', 'Register-AzRecoveryServicesProtectionContainer', 'Remove-AzRecoveryServicesPrivateEndpointConnection', 'Remove-AzRecoveryServicesProtectedItem', 'Remove-AzRecoveryServicesProtectionIntent', 'Remove-AzRecoveryServicesProtectionPolicy', 'Remove-AzRecoveryServicesResourceGuardProxy', 'Revoke-AzRecoveryServicesItemLevelRecoveryConnection', 'Set-AzRecoveryServicesBackupResourceEncryptionConfig', 'Set-AzRecoveryServicesBackupResourceStorageConfigsNonCrr', 'Set-AzRecoveryServicesBackupResourceVaultConfig', 'Set-AzRecoveryServicesPrivateEndpointConnection', 'Set-AzRecoveryServicesProtectedItem', 'Set-AzRecoveryServicesProtectionIntent', 'Set-AzRecoveryServicesProtectionPolicy', 'Set-AzRecoveryServicesResourceGuardProxy', 'Start-AzRecoveryServices', 'Start-AzRecoveryServicesBackup', 'Start-AzRecoveryServicesJobCancellation', 'Start-AzRecoveryServicesRestore', 'Start-AzRecoveryServicesValidateOperation', 'Test-AzRecoveryServicesFeatureSupport', 'Test-AzRecoveryServicesProtectionIntent', 'Unlock-AzRecoveryServicesResourceGuardProxyDelete', 'Unregister-AzRecoveryServicesProtectionContainer', 'Update-AzRecoveryServicesBackupResourceStorageConfigsNonCrr', 'Update-AzRecoveryServicesBackupResourceVaultConfig', 'Update-AzRecoveryServicesProtectionContainer', '*'
14+
FunctionsToExport = 'Export-AzRecoveryServicesJob', 'Get-AzRecoveryServicesBackupEngine', 'Get-AzRecoveryServicesBackupJob', 'Get-AzRecoveryServicesBackupOperationResult', 'Get-AzRecoveryServicesBackupOperationStatuses', 'Get-AzRecoveryServicesBackupPolicy', 'Get-AzRecoveryServicesBackupProtectableItem', 'Get-AzRecoveryServicesBackupProtectedItem', 'Get-AzRecoveryServicesBackupProtectionContainer', 'Get-AzRecoveryServicesBackupProtectionIntent', 'Get-AzRecoveryServicesBackupResourceEncryptionConfig', 'Get-AzRecoveryServicesBackupResourceStorageConfigsNonCrr', 'Get-AzRecoveryServicesBackupResourceVaultConfig', 'Get-AzRecoveryServicesBackupStatus', 'Get-AzRecoveryServicesBackupUsageSummary', 'Get-AzRecoveryServicesBackupWorkloadItem', 'Get-AzRecoveryServicesBmsPrepareDataMoveOperationResult', 'Get-AzRecoveryServicesDeletedProtectionContainer', 'Get-AzRecoveryServicesExportJobsOperationResult', 'Get-AzRecoveryServicesJobDetail', 'Get-AzRecoveryServicesJobOperationResult', 'Get-AzRecoveryServicesOperationStatus', 'Get-AzRecoveryServicesPrivateEndpointConnection', 'Get-AzRecoveryServicesPrivateEndpointOperationStatus', 'Get-AzRecoveryServicesProtectableContainer', 'Get-AzRecoveryServicesProtectedItem', 'Get-AzRecoveryServicesProtectedItemOperationResult', 'Get-AzRecoveryServicesProtectedItemOperationStatuses', 'Get-AzRecoveryServicesProtectionContainer', 'Get-AzRecoveryServicesProtectionContainerOperationResult', 'Get-AzRecoveryServicesProtectionContainerRefreshOperationResult', 'Get-AzRecoveryServicesProtectionIntent', 'Get-AzRecoveryServicesProtectionPolicyOperationResult', 'Get-AzRecoveryServicesProtectionPolicyOperationStatuses', 'Get-AzRecoveryServicesRecoveryPoint', 'Get-AzRecoveryServicesRecoveryPointsRecommendedForMove', 'Get-AzRecoveryServicesResourceGuardProxy', 'Get-AzRecoveryServicesSecurityPiN', 'Get-AzRecoveryServicesValidateOperationResult', 'Get-AzRecoveryServicesValidateOperationStatuses', 'Invoke-AzRecoveryServicesInquireProtectionContainer', 'Invoke-AzRecoveryServicesPrepare', 'Move-AzRecoveryServicesRecoveryPoint', 'New-AzRecoveryServicesBackupPolicy', 'New-AzRecoveryServicesItemLevelRecoveryConnection', 'New-AzRecoveryServicesProtectedItem', 'New-AzRecoveryServicesProtectionIntent', 'Register-AzRecoveryServicesProtectionContainer', 'Remove-AzRecoveryServicesBackupPolicy', 'Remove-AzRecoveryServicesPrivateEndpointConnection', 'Remove-AzRecoveryServicesProtectedItem', 'Remove-AzRecoveryServicesProtectionIntent', 'Remove-AzRecoveryServicesResourceGuardProxy', 'Revoke-AzRecoveryServicesItemLevelRecoveryConnection', 'Set-AzRecoveryServicesBackupPolicy', 'Set-AzRecoveryServicesBackupResourceEncryptionConfig', 'Set-AzRecoveryServicesBackupResourceStorageConfigsNonCrr', 'Set-AzRecoveryServicesBackupResourceVaultConfig', 'Set-AzRecoveryServicesPrivateEndpointConnection', 'Set-AzRecoveryServicesProtectedItem', 'Set-AzRecoveryServicesProtectionIntent', 'Set-AzRecoveryServicesResourceGuardProxy', 'Start-AzRecoveryServices', 'Start-AzRecoveryServicesBackup', 'Start-AzRecoveryServicesJobCancellation', 'Start-AzRecoveryServicesRestore', 'Start-AzRecoveryServicesValidateOperation', 'Test-AzRecoveryServicesFeatureSupport', 'Test-AzRecoveryServicesProtectionIntent', 'Unlock-AzRecoveryServicesResourceGuardProxyDelete', 'Unregister-AzRecoveryServicesProtectionContainer', 'Update-AzRecoveryServicesBackupResourceStorageConfigsNonCrr', 'Update-AzRecoveryServicesBackupResourceVaultConfig', 'Update-AzRecoveryServicesProtectionContainer', '*'
1515
AliasesToExport = '*'
1616
PrivateData = @{
1717
PSData = @{
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
4-
VisualStudioVersion = 17.5.33530.505
4+
VisualStudioVersion = 17.6.33712.159
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.RecoveryServices", "Az.RecoveryServices.csproj", "{3C36EEDB-664E-4165-8680-D40C4010D9D9}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.RecoveryServices", "Az.RecoveryServices.csproj", "{9627B0D8-6DEC-47D0-9005-8A7BD7BF0FB3}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{3C36EEDB-664E-4165-8680-D40C4010D9D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{3C36EEDB-664E-4165-8680-D40C4010D9D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{3C36EEDB-664E-4165-8680-D40C4010D9D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{3C36EEDB-664E-4165-8680-D40C4010D9D9}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{9627B0D8-6DEC-47D0-9005-8A7BD7BF0FB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{9627B0D8-6DEC-47D0-9005-8A7BD7BF0FB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{9627B0D8-6DEC-47D0-9005-8A7BD7BF0FB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{9627B0D8-6DEC-47D0-9005-8A7BD7BF0FB3}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
2222
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {E67A86E5-D2A8-4374-B8CD-1D2A107A4A41}
23+
SolutionGuid = {6AB389C3-65C1-441F-A76E-7923224C44C5}
2424
EndGlobalSection
2525
EndGlobal

src/RecoveryServices/RecoveryServices.Backup.Autorest/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,21 @@ input-file:
4141
- $(repo)/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/bms.json
4242
title: RecoveryServices
4343
directive:
44+
45+
- where:
46+
verb: Remove
47+
subject: ProtectionPolicy
48+
variant: DeleteViaIdentity
49+
remove: true
50+
- where:
51+
verb: Get
52+
subject: ProtectedItem
53+
variant: GetViaIdentity
54+
remove: true
55+
- where:
56+
subject: ProtectionPolicy
57+
set:
58+
subject: BackupPolicy
4459
- no-inline:
4560
- DailyRetentionSchedule
4661
- HourlySchedule
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"datasourcePermissions": [ "Storage Account Backup Contributor" ],
3+
"snapshotRGPermissions": [],
4+
"keyVaultPermissions": [],
5+
"dataSourceOverSnapshotRGPermissions": [],
6+
"isProxyResource": false,
7+
"enableDataSourceSetInfo": false,
8+
"resourceType": "Microsoft.Storage/storageAccounts",
9+
"parentResourceType": "Microsoft.Storage/storageAccounts",
10+
"datasourceType": "Microsoft.Storage/storageAccounts/blobServices",
11+
"allowedRestoreModes": [ "PointInTimeBased", "RecoveryPointBased" ],
12+
"allowedRestoreTargetTypes": [ "OriginalLocation", "AlternateLocation" ],
13+
"itemLevelRecoveyEnabled": true,
14+
"addBackupDatasourceParametersList": true,
15+
"backupConfigurationRequired": false,
16+
"addDataStoreParametersList": false,
17+
"friendlyNameRequired": false,
18+
"supportSecretStoreAuthentication": false,
19+
"policySettings": {
20+
"supportedRetentionTags": [ "Weekly", "Monthly", "Yearly" ],
21+
"supportedDatastoreTypes": [ "OperationalStore", "VaultStore" ],
22+
"disableAddRetentionRule": false,
23+
"disableCustomRetentionTag": false,
24+
"backupScheduleSupported": true,
25+
"supportedBackupFrequency": [ "Daily", "Weekly" ],
26+
"defaultPolicy": {
27+
"backupManagementType": "AzureIaasVM",
28+
"policyType": "V1",
29+
"instantRPDetails": {},
30+
"schedulePolicy": {
31+
"schedulePolicyType": "SimpleSchedulePolicy",
32+
"scheduleRunFrequency": "Daily",
33+
"scheduleRunTimes": [
34+
"2023-05-22T14:00:00Z"
35+
],
36+
"scheduleWeeklyFrequency": 0
37+
},
38+
"retentionPolicy": {
39+
"retentionPolicyType": "LongTermRetentionPolicy",
40+
"dailySchedule": {
41+
"retentionTimes": [
42+
"2023-05-22T14:00:00Z"
43+
],
44+
"retentionDuration": {
45+
"count": 180,
46+
"durationType": "Days"
47+
}
48+
},
49+
"weeklySchedule": {
50+
"daysOfTheWeek": [
51+
"Sunday"
52+
],
53+
"retentionTimes": [
54+
"2023-05-22T14:00:00Z"
55+
],
56+
"retentionDuration": {
57+
"count": 12,
58+
"durationType": "Weeks"
59+
}
60+
},
61+
"monthlySchedule": {
62+
"retentionScheduleFormatType": "Weekly",
63+
"retentionScheduleWeekly": {
64+
"daysOfTheWeek": [
65+
"Sunday"
66+
],
67+
"weeksOfTheMonth": [
68+
"First"
69+
]
70+
},
71+
"retentionTimes": [
72+
"2023-05-22T14:00:00Z"
73+
],
74+
"retentionDuration": {
75+
"count": 60,
76+
"durationType": "Months"
77+
}
78+
},
79+
"yearlySchedule": {
80+
"retentionScheduleFormatType": "Weekly",
81+
"monthsOfYear": [
82+
"January"
83+
],
84+
"retentionScheduleWeekly": {
85+
"daysOfTheWeek": [
86+
"Sunday"
87+
],
88+
"weeksOfTheMonth": [
89+
"First"
90+
]
91+
},
92+
"retentionTimes": [
93+
"2023-05-22T14:00:00Z"
94+
],
95+
"retentionDuration": {
96+
"count": 10,
97+
"durationType": "Years"
98+
}
99+
}
100+
},
101+
"tieringPolicy": {
102+
"ArchivedRP": {
103+
"tieringMode": "DoNotTier",
104+
"duration": 0,
105+
"durationType": "Invalid"
106+
}
107+
},
108+
"instantRpRetentionRangeInDays": 2,
109+
"timeZone": "UTC",
110+
"protectedItemsCount": 0
111+
}
112+
}
113+
}

src/RecoveryServices/RecoveryServices.Backup.Autorest/docs/Az.RecoveryServices.md

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ Some operations\r\ncreate jobs.
3636
This method returns the list of jobs when the operation is complete.
3737

3838
### [Get-AzRecoveryServicesBackupPolicy](Get-AzRecoveryServicesBackupPolicy.md)
39-
Lists of backup policies associated with Recovery Services Vault.
40-
API provides pagination parameters to fetch\r\nscoped results.
39+
Provides the details of the backup policies associated to Recovery Services Vault.
40+
This is an asynchronous\r\noperation.
41+
Status of the operation can be fetched using GetPolicyOperationResult API.
4142

4243
### [Get-AzRecoveryServicesBackupProtectableItem](Get-AzRecoveryServicesBackupProtectableItem.md)
4344
Provides a pageable list of protectable objects within your subscription according to the query filter and the\r\npagination parameters.
@@ -128,11 +129,6 @@ Provides the details of the protection intent up item.
128129
This is an asynchronous operation.
129130
To know the status of the operation,\r\ncall the GetItemOperationResult API.
130131

131-
### [Get-AzRecoveryServicesProtectionPolicy](Get-AzRecoveryServicesProtectionPolicy.md)
132-
Provides the details of the backup policies associated to Recovery Services Vault.
133-
This is an asynchronous\r\noperation.
134-
Status of the operation can be fetched using GetPolicyOperationResult API.
135-
136132
### [Get-AzRecoveryServicesProtectionPolicyOperationResult](Get-AzRecoveryServicesProtectionPolicyOperationResult.md)
137133
Provides the result of an operation.
138134

@@ -173,6 +169,11 @@ Prepares source vault for Data Move operation
173169
### [Move-AzRecoveryServicesRecoveryPoint](Move-AzRecoveryServicesRecoveryPoint.md)
174170
Move recovery point from one datastore to another store.
175171

172+
### [New-AzRecoveryServicesBackupPolicy](New-AzRecoveryServicesBackupPolicy.md)
173+
Creates or modifies a backup policy.
174+
This is an asynchronous operation.
175+
Status of the operation can be fetched\r\nusing GetPolicyOperationResult API.
176+
176177
### [New-AzRecoveryServicesItemLevelRecoveryConnection](New-AzRecoveryServicesItemLevelRecoveryConnection.md)
177178
Provisions a script which invokes an iSCSI connection to the backup data.
178179
Executing this script opens a file\r\nexplorer displaying all the recoverable files and folders.
@@ -188,15 +189,15 @@ To know the status of the operation, call the GetItemOperationResult API.
188189
Create Intent for Enabling backup of an item.
189190
This is a synchronous operation.
190191

191-
### [New-AzRecoveryServicesProtectionPolicy](New-AzRecoveryServicesProtectionPolicy.md)
192-
Creates or modifies a backup policy.
193-
This is an asynchronous operation.
194-
Status of the operation can be fetched\r\nusing GetPolicyOperationResult API.
195-
196192
### [Register-AzRecoveryServicesProtectionContainer](Register-AzRecoveryServicesProtectionContainer.md)
197193
Registers the container with Recovery Services vault.\r\nThis is an asynchronous operation.
198194
To track the operation status, use location header to call get latest status of\r\nthe operation.
199195

196+
### [Remove-AzRecoveryServicesBackupPolicy](Remove-AzRecoveryServicesBackupPolicy.md)
197+
Deletes specified backup policy from your Recovery Services Vault.
198+
This is an asynchronous operation.
199+
Status of the\r\noperation can be fetched using GetProtectionPolicyOperationResult API.
200+
200201
### [Remove-AzRecoveryServicesPrivateEndpointConnection](Remove-AzRecoveryServicesPrivateEndpointConnection.md)
201202
Delete Private Endpoint requests.
202203
This call is made by Backup Admin.
@@ -209,11 +210,6 @@ To know the status of the\r\nrequest, call the GetItemOperationResult API.
209210
### [Remove-AzRecoveryServicesProtectionIntent](Remove-AzRecoveryServicesProtectionIntent.md)
210211
Used to remove intent from an item
211212

212-
### [Remove-AzRecoveryServicesProtectionPolicy](Remove-AzRecoveryServicesProtectionPolicy.md)
213-
Deletes specified backup policy from your Recovery Services Vault.
214-
This is an asynchronous operation.
215-
Status of the\r\noperation can be fetched using GetProtectionPolicyOperationResult API.
216-
217213
### [Remove-AzRecoveryServicesResourceGuardProxy](Remove-AzRecoveryServicesResourceGuardProxy.md)
218214
Delete ResourceGuardProxy under vault
219215

@@ -222,6 +218,11 @@ Revokes an iSCSI connection which can be used to download a script.
222218
Executing this script opens a file explorer\r\ndisplaying all recoverable files and folders.
223219
This is an asynchronous operation.
224220

221+
### [Set-AzRecoveryServicesBackupPolicy](Set-AzRecoveryServicesBackupPolicy.md)
222+
Creates or modifies a backup policy.
223+
This is an asynchronous operation.
224+
Status of the operation can be fetched\r\nusing GetPolicyOperationResult API.
225+
225226
### [Set-AzRecoveryServicesBackupResourceEncryptionConfig](Set-AzRecoveryServicesBackupResourceEncryptionConfig.md)
226227
Updates Vault encryption config.
227228

@@ -244,11 +245,6 @@ To know the status of the operation, call the GetItemOperationResult API.
244245
Create Intent for Enabling backup of an item.
245246
This is a synchronous operation.
246247

247-
### [Set-AzRecoveryServicesProtectionPolicy](Set-AzRecoveryServicesProtectionPolicy.md)
248-
Creates or modifies a backup policy.
249-
This is an asynchronous operation.
250-
Status of the operation can be fetched\r\nusing GetPolicyOperationResult API.
251-
252248
### [Set-AzRecoveryServicesResourceGuardProxy](Set-AzRecoveryServicesResourceGuardProxy.md)
253249
Add or Update ResourceGuardProxy under vault\r\nSecures vault critical operations
254250

0 commit comments

Comments
 (0)