Skip to content

Commit 16e565a

Browse files
Migrate StackHCI from generation to main (#23280)
* Move StackHCI to main * Update ChangeLog.md * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent d890498 commit 16e565a

File tree

98 files changed

+6444
-602
lines changed

Some content is hidden

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

98 files changed

+6444
-602
lines changed
Lines changed: 21 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -1,146 +1,24 @@
1-
#
2-
# Module manifest for module 'Az.StackHCI'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 10/10/2023
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.StackHCI.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '2.2.2'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = '7a80d748-b6f0-42d1-a08d-215c5a006769'
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: StackHci 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.StackHCI.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.StackHCI.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 = 'Add-AzStackHCIVMAttestation', 'Disable-AzStackHCIAttestation',
73-
'Disable-AzStackHCIRemoteSupport', 'Enable-AzStackHCIAttestation',
74-
'Enable-AzStackHCIRemoteSupport', 'Get-AzStackHciArcSetting',
75-
'Get-AzStackHciCluster', 'Get-AzStackHciExtension',
76-
'Get-AzStackHCILogsDirectory', 'Get-AzStackHCIRemoteSupportAccess',
77-
'Get-AzStackHCIRemoteSupportSessionHistory',
78-
'Get-AzStackHCIVMAttestation', 'Install-AzStackHCIRemoteSupport',
79-
'Invoke-AzStackHciConsentAndInstallDefaultExtension',
80-
'Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit',
81-
'New-AzStackHciArcSetting', 'New-AzStackHciCluster',
82-
'New-AzStackHciExtension', 'Register-AzStackHCI',
83-
'Remove-AzStackHciArcSetting', 'Remove-AzStackHciCluster',
84-
'Remove-AzStackHciExtension', 'Remove-AzStackHCIRemoteSupport',
85-
'Remove-AzStackHCIVMAttestation', 'Set-AzStackHCI',
86-
'Unregister-AzStackHCI', 'Update-AzStackHciCluster'
87-
88-
# 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.
89-
CmdletsToExport = @()
90-
91-
# Variables to export from this module
92-
# VariablesToExport = @()
93-
94-
# 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.
95-
AliasesToExport = '*'
96-
97-
# DSC resources to export from this module
98-
# DscResourcesToExport = @()
99-
100-
# List of all modules packaged with this module
101-
# ModuleList = @()
102-
103-
# List of all files packaged with this module
104-
# FileList = @()
105-
106-
# 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.
107-
PrivateData = @{
108-
2+
GUID = '18e6b2a3-7e2d-4f6e-a8d2-09edaf462fd8'
3+
RootModule = './Az.StackHCI.psm1'
4+
ModuleVersion = '1.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: StackHci cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.StackHCI.private.dll'
13+
FormatsToProcess = './Az.StackHCI.format.ps1xml'
14+
FunctionsToExport = 'Add-AzStackHCIVMAttestation', 'Disable-AzStackHCIAttestation', 'Disable-AzStackHCIRemoteSupport', 'Enable-AzStackHCIAttestation', 'Enable-AzStackHCIRemoteSupport', 'Get-AzStackHciArcSetting', 'Get-AzStackHciCluster', 'Get-AzStackHciExtension', 'Get-AzStackHCILogsDirectory', 'Get-AzStackHCIRemoteSupportAccess', 'Get-AzStackHCIRemoteSupportSessionHistory', 'Get-AzStackHCIVMAttestation', 'Install-AzStackHCIRemoteSupport', 'Invoke-AzStackHciConsentAndInstallDefaultExtension', 'Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit', 'New-AzStackHciArcSetting', 'New-AzStackHciCluster', 'New-AzStackHciExtension', 'Register-AzStackHCI', 'Remove-AzStackHciArcSetting', 'Remove-AzStackHciCluster', 'Remove-AzStackHciExtension', 'Remove-AzStackHCIRemoteSupport', 'Remove-AzStackHCIVMAttestation', 'Set-AzStackHCI', 'Unregister-AzStackHCI', 'Update-AzStackHciCluster', '*'
15+
AliasesToExport = '*'
16+
PrivateData = @{
10917
PSData = @{
110-
111-
# Tags applied to this module. These help with module discovery in online galleries.
112-
Tags = 'Azure','ResourceManager','ARM','PSModule','StackHci'
113-
114-
# A URL to the license for this module.
115-
LicenseUri = 'https://aka.ms/azps-license'
116-
117-
# A URL to the main website for this project.
118-
ProjectUri = 'https://github.com/Azure/azure-powershell'
119-
120-
# A URL to an icon representing this module.
121-
# IconUri = ''
122-
123-
# ReleaseNotes of this module
124-
ReleaseNotes = '* Reverted remove CustomIMDSHost'
125-
126-
# Prerelease string of this module
127-
# Prerelease = ''
128-
129-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
130-
# RequireLicenseAcceptance = $false
131-
132-
# External dependent modules of this module
133-
# ExternalModuleDependencies = @()
134-
135-
} # End of PSData hashtable
136-
137-
} # End of PrivateData hashtable
138-
139-
# HelpInfo URI of this module
140-
# HelpInfoURI = ''
141-
142-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
143-
# DefaultCommandPrefix = ''
144-
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StackHci'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
14524
}
146-
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using System;
16+
using System.Reflection;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: AssemblyTitle("Microsoft Azure Powershell - StackHCI")]
20+
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
21+
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
22+
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
23+
24+
[assembly: ComVisible(false)]
25+
[assembly: CLSCompliant(false)]
26+
[assembly: Guid("ffd04564-e4dc-4c8f-877a-6bcafa501179")]
27+
[assembly: AssemblyVersion("0.1.0")]
28+
[assembly: AssemblyFileVersion("0.1.0")]

src/StackHCI/StackHCI.Autorest/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ In this directory, run AutoRest:
4949
``` yaml
5050
branch: 5758cc23b0022e403d876662d9799f02c9bba3e6
5151
require:
52-
- $(this-folder)/../readme.azure.noprofile.md
52+
- $(this-folder)/../../readme.azure.noprofile.md
5353
# lock the commit
5454
input-file:
5555
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2023-03-01/arcSettings.json

src/StackHCI/StackHCI.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)