Skip to content

Commit

Permalink
Migrate StackHCI from generation to main (#25626)
Browse files Browse the repository at this point in the history
* Move StackHCI to main

* Create BreakingChangeIssues.csv

* Update ChangeLog.md

* Update UXMetadataIssues.csv

---------

Co-authored-by: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com>
Co-authored-by: Yabo Hu <yabhu@microsoft.com>
  • Loading branch information
3 people authored Jul 24, 2024
1 parent 8c8b3a0 commit b1636a4
Show file tree
Hide file tree
Showing 880 changed files with 128,246 additions and 4,692 deletions.
4,078 changes: 3,776 additions & 302 deletions src/StackHCI/StackHCI.Autorest/Az.StackHCI.format.ps1xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/StackHCI/StackHCI.Autorest/Az.StackHCI.psd1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@{
GUID = '18e6b2a3-7e2d-4f6e-a8d2-09edaf462fd8'
RootModule = './Az.StackHCI.psm1'
ModuleVersion = '1.1.0'
ModuleVersion = '1.2.0'
CompatiblePSEditions = 'Core', 'Desktop'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
Expand All @@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.StackHCI.private.dll'
FormatsToProcess = './Az.StackHCI.format.ps1xml'
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', '*'
FunctionsToExport = 'Add-AzStackHCIVMAttestation', 'Disable-AzStackHCIAttestation', 'Disable-AzStackHCIRemoteSupport', 'Enable-AzStackHCIAttestation', 'Enable-AzStackHCIRemoteSupport', 'Get-AzStackHciArcSetting', 'Get-AzStackHciCluster', 'Get-AzStackHciDeploymentSetting', 'Get-AzStackHciEdgeDevice', 'Get-AzStackHciExtension', 'Get-AzStackHCILogsDirectory', 'Get-AzStackHCIRemoteSupportAccess', 'Get-AzStackHCIRemoteSupportSessionHistory', 'Get-AzStackHciSecuritySetting', 'Get-AzStackHciUpdate', 'Get-AzStackHciUpdateRun', 'Get-AzStackHciUpdateSummary', 'Get-AzStackHCIVMAttestation', 'Install-AzStackHCIRemoteSupport', 'Invoke-AzStackHciConsentAndInstallDefaultExtension', 'Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit', 'Invoke-AzStackHciUpdate', 'New-AzStackHciArcSetting', 'New-AzStackHciCluster', 'New-AzStackHciDeploymentSetting', 'New-AzStackHciEdgeDevice', 'New-AzStackHciExtension', 'New-AzStackHciSecuritySetting', 'Register-AzStackHCI', 'Remove-AzStackHciArcSetting', 'Remove-AzStackHciCluster', 'Remove-AzStackHciDeploymentSetting', 'Remove-AzStackHciEdgeDevice', 'Remove-AzStackHciExtension', 'Remove-AzStackHCIRemoteSupport', 'Remove-AzStackHciSecuritySetting', 'Remove-AzStackHciUpdate', 'Remove-AzStackHciUpdateRun', 'Remove-AzStackHciUpdateSummary', 'Remove-AzStackHCIVMAttestation', 'Set-AzStackHCI', 'Set-AzStackHciDeploymentSetting', 'Set-AzStackHciEdgeDevice', 'Set-AzStackHciSecuritySetting', 'Set-AzStackHciUpdate', 'Set-AzStackHciUpdateRun', 'Set-AzStackHciUpdateSummary', 'Test-AzStackHciEdgeDevice', 'Unregister-AzStackHCI', 'Update-AzStackHciCluster', '*'
AliasesToExport = '*'
PrivateData = @{
PSData = @{
Expand Down
44 changes: 39 additions & 5 deletions src/StackHCI/StackHCI.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,22 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest
``` yaml
commit: 5758cc23b0022e403d876662d9799f02c9bba3e6
commit: 96fedf433c6c0ee9fccde4ec6698c75ac118c3d0
require:
- $(this-folder)/../../readme.azure.noprofile.md
# lock the commit
input-file:
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2023-03-01/arcSettings.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2023-03-01/clusters.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2023-03-01/extensions.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/arcSettings.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/clusters.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/extensions.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/deploymentSettings.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/edgeDevices.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/securitySettings.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/updateRuns.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/updateSummaries.json
- $(repo)/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/updates.json

module-version: 1.1.0
module-version: 1.2.0
title: StackHCI
service-name: StackHCI
subject-prefix: $(service-name)
Expand Down Expand Up @@ -86,6 +92,16 @@ directive:
verb: Update
subject: Extension
remove: true
# Remove Start-AzStackHciClusterLogCollection
- where:
verb: Start
subject: ClusterLogCollection
remove: true
# Remove Set-AzStackHciClusterRemoteSupport
- where:
verb: Set
subject: ClusterRemoteSupport
remove: true
# Remove Invoke-AzStackHciUploadClusterCertificate
- where:
verb: Invoke
Expand Down Expand Up @@ -116,6 +132,24 @@ directive:
set:
default:
script: '"default"'
# Hide name from edgeDevices
- where:
verb: New
subject: EdgeDevice
parameter-name: Name
hide: true
set:
default:
script: '"default"'
# Hide name from securitySetting
- where:
verb: New
subject: SecuritySetting
parameter-name: SName
hide: true
set:
default:
script: '"default"'
- where:
verb: Invoke
subject: ConsentAndInstallDefaultExtension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "clusters/arcSettings/extensions",
"apiVersion": "2023-03-01",
"apiVersion": "2024-04-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "clusters/arcSettings",
"apiVersion": "2023-03-01",
"apiVersion": "2024-04-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"resourceType": "clusters/deploymentSettings",
"apiVersion": "2024-04-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci"
},
"commands": [
{
"name": "Get-AzStackHciDeploymentSetting",
"description": "Get a DeploymentSetting",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/deploymentSettings/{deploymentSettingsName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci/get-azstackhcideploymentsetting"
},
"parameterSets": [
{
"parameters": [
"-ClusterName <String>",
"-ResourceGroupName <String>",
"-SName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Get a DeploymentSetting",
"parameters": [
{
"name": "-ClusterName",
"value": "[Path.clusterName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SName",
"value": "[Path.deploymentSettingsName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Remove-AzStackHciDeploymentSetting",
"description": "Delete a DeploymentSetting",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/deploymentSettings/{deploymentSettingsName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci/remove-azstackhcideploymentsetting"
},
"parameterSets": [
{
"parameters": [
"-ClusterName <String>",
"-ResourceGroupName <String>",
"-SName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Delete a DeploymentSetting",
"parameters": [
{
"name": "-ClusterName",
"value": "[Path.clusterName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SName",
"value": "[Path.deploymentSettingsName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"resourceType": "clusters/securitySettings",
"apiVersion": "2024-04-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci"
},
"commands": [
{
"name": "Get-AzStackHciSecuritySetting",
"description": "Get a SecuritySetting",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/securitySettings/{securitySettingsName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci/get-azstackhcisecuritysetting"
},
"parameterSets": [
{
"parameters": [
"-ClusterName <String>",
"-ResourceGroupName <String>",
"-SName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Get a SecuritySetting",
"parameters": [
{
"name": "-ClusterName",
"value": "[Path.clusterName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SName",
"value": "[Path.securitySettingsName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Remove-AzStackHciSecuritySetting",
"description": "Delete a SecuritySetting",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/securitySettings/{securitySettingsName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci/remove-azstackhcisecuritysetting"
},
"parameterSets": [
{
"parameters": [
"-ClusterName <String>",
"-ResourceGroupName <String>",
"-SName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Delete a SecuritySetting",
"parameters": [
{
"name": "-ClusterName",
"value": "[Path.clusterName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SName",
"value": "[Path.securitySettingsName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Loading

0 comments on commit b1636a4

Please sign in to comment.