Skip to content

Commit f11c777

Browse files
author
Ritvik Nagpal
authored
Az.StackHCI May release (#21644)
* Minor dummy change * Added payload for may release * autorest generation * SDK related changes * Added more payload * Added more payload * Removed unused code * Suppressed breaking change checks, made some changes in Set-AzStackHCI * Added csv to suppress breaking changes
1 parent 19ac12a commit f11c777

20 files changed

+397
-817
lines changed

src/StackHCI/Az.StackHCI.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.StackHCI.private.dll'
1313
FormatsToProcess = './Az.StackHCI.format.ps1xml'
14-
FunctionsToExport = 'Add-AzStackHCIVMAttestation', 'Disable-AzStackHCIAttestation', 'Disable-AzStackHCIRemoteSupport', 'Enable-AzStackHCIAttestation', 'Enable-AzStackHCIRemoteSupport', 'Get-AzStackHciArcSetting', 'Get-AzStackHciCluster', 'Get-AzStackHciExtension', 'Get-AzStackHCIRemoteSupportAccess', 'Get-AzStackHCIRemoteSupportSessionHistory', 'Get-AzStackHCIVMAttestation', 'Install-AzStackHCIRemoteSupport', 'New-AzStackHciArcSetting', 'New-AzStackHciCluster', 'New-AzStackHciExtension', 'Register-AzStackHCI', 'Remove-AzStackHciArcSetting', 'Remove-AzStackHciCluster', 'Remove-AzStackHciExtension', 'Remove-AzStackHCIRemoteSupport', 'Remove-AzStackHCIVMAttestation', 'Set-AzStackHCI', 'Test-AzStackHCIConnection', 'Unregister-AzStackHCI', 'Update-AzStackHciCluster', '*'
14+
FunctionsToExport = 'Add-AzStackHCIVMAttestation', 'Disable-AzStackHCIAttestation', 'Disable-AzStackHCIRemoteSupport', 'Enable-AzStackHCIAttestation', 'Enable-AzStackHCIRemoteSupport', 'Get-AzStackHciArcSetting', 'Get-AzStackHciCluster', 'Get-AzStackHciExtension', 'Get-AzStackHCIRemoteSupportAccess', 'Get-AzStackHCIRemoteSupportSessionHistory', 'Get-AzStackHCIVMAttestation', 'Install-AzStackHCIRemoteSupport', 'New-AzStackHciArcSetting', 'New-AzStackHciCluster', 'New-AzStackHciExtension', 'Register-AzStackHCI', 'Remove-AzStackHciArcSetting', 'Remove-AzStackHciCluster', 'Remove-AzStackHciExtension', 'Remove-AzStackHCIRemoteSupport', 'Remove-AzStackHCIVMAttestation', 'Set-AzStackHCI', 'Unregister-AzStackHCI', 'Update-AzStackHciCluster', '*'
1515
AliasesToExport = '*'
1616
PrivateData = @{
1717
PSData = @{

src/StackHCI/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,12 @@ directive:
109109
set:
110110
default:
111111
script: '"default"'
112+
# Update ExtensionParameters.settings
113+
- from: swagger-document
114+
where: $.definitions.ExtensionParameters.properties.settings
115+
transform: $["additionalProperties"] = true
116+
# Update ExtensionParameters.protectedSettings
117+
- from: swagger-document
118+
where: $.definitions.ExtensionParameters.properties.protectedSettings
119+
transform: $["additionalProperties"] = true
112120
```

src/StackHCI/custom/stackhci.ps1

Lines changed: 324 additions & 530 deletions
Large diffs are not rendered by default.

src/StackHCI/docs/Az.StackHCI.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,6 @@ Remove-AzStackHCIVMAttestation removes guests from AzureStack HCI IMDS Attestati
7777
### [Set-AzStackHCI](Set-AzStackHCI.md)
7878
Set-AzStackHCI modifies resource properties of the Microsoft.AzureStackHCI cloud resource representing the on-premises cluster to enable or disable features.
7979

80-
### [Test-AzStackHCIConnection](Test-AzStackHCIConnection.md)
81-
Test-AzStackHCIConnection verifies connectivity from on-premises clustered nodes to the Azure services required by Azure Stack HCI.
82-
83-
Note: Test-AzStackhHCIConnection is deprecated.
84-
Please use 'Invoke-AzStackHciConnectivityValidation' from 'AzStackHCI.EnvironmentChecker' module for enhanced connectivity verification tests.
85-
For more information, see https://learn.microsoft.com/en-us/azure-stack/hci/whats-new#new-azure-stack-hci-environment-checker-tool.
86-
8780
### [Unregister-AzStackHCI](Unregister-AzStackHCI.md)
8881
Unregister-AzStackHCI deletes the Microsoft.AzureStackHCI cloud resource representing the on-premises cluster and unregisters the on-premises cluster with Azure.
8982
The registered information available on the cluster is used to unregister the cluster if no parameters are passed.

src/StackHCI/docs/Get-AzStackHciArcSetting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ Accept wildcard characters: False
6666
```
6767
6868
### -DefaultProfile
69-
The credentials, account, tenant, and subscription used for communication with Azure.
69+
The DefaultProfile parameter is not functional.
70+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
7071
7172
```yaml
7273
Type: System.Management.Automation.PSObject

src/StackHCI/docs/Get-AzStackHciCluster.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ To see the details use : "Write-Host( $cluster | Format-List | Out-String)"
7171
## PARAMETERS
7272

7373
### -DefaultProfile
74-
The credentials, account, tenant, and subscription used for communication with Azure.
74+
The DefaultProfile parameter is not functional.
75+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
7576

7677
```yaml
7778
Type: System.Management.Automation.PSObject

src/StackHCI/docs/Get-AzStackHciExtension.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ Accept wildcard characters: False
8181
```
8282
8383
### -DefaultProfile
84-
The credentials, account, tenant, and subscription used for communication with Azure.
84+
The DefaultProfile parameter is not functional.
85+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
8586
8687
```yaml
8788
Type: System.Management.Automation.PSObject

src/StackHCI/docs/New-AzStackHciArcSetting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ Accept wildcard characters: False
147147
```
148148
149149
### -DefaultProfile
150-
The credentials, account, tenant, and subscription used for communication with Azure.
150+
The DefaultProfile parameter is not functional.
151+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
151152
152153
```yaml
153154
Type: System.Management.Automation.PSObject

src/StackHCI/docs/New-AzStackHciCluster.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ Accept wildcard characters: False
131131
```
132132
133133
### -DefaultProfile
134-
The credentials, account, tenant, and subscription used for communication with Azure.
134+
The DefaultProfile parameter is not functional.
135+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
135136
136137
```yaml
137138
Type: System.Management.Automation.PSObject

src/StackHCI/docs/New-AzStackHciExtension.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Create Extension for HCI cluster.
1515
```
1616
New-AzStackHciExtension -ArcSettingName <String> -ClusterName <String> -Name <String>
1717
-ResourceGroupName <String> [-SubscriptionId <String>] [-ExtensionParameterAutoUpgradeMinorVersion]
18-
[-ExtensionParameterForceUpdateTag <String>] [-ExtensionParameterProtectedSetting <IAny>]
19-
[-ExtensionParameterPublisher <String>] [-ExtensionParameterSetting <IAny>]
18+
[-ExtensionParameterForceUpdateTag <String>] [-ExtensionParameterProtectedSetting <Hashtable>]
19+
[-ExtensionParameterPublisher <String>] [-ExtensionParameterSetting <Hashtable>]
2020
[-ExtensionParameterType <String>] [-ExtensionParameterTypeHandlerVersion <String>]
2121
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
2222
```
@@ -101,7 +101,8 @@ Accept wildcard characters: False
101101
```
102102
103103
### -DefaultProfile
104-
The credentials, account, tenant, and subscription used for communication with Azure.
104+
The DefaultProfile parameter is not functional.
105+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
105106
106107
```yaml
107108
Type: System.Management.Automation.PSObject
@@ -150,7 +151,7 @@ Accept wildcard characters: False
150151
Protected settings (may contain secrets).
151152
152153
```yaml
153-
Type: Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IAny
154+
Type: System.Collections.Hashtable
154155
Parameter Sets: (All)
155156
Aliases:
156157

@@ -180,7 +181,7 @@ Accept wildcard characters: False
180181
Json formatted public settings for the extension.
181182
182183
```yaml
183-
Type: Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IAny
184+
Type: System.Collections.Hashtable
184185
Parameter Sets: (All)
185186
Aliases:
186187

src/StackHCI/docs/Register-AzStackHCI.md

Lines changed: 15 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Register-AzStackHCI creates a Microsoft.AzureStackHCI cloud resource representin
1313
## SYNTAX
1414

1515
```
16-
Register-AzStackHCI [-SubscriptionId] <String> [[-Region] <String>] [[-ResourceName] <String>]
16+
Register-AzStackHCI [-SubscriptionId] <String> [-Region] <String> [[-ResourceName] <String>]
1717
[[-Tag] <Hashtable>] [[-TenantId] <String>] [[-ResourceGroupName] <String>] [[-ArmAccessToken] <String>]
18-
[[-GraphAccessToken] <String>] [[-AccountId] <String>] [[-EnvironmentName] <String>]
19-
[[-ComputerName] <String>] [[-CertificateThumbprint] <String>] [[-Credential] <PSCredential>]
20-
[[-ArcServerResourceGroupName] <String>] [[-ArcSpnCredential] <PSCredential>] [-EnableAzureArcServer]
21-
[-IsWAC] [-RepairRegistration] [-UseDeviceAuthentication] [-Confirm] [-WhatIf] [<CommonParameters>]
18+
[[-AccountId] <String>] [[-EnvironmentName] <String>] [[-ComputerName] <String>]
19+
[[-CertificateThumbprint] <String>] [[-Credential] <PSCredential>] [[-ArcServerResourceGroupName] <String>]
20+
[[-ArcSpnCredential] <PSCredential>] [-IsWAC] [-RepairRegistration] [-UseDeviceAuthentication] [-Confirm]
21+
[-WhatIf] [<CommonParameters>]
2222
```
2323

2424
## DESCRIPTION
@@ -94,7 +94,7 @@ Parameter Sets: (All)
9494
Aliases:
9595

9696
Required: False
97-
Position: 8
97+
Position: 7
9898
Default value: None
9999
Accept pipeline input: False
100100
Accept wildcard characters: False
@@ -110,7 +110,7 @@ Parameter Sets: (All)
110110
Aliases:
111111

112112
Required: False
113-
Position: 13
113+
Position: 12
114114
Default value: None
115115
Accept pipeline input: False
116116
Accept wildcard characters: False
@@ -126,7 +126,7 @@ Parameter Sets: (All)
126126
Aliases:
127127

128128
Required: False
129-
Position: 14
129+
Position: 13
130130
Default value: None
131131
Accept pipeline input: False
132132
Accept wildcard characters: False
@@ -158,7 +158,7 @@ Parameter Sets: (All)
158158
Aliases:
159159

160160
Required: False
161-
Position: 11
161+
Position: 10
162162
Default value: None
163163
Accept pipeline input: False
164164
Accept wildcard characters: False
@@ -173,7 +173,7 @@ Parameter Sets: (All)
173173
Aliases:
174174

175175
Required: False
176-
Position: 10
176+
Position: 9
177177
Default value: None
178178
Accept pipeline input: False
179179
Accept wildcard characters: False
@@ -189,23 +189,7 @@ Parameter Sets: (All)
189189
Aliases:
190190

191191
Required: False
192-
Position: 12
193-
Default value: None
194-
Accept pipeline input: False
195-
Accept wildcard characters: False
196-
```
197-
198-
### -EnableAzureArcServer
199-
EnableAzureArcServer needs to be specified $true in all the environments except AzureChinaCloud.
200-
Specifying this parameter to $false in environments except AzureChinaCloud will terminate the registration cmdlet.
201-
202-
```yaml
203-
Type: System.Management.Automation.SwitchParameter
204-
Parameter Sets: (All)
205-
Aliases:
206-
207-
Required: False
208-
Position: Named
192+
Position: 11
209193
Default value: None
210194
Accept pipeline input: False
211195
Accept wildcard characters: False
@@ -222,22 +206,7 @@ Parameter Sets: (All)
222206
Aliases:
223207

224208
Required: False
225-
Position: 9
226-
Default value: None
227-
Accept pipeline input: False
228-
Accept wildcard characters: False
229-
```
230-
231-
### -GraphAccessToken
232-
GraphAccessToken is deprecated.
233-
234-
```yaml
235-
Type: System.String
236-
Parameter Sets: (All)
237-
Aliases:
238-
239-
Required: False
240-
Position: 7
209+
Position: 8
241210
Default value: None
242211
Accept pipeline input: False
243212
Accept wildcard characters: False
@@ -260,14 +229,14 @@ Accept wildcard characters: False
260229
261230
### -Region
262231
Specifies the Region to create the resource.
263-
Default is EastUS.
232+
Region is a Mandatory parameter.
264233
265234
```yaml
266235
Type: System.String
267236
Parameter Sets: (All)
268237
Aliases:
269238

270-
Required: False
239+
Required: True
271240
Position: 1
272241
Default value: None
273242
Accept pipeline input: False
@@ -325,7 +294,7 @@ Accept wildcard characters: False
325294
326295
### -SubscriptionId
327296
Specifies the Azure Subscription to create the resource.
328-
This is the only Mandatory parameter.
297+
SubscriptionId is a Mandatory parameter.
329298
330299
```yaml
331300
Type: System.String

src/StackHCI/docs/Remove-AzStackHciArcSetting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ Accept wildcard characters: False
7070
```
7171
7272
### -DefaultProfile
73-
The credentials, account, tenant, and subscription used for communication with Azure.
73+
The DefaultProfile parameter is not functional.
74+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
7475
7576
```yaml
7677
Type: System.Management.Automation.PSObject

src/StackHCI/docs/Remove-AzStackHciCluster.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ Accept wildcard characters: False
5454
```
5555
5656
### -DefaultProfile
57-
The credentials, account, tenant, and subscription used for communication with Azure.
57+
The DefaultProfile parameter is not functional.
58+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
5859
5960
```yaml
6061
Type: System.Management.Automation.PSObject

src/StackHCI/docs/Remove-AzStackHciExtension.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ Accept wildcard characters: False
9292
```
9393
9494
### -DefaultProfile
95-
The credentials, account, tenant, and subscription used for communication with Azure.
95+
The DefaultProfile parameter is not functional.
96+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
9697
9798
```yaml
9899
Type: System.Management.Automation.PSObject

src/StackHCI/docs/Set-AzStackHCI.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Set-AzStackHCI modifies resource properties of the Microsoft.AzureStackHCI cloud
1515
```
1616
Set-AzStackHCI [[-ComputerName] <String>] [-AccountId <String>] [-ArmAccessToken <String>]
1717
[-Credential <PSCredential>] [-DiagnosticLevel <DiagnosticLevel>] [-EnableWSSubscription <Boolean>]
18-
[-EnvironmentName <String>] [-Force] [-GraphAccessToken <String>] [-ResourceId <String>] [-TenantId <String>]
19-
[-UseDeviceAuthentication] [-Confirm] [-WhatIf] [<CommonParameters>]
18+
[-EnvironmentName <String>] [-Force] [-ResourceId <String>] [-TenantId <String>] [-UseDeviceAuthentication]
19+
[-Confirm] [-WhatIf] [<CommonParameters>]
2020
```
2121

2222
## DESCRIPTION
@@ -174,21 +174,6 @@ Accept pipeline input: False
174174
Accept wildcard characters: False
175175
```
176176
177-
### -GraphAccessToken
178-
GraphAccessToken is deprecated.
179-
180-
```yaml
181-
Type: System.String
182-
Parameter Sets: (All)
183-
Aliases:
184-
185-
Required: False
186-
Position: Named
187-
Default value: None
188-
Accept pipeline input: False
189-
Accept wildcard characters: False
190-
```
191-
192177
### -ResourceId
193178
Specifies the fully qualified resource ID, including the subscription, as in the following example: `/Subscriptions/`subscription ID`/providers/Microsoft.AzureStackHCI/clusters/MyCluster`
194179

0 commit comments

Comments
 (0)