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
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/AzureRmAlias/Mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
"Remove-AzVmssDataDisk": "Remove-AzureRmVmssDataDisk",
"Remove-AzVmssNetworkInterfaceConfiguration": "Remove-AzureRmVmssNetworkInterfaceConfiguration",
"Set-AzVmssOsProfile": "Set-AzureRmVmssOsProfile",
"Set-AzVmssSecurityType": "Set-AzureRmVmssSecurityType",
"Set-AzVmssSecurityProfile": "Set-AzureRmVmssSecurityProfile",
"Set-AzVmssUefi": "Set-AzureRmVmssUefi",
"Set-AzVmssStorageProfile": "Set-AzureRmVmssStorageProfile",
"New-AzVmss": "New-AzureRmVmss",
Expand Down
4 changes: 2 additions & 2 deletions src/Compute/Compute/Az.Compute.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ CmdletsToExport = 'Remove-AzAvailabilitySet', 'Get-AzAvailabilitySet',
'Add-AzVMSshPublicKey', 'Add-AzVMSecret', 'Remove-AzVMSecret',
'Remove-AzVMNetworkInterface', 'Remove-AzVMDataDisk',
'Set-AzVMBootDiagnostic', 'Set-AzVMDataDisk', 'Set-AzVMPlan',
'Set-AzVMSourceImage', 'Set-AzVMOSDisk', 'Set-AzVmSecurityType', 'Set-AzVmUefi',
'Set-AzVMSourceImage', 'Set-AzVMOSDisk', 'Set-AzVmSecurityProfile', 'Set-AzVmUefi',
'Get-AzVMBootDiagnosticsData', 'Get-AzVM', 'Update-AzVM',
'Restart-AzVM', 'New-AzVM', 'Start-AzVM', 'Stop-AzVM', 'Remove-AzVM',
'New-AzVMConfig', 'Set-AzVMOperatingSystem', 'Add-AzVMDataDisk',
Expand All @@ -112,7 +112,7 @@ CmdletsToExport = 'Remove-AzAvailabilitySet', 'Get-AzAvailabilitySet',
'New-AzVmssConfig', 'New-AzVmssIpConfig',
'New-AzVmssVaultCertificateConfig', 'Remove-AzVmssExtension',
'Remove-AzVmssDataDisk',
'Remove-AzVmssNetworkInterfaceConfiguration', 'Set-AzVmssOsProfile', 'Set-AzVmssSecurityType', 'Set-AzVmssUefi',
'Remove-AzVmssNetworkInterfaceConfiguration', 'Set-AzVmssOsProfile', 'Set-AzVmssSecurityProfile', 'Set-AzVmssUefi',
'Set-AzVmssStorageProfile', 'New-AzVmss', 'Update-AzVmss',
'Stop-AzVmss', 'Remove-AzVmss', 'Get-AzVmss', 'Get-AzVmssSku',
'Set-AzVmss', 'Restart-AzVmss', 'Start-AzVmss', 'Update-AzVmssInstance',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssSecurityType")]
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssSecurityProfile")]
[OutputType(typeof(PSVirtualMachineScaleSet))]
public partial class SetAzureRmVmssSecurityTypeCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public partial class SetAzureRmVmssSecurityProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

namespace Microsoft.Azure.Commands.Compute
{
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VMSecurityType"), OutputType(typeof(PSVirtualMachine))]
public class SetAzureVMSecurityType : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VMSecurityProfile"), OutputType(typeof(PSVirtualMachine))]
public class SetAzureVMSecurityProfile : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Alias("VMProfile")]
[Parameter(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml
Module Name: Az.Compute
online version: https://docs.microsoft.com/powershell/module/az.compute/set-azvmsecuritytype
online version: https://docs.microsoft.com/powershell/module/az.compute/set-azvmsecurityprofile
schema: 2.0.0
---

# Set-AzVMSecurityType
# Set-AzVMSecurityProfile

## SYNOPSIS
This cmdlet allows users to set the SecurityType enum for Virtual Machines.
Sets the SecurityType enum for Virtual Machines.

## SYNTAX

```
Set-AzVMSecurityType [-VM] <PSVirtualMachine> [-SecurityType <SecurityTypes>]
Set-AzVMSecurityProfile [-VM] <PSVirtualMachine> [-SecurityType <SecurityTypes>]
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
```

## DESCRIPTION
The **Set-AzVmSecurityType** cmdlet sets the Security Type of the VM
The **Set-AzVmSecurityProfile** cmdlet sets the Security Type of the VM

## EXAMPLES

### Example 1
```powershell
PS C:\> $VM = Get-AzVM -ResourceGroupName "ResourceGroup11" -VMName "ContosoVM07"
PS C:\> $VM = Set-AzVmSecurityType -VM $VM -SecurityType "TrustedLaunch"
PS C:\> $VM = Set-AzVmSecurityProfile -VM $VM -SecurityType "TrustedLaunch"
```

The first command gets the virtual machine named ContosoVM07 by using **Get-AzVm**.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml
Module Name: Az.Compute
online version: https://docs.microsoft.com/powershell/module/az.compute/set-azvmsssecuritytype
online version: https://docs.microsoft.com/powershell/module/az.compute/set-azvmsssecurityprofile
schema: 2.0.0
---

# Set-AzVmssSecurityType
# Set-AzVmssSecurityProfile

## SYNOPSIS
This cmdlet allows users to set the SecurityType enum for Virtual Machines scale sets.

## SYNTAX

```
Set-AzVmssSecurityType [-VirtualMachineScaleSet] <PSVirtualMachineScaleSet> [[-SecurityType] <SecurityTypes>]
Set-AzVmssSecurityProfile [-VirtualMachineScaleSet] <PSVirtualMachineScaleSet> [[-SecurityType] <SecurityTypes>]
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
```

## DESCRIPTION
The **Set-AzVmssSecurityType** cmdlet sets the Security Type of the VMSS
Sets the Security Type of the VMSS

## EXAMPLES

### Example 1
```powershell
PS C:\> $VMSS = Get-AzVmss -ResourceGroupName "ResourceGroup11" -VMScaleSetName "ContosoVM07"
PS C:\> $VMSS = Set-AzVmssSecurityType -VirtualMachineScaleSet $VMSS -SecurityType "TrustedLaunch"
PS C:\> $VMSS = Set-AzVmssSecurityProfile -VirtualMachineScaleSet $VMSS -SecurityType "TrustedLaunch"
```

The first command gets the virtual machine scale set named ContosoVM07 by using **Get-AzVmss**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"Microsoft.Azure.PowerShell.Cmdlets.Compute.dll","Microsoft.Azure.Commands.Compute.SetAzureVMOperatingSystemCommand","Set-AzVMOperatingSystem","1","8700","Parameter set 'WindowsWinRmHttps', 'WindowsDisableVMAgentWinRmHttps' of cmdlet 'Set-AzVMOperatingSystem' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set."
"Microsoft.Azure.PowerShell.Cmdlets.Compute.dll","Microsoft.Azure.Commands.Compute.SetAzureVMOSDiskCommand","Set-AzVMOSDisk","1","8700","Parameter set '__AllParameterSets', 'WindowsParamSet', 'LinuxParamSet' of cmdlet 'Set-AzVMOSDisk' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set."
"Microsoft.Azure.PowerShell.Cmdlets.Compute.dll","Microsoft.Azure.Commands.Compute.SetAzureVMOSDiskCommand","Set-AzVMOSDisk","1","8700","Parameter set 'WindowsDiskEncryptionParameterSet', 'LinuxDiskEncryptionParameterSet' of cmdlet 'Set-AzVMOSDisk' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set."
"Microsoft.Azure.PowerShell.Cmdlets.Compute.dll","Microsoft.Azure.Commands.Compute.SetAzureVMSecurityType","Set-AzVMSecurityType","1","8100","Set-AzVMSecurityType Does not support ShouldProcess but the cmdlet verb Set indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
"Microsoft.Azure.PowerShell.Cmdlets.Compute.dll","Microsoft.Azure.Commands.Compute.SetAzureVMSecurityProfile","Set-AzVMSecurityProfile","1","8100","Set-AzVMSecurityProfile Does not support ShouldProcess but the cmdlet verb Set indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
"Microsoft.Azure.PowerShell.Cmdlets.Compute.dll","Microsoft.Azure.Commands.Compute.SetAzureVMUefi","Set-AzVMUefi","1","8100","Set-AzVMUefi Does not support ShouldProcess but the cmdlet verb Set indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
"Microsoft.Azure.PowerShell.Cmdlets.Compute.dll","Microsoft.Azure.Commands.Compute.Automation.SetAzureRmVmssSecurityTypeCommand","Set-AzVmssSecurityType","1","8100","Set-AzVmssSecurityType Does not support ShouldProcess but the cmdlet verb Set indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
"Microsoft.Azure.PowerShell.Cmdlets.Compute.dll","Microsoft.Azure.Commands.Compute.Automation.SetAzureRmVmssSecurityProfileCommand","Set-AzVmssSecurityProfile","1","8100","Set-AzVmssSecurityProfile Does not support ShouldProcess but the cmdlet verb Set indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
"Microsoft.Azure.PowerShell.Cmdlets.Compute.dll","Microsoft.Azure.Commands.Compute.Automation.SetAzureRmVmssUefiCommand","Set-AzVmssUefi","1","8100","Set-AzVmssUefi Does not support ShouldProcess but the cmdlet verb Set indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"