Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/StackHCI/StackHCI.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest

``` yaml
branch: 5758cc23b0022e403d876662d9799f02c9bba3e6
commit: 5758cc23b0022e403d876662d9799f02c9bba3e6
require:
- $(this-folder)/../../readme.azure.noprofile.md
# lock the commit
Expand All @@ -65,6 +65,10 @@ inlining-threshold: 50

resourcegroup-append: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
# Rename function
- where:
Expand Down
253 changes: 205 additions & 48 deletions src/StackHCI/StackHCI.Autorest/custom/stackhci.ps1

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4492,6 +4492,11 @@ param(
# Specifying this parameter to $true will only unregister the cluster nodes with Arc for servers and Azure Stack HCI registration will not be altered.
${DisableOnlyAzureArcServer},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Category('Body')]
[System.Management.Automation.SwitchParameter]
${IsWAC},

[Parameter(Position=9)]
[Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Category('Body')]
[System.Management.Automation.PSCredential]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ param(
# Specifying this parameter to $true will only unregister the cluster nodes with Arc for servers and Azure Stack HCI registration will not be altered.
${DisableOnlyAzureArcServer},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Category('Body')]
[System.Management.Automation.SwitchParameter]
${IsWAC},

[Parameter(Position=9)]
[Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Category('Body')]
[System.Management.Automation.PSCredential]
Expand Down
18 changes: 17 additions & 1 deletion src/StackHCI/StackHCI.Autorest/help/Unregister-AzStackHCI.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ The registered information available on the cluster is used to unregister the cl
Unregister-AzStackHCI [[-SubscriptionId] <String>] [[-ResourceName] <String>] [[-TenantId] <String>]
[[-ResourceGroupName] <String>] [[-ArmAccessToken] <String>] [[-AccountId] <String>]
[[-EnvironmentName] <String>] [[-Region] <String>] [[-ComputerName] <String>] [[-Credential] <PSCredential>]
[-DisableOnlyAzureArcServer] [-Force] [-UseDeviceAuthentication] [-Confirm] [-WhatIf] [<CommonParameters>]
[-DisableOnlyAzureArcServer] [-Force] [-IsWAC] [-UseDeviceAuthentication] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -170,6 +171,21 @@ Accept wildcard characters: False
### -Force
Specifies that unregistration should continue even if we could not delete the Arc extensions on the nodes.

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IsWAC


```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Expand Down
4 changes: 2 additions & 2 deletions src/StackHCI/StackHCI/Az.StackHCI.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 12/5/2023
# Generated on: 1/26/2024
#

@{
Expand Down Expand Up @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.2'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.15.0'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'StackHCI.Autorest/bin/Az.StackHCI.private.dll'
Expand Down
2 changes: 2 additions & 0 deletions src/StackHCI/StackHCI/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
* Fixed issue for WAC.
* Restricted registration for 23H2 devices exclusively to cloud deployment.

## Version 2.2.3
* Added support for ARC Onboarding using Cluster Managed Identity.
Expand Down
18 changes: 17 additions & 1 deletion src/StackHCI/StackHCI/help/Unregister-AzStackHCI.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ The registered information available on the cluster is used to unregister the cl
Unregister-AzStackHCI [[-SubscriptionId] <String>] [[-ResourceName] <String>] [[-TenantId] <String>]
[[-ResourceGroupName] <String>] [[-ArmAccessToken] <String>] [[-AccountId] <String>]
[[-EnvironmentName] <String>] [[-Region] <String>] [[-ComputerName] <String>] [-UseDeviceAuthentication]
[-DisableOnlyAzureArcServer] [[-Credential] <PSCredential>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
[-DisableOnlyAzureArcServer] [-IsWAC] [[-Credential] <PSCredential>] [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -182,6 +183,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -IsWAC
{{ Fill IsWAC Description }}

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -Region
Specifies the Region the resource is created in Azure.

Expand Down