Skip to content
Open
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
5 changes: 2 additions & 3 deletions src/StackHCI/StackHCI.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StackHci")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.6.6")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.6.6")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.7.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.7.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

44 changes: 33 additions & 11 deletions src/StackHCI/StackHCI.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ subject-prefix: $(service-name)

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 All @@ -80,14 +74,24 @@ directive:
set:
subject: ConsentAndInstallDefaultExtension
# Remove the unexpanded parameter set
# Generate Create variant for "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/createArcIdentity"
- where:
subject: ArcSetting$|Cluster|DeploymentSetting|EdgeDevice|Extension|SecuritySetting|Update$|UpdateRun|UpdateSummary
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$
remove: true
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
subject: ExtendClusterSoftwareAssuranceBenefit
variant: ^(Extend)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
subject: EdgeDevice
variant: ^(Validate)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
verb: Set
subject: Workspace
remove: true
# Remove Update-AzStackHciExtension
# Remove Update-AzStackHciExtension
- where:
verb: Update
subject: Extension
Expand All @@ -112,11 +116,11 @@ directive:
verb: New
subject: ArcSettingPassword
remove: true
# Remove Update-AzStackHciArcSetting
# Remove Update (Get-Put) commands and use set cmdlets.
- where:
verb: Update
subject: ArcSetting
remove: true
subject: ArcSetting|DeploymentSetting|EdgeDevice|SecuritySetting|Update$|UpdateRun|UpdateSummary
remove: true
# Hide aadClientId from Update-AzStackHCICluster
- where:
verb: Update
Expand Down Expand Up @@ -208,6 +212,24 @@ directive:
- ResourceGroupName
labels:
ResourceGroupName: Resource Group
- from: source-file-csharp
where: $
transform: $ = $.replace(/"Get the get run for a specified update"/g, '"Get the Update run for a specified update"');
- from: source-file-csharp
where: $
transform: $ = $.replace(/"Get all get summaries under the HCI cluster"/g, '"Get all Update summaries under the HCI cluster"');
Comment on lines +215 to +220
- from: source-file-csharp
where: $
transform: $ = $.replace(/"Delete specified delete Run"/g, '"Delete specified Update Run"');
- from: source-file-csharp
where: $
transform: $ = $.replace(/"Delete delete Summaries"/g, '"Delete Update Summaries"');
- from: source-file-csharp
where: $
transform: $ = $.replace(/"Put put runs for a specified update"/g, '"Put Update runs for a specified update"');
- from: source-file-csharp
where: $
transform: $ = $.replace(/"Put put summaries under the HCI cluster"/g, '"Put Update summaries under the HCI cluster"');
- where:
verb: Get|New
subject: ArcSetting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,44 +81,6 @@
}
]
},
{
"name": "Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit",
"description": "Extends Software Assurance Benefit to a cluster",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/extendSoftwareAssuranceBenefit",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci/invoke-azstackhciextendclustersoftwareassurancebenefit"
},
"parameterSets": [
{
"parameters": [
"-ClusterName <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Extends Software Assurance Benefit to a cluster",
"parameters": [
{
"name": "-ClusterName",
"value": "[Path.clusterName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Remove-AzStackHciCluster",
"description": "Delete an HCI cluster.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,39 +70,6 @@
]
}
]
},
{
"name": "Test-AzStackHciEdgeDevice",
"description": "A long-running resource action.",
"path": "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}/validate",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.stackhci/test-azstackhciedgedevice"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceUri <String>"
]
}
]
},
"examples": [
{
"description": "A long-running resource action.",
"parameters": [
{
"name": "-Name",
"value": "[Path.edgeDeviceName]"
},
{
"name": "-ResourceUri",
"value": "[Path.resourceUri]"
}
]
}
]
}
]
}
11 changes: 7 additions & 4 deletions src/StackHCI/StackHCI.Autorest/docs/Az.StackHCI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.StackHCI
Module Guid: ed069c15-afdb-4020-9677-d3db308109f7
Module Guid: a5fe8ba1-f96d-48b0-b683-2c52599b2b00
Download Help Link: https://learn.microsoft.com/powershell/module/az.stackhci
Help Version: 1.0.0.0
Locale: en-US
Expand Down Expand Up @@ -80,6 +80,9 @@ Apply Update
### [New-AzStackHciArcSetting](New-AzStackHciArcSetting.md)
Create ArcSetting for HCI cluster.

### [New-AzStackHciArcSettingIdentity](New-AzStackHciArcSettingIdentity.md)
Create Aad identity for arc settings.

### [New-AzStackHciCluster](New-AzStackHciCluster.md)
Create an HCI cluster.

Expand Down Expand Up @@ -135,13 +138,13 @@ Remove-AzStackHCIVMAttestation removes guests from AzureStack HCI IMDS Attestati
Set-AzStackHCI modifies resource properties of the Microsoft.AzureStackHCI cloud resource representing the on-premises cluster to enable or disable features.

### [Set-AzStackHciDeploymentSetting](Set-AzStackHciDeploymentSetting.md)
Create a DeploymentSetting
Update a DeploymentSetting

### [Set-AzStackHciEdgeDevice](Set-AzStackHciEdgeDevice.md)
Create a EdgeDevice
Update a EdgeDevice

### [Set-AzStackHciSecuritySetting](Set-AzStackHciSecuritySetting.md)
Create a security setting
Update a security setting

### [Set-AzStackHciUpdate](Set-AzStackHciUpdate.md)
Put specified Update
Expand Down
26 changes: 23 additions & 3 deletions src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHciArcSetting.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ Get-AzStackHciArcSetting -ClusterName <String> -Name <String> -ResourceGroupName
Get-AzStackHciArcSetting -InputObject <IStackHciIdentity> [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### GetViaIdentityCluster
```
Get-AzStackHciArcSetting -ClusterInputObject <IStackHciIdentity> -Name <String> [-DefaultProfile <PSObject>]
[<CommonParameters>]
```

## DESCRIPTION
Get ArcSetting resource details of HCI Cluster.

Expand All @@ -50,6 +56,21 @@ To see the details use : "Write-Host( $arcSettings | Format-List | Out-String)"

## PARAMETERS

### -ClusterInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IStackHciIdentity
Parameter Sets: GetViaIdentityCluster
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -ClusterName
The name of the cluster.

Expand Down Expand Up @@ -83,7 +104,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IStackHciIdentity
Expand All @@ -102,7 +122,7 @@ The name of the proxy resource holding details of HCI ArcSetting information.

```yaml
Type: System.String
Parameter Sets: Get
Parameter Sets: Get, GetViaIdentityCluster
Aliases: ArcSettingName

Required: True
Expand Down Expand Up @@ -153,7 +173,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.Api20240401.IArcSetting
### Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IArcSetting

## NOTES

Expand Down
3 changes: 1 addition & 2 deletions src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHciCluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IStackHciIdentity
Expand Down Expand Up @@ -158,7 +157,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.Api20240401.ICluster
### Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.ICluster

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Get-AzStackHciDeploymentSetting -InputObject <IStackHciIdentity> [-DefaultProfil
[<CommonParameters>]
```

### GetViaIdentityCluster
```
Get-AzStackHciDeploymentSetting -ClusterInputObject <IStackHciIdentity> -SName <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Get a DeploymentSetting

Expand All @@ -50,6 +56,21 @@ Gets the deployment setting in the cluster

## PARAMETERS

### -ClusterInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IStackHciIdentity
Parameter Sets: GetViaIdentityCluster
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -ClusterName
The name of the cluster.

Expand Down Expand Up @@ -83,7 +104,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IStackHciIdentity
Expand Down Expand Up @@ -118,7 +138,7 @@ Name of Deployment Setting

```yaml
Type: System.String
Parameter Sets: Get
Parameter Sets: Get, GetViaIdentityCluster
Aliases: DeploymentSettingsName

Required: True
Expand Down Expand Up @@ -153,7 +173,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.Api20240401.IDeploymentSetting
### Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IDeploymentSetting

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IStackHciIdentity
Expand Down Expand Up @@ -119,7 +118,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.Api20240401.IEdgeDevice
### Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Models.IEdgeDevice

## NOTES

Expand Down
Loading
Loading