Skip to content

Commit c98ddaf

Browse files
BethanyZhouSirfame Lin
andauthored
Renaming Set-AzVmSecurityType & Set-AzVmssSecurityType to Set-AzVmSecurityProfile & Set-AzVmssSecurityProfile (#14709)
Force merge due to known issue on Linux * Renaming compute cmdlets set-securitytype to set-securityprofile * Updating mappings.json to reflect Set-SecurityType -> Set-SecurityProfile * Updating SignatureIssues SecurityType -> SecurityProfile Co-authored-by: Sirfame Lin <[email protected]>
1 parent 2e210a4 commit c98ddaf

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

src/Accounts/Accounts/AzureRmAlias/Mappings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@
520520
"Remove-AzVmssDataDisk": "Remove-AzureRmVmssDataDisk",
521521
"Remove-AzVmssNetworkInterfaceConfiguration": "Remove-AzureRmVmssNetworkInterfaceConfiguration",
522522
"Set-AzVmssOsProfile": "Set-AzureRmVmssOsProfile",
523-
"Set-AzVmssSecurityType": "Set-AzureRmVmssSecurityType",
523+
"Set-AzVmssSecurityProfile": "Set-AzureRmVmssSecurityProfile",
524524
"Set-AzVmssUefi": "Set-AzureRmVmssUefi",
525525
"Set-AzVmssStorageProfile": "Set-AzureRmVmssStorageProfile",
526526
"New-AzVmss": "New-AzureRmVmss",

src/Compute/Compute/Az.Compute.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ CmdletsToExport = 'Remove-AzAvailabilitySet', 'Get-AzAvailabilitySet',
100100
'Add-AzVMSshPublicKey', 'Add-AzVMSecret', 'Remove-AzVMSecret',
101101
'Remove-AzVMNetworkInterface', 'Remove-AzVMDataDisk',
102102
'Set-AzVMBootDiagnostic', 'Set-AzVMDataDisk', 'Set-AzVMPlan',
103-
'Set-AzVMSourceImage', 'Set-AzVMOSDisk', 'Set-AzVmSecurityType', 'Set-AzVmUefi',
103+
'Set-AzVMSourceImage', 'Set-AzVMOSDisk', 'Set-AzVmSecurityProfile', 'Set-AzVmUefi',
104104
'Get-AzVMBootDiagnosticsData', 'Get-AzVM', 'Update-AzVM',
105105
'Restart-AzVM', 'New-AzVM', 'Start-AzVM', 'Stop-AzVM', 'Remove-AzVM',
106106
'New-AzVMConfig', 'Set-AzVMOperatingSystem', 'Add-AzVMDataDisk',
@@ -112,7 +112,7 @@ CmdletsToExport = 'Remove-AzAvailabilitySet', 'Get-AzAvailabilitySet',
112112
'New-AzVmssConfig', 'New-AzVmssIpConfig',
113113
'New-AzVmssVaultCertificateConfig', 'Remove-AzVmssExtension',
114114
'Remove-AzVmssDataDisk',
115-
'Remove-AzVmssNetworkInterfaceConfiguration', 'Set-AzVmssOsProfile', 'Set-AzVmssSecurityType', 'Set-AzVmssUefi',
115+
'Remove-AzVmssNetworkInterfaceConfiguration', 'Set-AzVmssOsProfile', 'Set-AzVmssSecurityProfile', 'Set-AzVmssUefi',
116116
'Set-AzVmssStorageProfile', 'New-AzVmss', 'Update-AzVmss',
117117
'Stop-AzVmss', 'Remove-AzVmss', 'Get-AzVmss', 'Get-AzVmssSku',
118118
'Set-AzVmss', 'Restart-AzVmss', 'Start-AzVmss', 'Update-AzVmssInstance',

src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/SetAzureRmVmssSecurityTypeCommand.cs renamed to src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/SetAzureRmVmssSecurityProfileCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssSecurityType")]
33+
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssSecurityProfile")]
3434
[OutputType(typeof(PSVirtualMachineScaleSet))]
35-
public partial class SetAzureRmVmssSecurityTypeCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
35+
public partial class SetAzureRmVmssSecurityProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3636
{
3737
[Parameter(
3838
Mandatory = true,

src/Compute/Compute/VirtualMachine/Config/SetAzureVMSecurityType.cs renamed to src/Compute/Compute/VirtualMachine/Config/SetAzureVMSecurityProfile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
namespace Microsoft.Azure.Commands.Compute
2525
{
26-
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VMSecurityType"), OutputType(typeof(PSVirtualMachine))]
27-
public class SetAzureVMSecurityType : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
26+
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VMSecurityProfile"), OutputType(typeof(PSVirtualMachine))]
27+
public class SetAzureVMSecurityProfile : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
2828
{
2929
[Alias("VMProfile")]
3030
[Parameter(

src/Compute/Compute/help/Set-AzVMSecurityType.md renamed to src/Compute/Compute/help/Set-AzVMSecurityProfile.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml
33
Module Name: Az.Compute
4-
online version: https://docs.microsoft.com/powershell/module/az.compute/set-azvmsecuritytype
4+
online version: https://docs.microsoft.com/powershell/module/az.compute/set-azvmsecurityprofile
55
schema: 2.0.0
66
---
77

8-
# Set-AzVMSecurityType
8+
# Set-AzVMSecurityProfile
99

1010
## SYNOPSIS
11-
This cmdlet allows users to set the SecurityType enum for Virtual Machines.
11+
Sets the SecurityType enum for Virtual Machines.
1212

1313
## SYNTAX
1414

1515
```
16-
Set-AzVMSecurityType [-VM] <PSVirtualMachine> [-SecurityType <SecurityTypes>]
16+
Set-AzVMSecurityProfile [-VM] <PSVirtualMachine> [-SecurityType <SecurityTypes>]
1717
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1818
```
1919

2020
## DESCRIPTION
21-
The **Set-AzVmSecurityType** cmdlet sets the Security Type of the VM
21+
The **Set-AzVmSecurityProfile** cmdlet sets the Security Type of the VM
2222

2323
## EXAMPLES
2424

2525
### Example 1
2626
```powershell
2727
PS C:\> $VM = Get-AzVM -ResourceGroupName "ResourceGroup11" -VMName "ContosoVM07"
28-
PS C:\> $VM = Set-AzVmSecurityType -VM $VM -SecurityType "TrustedLaunch"
28+
PS C:\> $VM = Set-AzVmSecurityProfile -VM $VM -SecurityType "TrustedLaunch"
2929
```
3030

3131
The first command gets the virtual machine named ContosoVM07 by using **Get-AzVm**.

src/Compute/Compute/help/Set-AzVmssSecurityType.md renamed to src/Compute/Compute/help/Set-AzVmssSecurityProfile.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml
33
Module Name: Az.Compute
4-
online version: https://docs.microsoft.com/powershell/module/az.compute/set-azvmsssecuritytype
4+
online version: https://docs.microsoft.com/powershell/module/az.compute/set-azvmsssecurityprofile
55
schema: 2.0.0
66
---
77

8-
# Set-AzVmssSecurityType
8+
# Set-AzVmssSecurityProfile
99

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

1313
## SYNTAX
1414

1515
```
16-
Set-AzVmssSecurityType [-VirtualMachineScaleSet] <PSVirtualMachineScaleSet> [[-SecurityType] <SecurityTypes>]
16+
Set-AzVmssSecurityProfile [-VirtualMachineScaleSet] <PSVirtualMachineScaleSet> [[-SecurityType] <SecurityTypes>]
1717
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1818
```
1919

2020
## DESCRIPTION
21-
The **Set-AzVmssSecurityType** cmdlet sets the Security Type of the VMSS
21+
Sets the Security Type of the VMSS
2222

2323
## EXAMPLES
2424

2525
### Example 1
2626
```powershell
2727
PS C:\> $VMSS = Get-AzVmss -ResourceGroupName "ResourceGroup11" -VMScaleSetName "ContosoVM07"
28-
PS C:\> $VMSS = Set-AzVmssSecurityType -VirtualMachineScaleSet $VMSS -SecurityType "TrustedLaunch"
28+
PS C:\> $VMSS = Set-AzVmssSecurityProfile -VirtualMachineScaleSet $VMSS -SecurityType "TrustedLaunch"
2929
```
3030

3131
The first command gets the virtual machine scale set named ContosoVM07 by using **Get-AzVmss**.

tools/StaticAnalysis/Exceptions/Az.Compute/SignatureIssues.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"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."
141141
"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."
142142
"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."
143-
"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"
143+
"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"
144144
"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"
145-
"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"
145+
"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"
146146
"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"

0 commit comments

Comments
 (0)