Skip to content

Commit 6325952

Browse files
Migrate DataProtection from generation to main (Azure#23822)
* Move DataProtection to main * Update ChangeLog.md for dataprotection --------- Co-authored-by: Xiaogang <[email protected]>
1 parent 5dae33e commit 6325952

File tree

1,054 files changed

+45877
-15845
lines changed

Some content is hidden

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

1,054 files changed

+45877
-15845
lines changed

src/DataProtection/DataProtection.Autorest/Az.DataProtection.format.ps1xml

Lines changed: 576 additions & 286 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 176 deletions
Original file line numberDiff line numberDiff line change
@@ -1,179 +1,24 @@
1-
#
2-
# Module manifest for module 'Az.DataProtection'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 9/20/2023
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.DataProtection.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '2.1.0'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = '0796af7c-0a7c-417f-8d0d-19f9179dac7a'
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: DataProtection 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.13.1'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.DataProtection.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.DataProtection.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 = 'Backup-AzDataProtectionBackupInstanceAdhoc',
73-
'Edit-AzDataProtectionPolicyRetentionRuleClientObject',
74-
'Edit-AzDataProtectionPolicyTagClientObject',
75-
'Edit-AzDataProtectionPolicyTriggerClientObject',
76-
'Find-AzDataProtectionRestorableTimeRange',
77-
'Get-AzDataProtectionBackupInstance',
78-
'Get-AzDataProtectionBackupPolicy',
79-
'Get-AzDataProtectionBackupVault', 'Get-AzDataProtectionJob',
80-
'Get-AzDataProtectionOperation',
81-
'Get-AzDataProtectionOperationStatus',
82-
'Get-AzDataProtectionPolicyTemplate',
83-
'Get-AzDataProtectionRecoveryPoint',
84-
'Get-AzDataProtectionResourceGuard',
85-
'Get-AzDataProtectionResourceGuardMapping',
86-
'Get-AzDataProtectionSoftDeletedBackupInstance',
87-
'Initialize-AzDataProtectionBackupInstance',
88-
'Initialize-AzDataProtectionRestoreRequest',
89-
'New-AzDataProtectionBackupConfigurationClientObject',
90-
'New-AzDataProtectionBackupInstance',
91-
'New-AzDataProtectionBackupPolicy',
92-
'New-AzDataProtectionBackupVault',
93-
'New-AzDataProtectionBackupVaultStorageSettingObject',
94-
'New-AzDataProtectionPolicyTagCriteriaClientObject',
95-
'New-AzDataProtectionPolicyTriggerScheduleClientObject',
96-
'New-AzDataProtectionResourceGuard',
97-
'New-AzDataProtectionRestoreConfigurationClientObject',
98-
'New-AzDataProtectionRetentionLifeCycleClientObject',
99-
'Remove-AzDataProtectionBackupInstance',
100-
'Remove-AzDataProtectionBackupPolicy',
101-
'Remove-AzDataProtectionBackupVault',
102-
'Remove-AzDataProtectionResourceGuard',
103-
'Remove-AzDataProtectionResourceGuardMapping',
104-
'Resume-AzDataProtectionBackupInstanceProtection',
105-
'Search-AzDataProtectionBackupInstanceInAzGraph',
106-
'Search-AzDataProtectionJobInAzGraph',
107-
'Set-AzDataProtectionMSIPermission',
108-
'Set-AzDataProtectionResourceGuardMapping',
109-
'Start-AzDataProtectionBackupInstanceRestore',
110-
'Stop-AzDataProtectionBackupInstanceProtection',
111-
'Suspend-AzDataProtectionBackupInstanceBackup',
112-
'Sync-AzDataProtectionBackupInstance',
113-
'Test-AzDataProtectionBackupInstanceReadiness',
114-
'Test-AzDataProtectionBackupInstanceRestore',
115-
'Undo-AzDataProtectionBackupInstanceDeletion',
116-
'Unlock-AzDataProtectionResourceGuardOperation',
117-
'Update-AzDataProtectionBackupInstanceAssociatedPolicy',
118-
'Update-AzDataProtectionBackupVault',
119-
'Update-AzDataProtectionResourceGuard'
120-
121-
# 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.
122-
CmdletsToExport = @()
123-
124-
# Variables to export from this module
125-
# VariablesToExport = @()
126-
127-
# 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.
128-
AliasesToExport = '*'
129-
130-
# DSC resources to export from this module
131-
# DscResourcesToExport = @()
132-
133-
# List of all modules packaged with this module
134-
# ModuleList = @()
135-
136-
# List of all files packaged with this module
137-
# FileList = @()
138-
139-
# 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.
140-
PrivateData = @{
141-
2+
GUID = 'e7388191-d3e0-4d54-b898-d55f0992a1dc'
3+
RootModule = './Az.DataProtection.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: DataProtection cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.DataProtection.private.dll'
13+
FormatsToProcess = './Az.DataProtection.format.ps1xml'
14+
FunctionsToExport = 'Backup-AzDataProtectionBackupInstanceAdhoc', 'Edit-AzDataProtectionPolicyRetentionRuleClientObject', 'Edit-AzDataProtectionPolicyTagClientObject', 'Edit-AzDataProtectionPolicyTriggerClientObject', 'Find-AzDataProtectionRestorableTimeRange', 'Get-AzDataProtectionBackupInstance', 'Get-AzDataProtectionBackupPolicy', 'Get-AzDataProtectionBackupVault', 'Get-AzDataProtectionJob', 'Get-AzDataProtectionOperation', 'Get-AzDataProtectionOperationStatus', 'Get-AzDataProtectionPolicyTemplate', 'Get-AzDataProtectionRecoveryPoint', 'Get-AzDataProtectionResourceGuard', 'Get-AzDataProtectionResourceGuardMapping', 'Get-AzDataProtectionSoftDeletedBackupInstance', 'Initialize-AzDataProtectionBackupInstance', 'Initialize-AzDataProtectionRestoreRequest', 'New-AzDataProtectionBackupConfigurationClientObject', 'New-AzDataProtectionBackupInstance', 'New-AzDataProtectionBackupPolicy', 'New-AzDataProtectionBackupVault', 'New-AzDataProtectionBackupVaultStorageSettingObject', 'New-AzDataProtectionPolicyTagCriteriaClientObject', 'New-AzDataProtectionPolicyTriggerScheduleClientObject', 'New-AzDataProtectionResourceGuard', 'New-AzDataProtectionRestoreConfigurationClientObject', 'New-AzDataProtectionRetentionLifeCycleClientObject', 'Remove-AzDataProtectionBackupInstance', 'Remove-AzDataProtectionBackupPolicy', 'Remove-AzDataProtectionBackupVault', 'Remove-AzDataProtectionResourceGuard', 'Remove-AzDataProtectionResourceGuardMapping', 'Resume-AzDataProtectionBackupInstanceProtection', 'Search-AzDataProtectionBackupInstanceInAzGraph', 'Search-AzDataProtectionBackupVaultInAzGraph', 'Search-AzDataProtectionJobInAzGraph', 'Set-AzDataProtectionMSIPermission', 'Set-AzDataProtectionResourceGuardMapping', 'Start-AzDataProtectionBackupInstanceRestore', 'Stop-AzDataProtectionBackupInstanceProtection', 'Suspend-AzDataProtectionBackupInstanceBackup', 'Sync-AzDataProtectionBackupInstance', 'Test-AzDataProtectionBackupInstanceReadiness', 'Test-AzDataProtectionBackupInstanceRestore', 'Undo-AzDataProtectionBackupInstanceDeletion', 'Unlock-AzDataProtectionResourceGuardOperation', 'Update-AzDataProtectionBackupInstanceAssociatedPolicy', 'Update-AzDataProtectionBackupVault', 'Update-AzDataProtectionResourceGuard', '*'
15+
AliasesToExport = '*'
16+
PrivateData = @{
14217
PSData = @{
143-
144-
# Tags applied to this module. These help with module discovery in online galleries.
145-
Tags = 'Azure','ResourceManager','ARM','PSModule','DataProtection'
146-
147-
# A URL to the license for this module.
148-
LicenseUri = 'https://aka.ms/azps-license'
149-
150-
# A URL to the main website for this project.
151-
ProjectUri = 'https://github.com/Azure/azure-powershell'
152-
153-
# A URL to an icon representing this module.
154-
# IconUri = ''
155-
156-
# ReleaseNotes of this module
157-
ReleaseNotes = '* Added soft delete and MUA feature for Backup vaults'
158-
159-
# Prerelease string of this module
160-
# Prerelease = ''
161-
162-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
163-
# RequireLicenseAcceptance = $false
164-
165-
# External dependent modules of this module
166-
# ExternalModuleDependencies = @()
167-
168-
} # End of PSData hashtable
169-
170-
} # End of PrivateData hashtable
171-
172-
# HelpInfo URI of this module
173-
# HelpInfoURI = ''
174-
175-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
176-
# DefaultCommandPrefix = ''
177-
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DataProtection'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
17824
}
179-

src/DataProtection/DataProtection.Autorest/README.md

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@ This file contains the configuration for generating My API from the OpenAPI spec
3434
3535
``` yaml
3636
# it's the same options as command line options, just drop the double-dash!
37-
branch: acf24167b5174d88f36302e243c883f2e63eec52
37+
commit: c0e7b1360c19187fde2497251f784aa82641aa95
3838
require:
39-
- $(this-folder)/../readme.azure.noprofile.md
39+
- $(this-folder)/../../readme.azure.noprofile.md
4040
input-file:
41-
- $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-05-01/dataprotection.json
41+
- $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json
4242
title: DataProtection
43+
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
44+
use-extension:
45+
"@autorest/powershell": "3.x"
46+
4347
directive:
4448
- from: swagger-document
4549
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}"].delete
@@ -232,6 +236,10 @@ directive:
232236
verb: Start
233237
subject: ExportJob
234238
remove: true
239+
- where:
240+
verb: Start
241+
subject: .*Restore$
242+
hide: true
235243
- where:
236244
verb: Get
237245
subject: OperationResultPatch
@@ -302,6 +310,23 @@ directive:
302310
subject: BackupInstanceRestore
303311
variant: ^Validate1$|^ValidateExpanded1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$
304312
hide: true
313+
- where:
314+
verb: Test
315+
subject: BackupInstanceCrossRegionRestore
316+
hide: true
317+
- where:
318+
subject: FetchCrossRegionRestoreJob
319+
set:
320+
subject: CrossRegionRestoreJob
321+
- where:
322+
subject: CrossRegionRestoreJob
323+
variant: ^Get.*
324+
set:
325+
subject: CrossRegionRestoreJobDetail
326+
- where:
327+
verb: Get
328+
subject: ^Job$|^CrossRegionRestoreJob.*|FetchSecondaryRecoveryPoint
329+
hide: true
305330
- where:
306331
property-name: AzureMonitorAlertSettingAlertsForAllJobFailure
307332
set:
@@ -359,6 +384,8 @@ directive:
359384
- IdentityType
360385
- no-inline:
361386
- BackupInstance
387+
- CrossRegionRestoreDetails
388+
- CrossRegionRestoreRequestObject
362389
- DeletionInfo
363390
- InnerError
364391
- ItemLevelRestoreTargetInfo
@@ -370,19 +397,20 @@ directive:
370397
- SecretStoreResource
371398
- SystemData
372399
- UserFacingError
373-
- ValidateRestoreRequestObject
400+
- ValidateRestoreRequestObject
401+
- ValidateCrossRegionRestoreRequestObject
374402
- from: source-file-csharp
375403
where: $
376-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.IBaseBackupPolicy Property');
404+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicy Property');
377405
- from: source-file-csharp
378406
where: $
379-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.ITriggerContext Trigger');
407+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ITriggerContext Trigger');
380408
- from: source-file-csharp
381409
where: $
382-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.IBackupParameters BackupParameter');
410+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupParameters BackupParameter');
383411
- from: source-file-csharp
384412
where: $
385-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.IAzureBackupRecoveryPoint Property');
413+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPoint Property');
386414
```
387415
388416
## Alternate settings

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

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

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

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"resourceType": "backupVaults/backupJobs",
3-
"apiVersion": "2023-05-01",
3+
"apiVersion": "2023-11-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},
77
"commands": [
88
{
99
"name": "Get-AzDataProtectionJob",
10-
"description": "Gets a job with id in a backup vault",
10+
"description": "Gets or lists jobs in a backup vault",
1111
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}",
1212
"help": {
1313
"learnMore": {

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

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

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

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

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

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

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

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

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

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

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

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

src/DataProtection/DataProtection.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-------------'

0 commit comments

Comments
 (0)