Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions src/StackHCI/StackHCI.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"autorest_core": "3.9.7",
"node": "v14.15.5",
"autorest_powershell": "3.0.512",
"autorest_core": "3.9.7",
"autorest_modelerfour": "4.15.414",
"autorest": "`-- (empty)",
"swagger_commit": "11bbc2b1df2e915a2227a6a1a48a27b9e67c3311"
"swagger_commit": "4a361fccb94e82da94a239d3563f1e3e3b9d007d",
"autorest": "`-- (empty)"
}
6 changes: 6 additions & 0 deletions src/StackHCI/StackHCI.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StackHCI.Autorest", "StackH
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StackHCI", "StackHCI\StackHCI.csproj", "{076C5B97-2EE6-4553-91F8-31FF721E4CEE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.StackHCIVm", "StackHCIVm.Autorest\Az.StackHCIVm.csproj", "{AAFE074D-EAE9-4FC9-834A-8B42ED5DCE44}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -60,5 +62,9 @@ Global
{076C5B97-2EE6-4553-91F8-31FF721E4CEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{076C5B97-2EE6-4553-91F8-31FF721E4CEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{076C5B97-2EE6-4553-91F8-31FF721E4CEE}.Release|Any CPU.Build.0 = Release|Any CPU
{AAFE074D-EAE9-4FC9-834A-8B42ED5DCE44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AAFE074D-EAE9-4FC9-834A-8B42ED5DCE44}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AAFE074D-EAE9-4FC9-834A-8B42ED5DCE44}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AAFE074D-EAE9-4FC9-834A-8B42ED5DCE44}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
34 changes: 30 additions & 4 deletions src/StackHCI/StackHCI/Az.StackHCI.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.1'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'StackHCI.Autorest/bin/Az.StackHCI.private.dll',
'StackHCI.Autorest\bin\Az.StackHCI.private.dll'
'StackHCI.Autorest\bin\Az.StackHCI.private.dll',
'StackHCIVm.Autorest\bin\Az.StackHCIVm.private.dll'

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
Expand All @@ -65,11 +66,13 @@ RequiredAssemblies = 'StackHCI.Autorest/bin/Az.StackHCI.private.dll',

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = 'StackHCI.Autorest/Az.StackHCI.format.ps1xml',
'StackHCI.Autorest\Az.StackHCI.format.ps1xml'
'StackHCI.Autorest\Az.StackHCI.format.ps1xml',
'StackHCIVm.Autorest\Az.StackHCIVm.format.ps1xml'

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
NestedModules = @('StackHCI.Autorest/Az.StackHCI.psm1',
'StackHCI.Autorest\Az.StackHCI.psm1')
'StackHCI.Autorest\Az.StackHCI.psm1',
'StackHCIVm.Autorest\Az.StackHCIVm.psm1')

# 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.
FunctionsToExport = 'Add-AzStackHCIVMAttestation', 'Disable-AzStackHCIAttestation',
Expand All @@ -86,7 +89,30 @@ FunctionsToExport = 'Add-AzStackHCIVMAttestation', 'Disable-AzStackHCIAttestatio
'Remove-AzStackHciArcSetting', 'Remove-AzStackHciCluster',
'Remove-AzStackHciExtension', 'Remove-AzStackHCIRemoteSupport',
'Remove-AzStackHCIVMAttestation', 'Set-AzStackHCI',
'Unregister-AzStackHCI', 'Update-AzStackHciCluster'
'Unregister-AzStackHCI', 'Update-AzStackHciCluster',
'Add-AzStackHCIVmVirtualMachineDataDisk',
'Add-AzStackHCIVmVirtualMachineNetworkInterface',
'Get-AzStackHCIVmImage', 'Get-AzStackHCIVmLogicalNetwork',
'Get-AzStackHCIVmNetworkInterface', 'Get-AzStackHCIVmStoragePath',
'Get-AzStackHCIVmVirtualHardDisk', 'Get-AzStackHCIVmVirtualMachine',
'New-AzStackHCIVmImage', 'New-AzStackHCIVmLogicalNetwork',
'New-AzStackHCIVmNetworkInterface', 'New-AzStackHCIVmStoragePath',
'New-AzStackHCIVmVirtualHardDisk', 'New-AzStackHCIVmVirtualMachine',
'Remove-AzStackHCIVmImage', 'Remove-AzStackHCIVmLogicalNetwork',
'Remove-AzStackHCIVmNetworkInterface',
'Remove-AzStackHCIVmStoragePath',
'Remove-AzStackHCIVmVirtualHardDisk',
'Remove-AzStackHCIVmVirtualMachine',
'Remove-AzStackHCIVmVirtualMachineDataDisk',
'Remove-AzStackHCIVmVirtualMachineNetworkInterface',
'Restart-AzStackHCIVmVirtualMachine',
'Start-AzStackHCIVmVirtualMachine',
'Stop-AzStackHCIVmVirtualMachine', 'Update-AzStackHCIVmImage',
'Update-AzStackHCIVmLogicalNetwork',
'Update-AzStackHCIVmNetworkInterface',
'Update-AzStackHCIVmStoragePath',
'Update-AzStackHCIVmVirtualHardDisk',
'Update-AzStackHCIVmVirtualMachine'

# 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.
CmdletsToExport = @()
Expand Down
196 changes: 196 additions & 0 deletions src/StackHCI/StackHCI/help/Add-AzStackHCIVmVirtualMachineDataDisk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
---
external help file: Az.StackHCI-help.xml
Module Name: Az.StackHCI
online version: https://learn.microsoft.com/powershell/module/az.stackhci/add-azstackhcivmvirtualmachinedatadisk
schema: 2.0.0
---

# Add-AzStackHCIVmVirtualMachineDataDisk

## SYNOPSIS
The operation to add a data disk to a virtual machine.

## SYNTAX

### ByResourceId (Default)
```
Add-AzStackHCIVmVirtualMachineDataDisk -ResourceId <String> [-DataDiskId <String[]>] [-DataDiskName <String[]>]
[-DataDiskResourceGroup <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### ByName
```
Add-AzStackHCIVmVirtualMachineDataDisk -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
[-DataDiskId <String[]>] [-DataDiskName <String[]>] [-DataDiskResourceGroup <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

## DESCRIPTION
The operation to add a data disk to a virtual machine.

## EXAMPLES

### Example 1: Add a Data Disk to a Virtual Machine
```powershell
Add-AzStackHCIVmVirtualMachineDataDisk -Name 'testVm' -ResourceGroupName 'test-rg' -DataDiskName 'testVhd'
```

```output
Name ResourceGroupName
---- -----------------
testVm test-rg
```

This command attaches a data disk to the virtual machine in the specified resource group.

## PARAMETERS

### -DataDiskId
List of data disks to be attached to the virtual machine passed in Id format

```yaml
Type: System.String[]
Parameter Sets: (All)
Aliases:

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

### -DataDiskName
List of data disks to be attached to the virtual machine passed by Name

```yaml
Type: System.String[]
Parameter Sets: (All)
Aliases:

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

### -DataDiskResourceGroup
Resource Group of the Data Disks

```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

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

### -Name
Name of the virtual machine

```yaml
Type: System.String
Parameter Sets: ByName
Aliases: VirtualMachineName

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

### -ResourceGroupName
The name of the resource group.
The name is case insensitive.

```yaml
Type: System.String
Parameter Sets: ByName
Aliases:

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

### -ResourceId
The ARM Resource ID of the VM

```yaml
Type: System.String
Parameter Sets: ByResourceId
Aliases:

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

### -SubscriptionId
The ID of the target subscription.

```yaml
Type: System.String
Parameter Sets: ByName
Aliases:

Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
```

### -Confirm
Prompts you for confirmation before running the cmdlet.

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

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

### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.

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

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

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.StackHCIVm.Models.Api20230901Preview.IVirtualMachineInstance

## NOTES

## RELATED LINKS
Loading