Skip to content

Commit d502c46

Browse files
authored
Merge branch 'master' into master
2 parents 32314a2 + 1cf4a08 commit d502c46

File tree

185 files changed

+234445
-15852
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+234445
-15852
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77
## Checklist
88

9-
- [ ] I have read the [_Submitting Changes_](https://github.com/Azure/azure-powershell/blob/master/CONTRIBUTING.md#submitting-changes) section of [`CONTRIBUTING.md`](https://github.com/Azure/azure-powershell/blob/master/CONTRIBUTING.md)
9+
- [ ] I have read the [_Submitting Changes_](../CONTRIBUTING.md#submitting-changes) section of [`CONTRIBUTING.md`](../CONTRIBUTING.md)
1010
- [ ] The title of the PR is clear and informative
11-
- [ ] The appropriate [change log has been updated](https://github.com/Azure/azure-powershell/blob/master/CONTRIBUTING.md#updating-the-change-log)
12-
- [ ] The PR does not introduce [breaking changes](https://github.com/Azure/azure-powershell/blob/master/documentation/breaking-changes/breaking-changes-definition.md)
11+
- [ ] The appropriate `ChangeLog.md` file(s) has been updated:
12+
- For any service, the `ChangeLog.md` file can be found at `src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md`
13+
- A snippet outlining the change(s) made in the PR should be written under the `## Upcoming Release` header -- no new version header should be added
14+
- [ ] The PR does not introduce [breaking changes](../documentation/breaking-changes/breaking-changes-definition.md)
1315
- [ ] If applicable, the changes made in the PR have proper test coverage
1416
- [ ] For public API changes to cmdlets:
15-
- [ ] the changes have gone through a [cmdlet design review](https://github.com/Azure/azure-powershell-cmdlet-review-pr) (Microsoft internal partners only)
16-
- [ ] the cmdlet markdown files were [generated using the `platyPS` module](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/help-generation.md)
17+
- [ ] a cmdlet design review was approved for the changes in [this repository](https://github.com/Azure/azure-powershell-cmdlet-review-pr) (_Microsoft internal only_)
18+
- [ ] the markdown help files have been regenerated using the commands listed [here](../documentation/development-docs/help-generation.md#updating-all-markdown-files-in-a-module)

CONTRIBUTING.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ The following is a list of guidelines that pull requests opened in the Azure Pow
6565
The following guidelines must be followed in **EVERY** pull request that is opened.
6666

6767
- Title of the pull request is clear and informative
68-
- The appropriate `ChangeLog.md` file has been updated with a snippet describing the changes being made
68+
- The appropriate `ChangeLog.md` file(s) has been updated:
69+
- For any service, the `ChangeLog.md` file can be found at `src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md`
70+
- A snippet outlining the change(s) made in the PR should be written under the `## Upcoming Release` header -- no new version header should be added
6971
- There are a [small number of commits](documentation/development-docs/cleaning-up-commits.md) that each have an informative message
7072
- All files shipped with a module should contain a proper Microsoft license header
7173
- For public API changes to cmdlets:
72-
- a cmdlet design review was approved for the changes in [this repository](https://github.com/Azure/azure-powershell-cmdlet-review-pr)
73-
- the markdown help files have been regenerated using the commands listed [here](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/help-generation.md#updating-all-markdown-files-in-a-module)
74+
- a cmdlet design review was approved for the changes in [this repository](https://github.com/Azure/azure-powershell-cmdlet-review-pr) (_Microsoft internal only_)
75+
- the markdown help files have been regenerated using the commands listed [here](documentation/development-docs/help-generation.md#updating-all-markdown-files-in-a-module)
7476

7577
#### Testing guidelines
7678

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
-->
2121
## Upcoming Release
2222
* Fixed miscellaneous typos across module
23+
* Update `-VolumeType` description in `Set-AzVMDiskEncryptionExtension` and `Set-AzVmssDiskEncryptionExtension` reference documentation
2324

2425
## Version 2.4.1
2526
* Add missing properties (ComputerName, OsName, OsVersion and HyperVGeneration) of VM instance view object.

src/Compute/Compute/help/Set-AzVMDiskEncryptionExtension.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,16 @@ Set-AzVMDiskEncryptionExtension [-ResourceGroupName] <String> [-VMName] <String>
4747
```
4848

4949
## DESCRIPTION
50-
The **Set-AzVMDiskEncryptionExtension** cmdlet enables encryption on a running infrastructure as a service (IaaS) virtual machine in Azure.
51-
This cmdlet enables encryption by installing the disk encryption extension on the virtual machine.
52-
53-
The *VolumeType* parameter is required when encrypting Linux virtual machines, and must be set to a value ("Os", "Data", or "All") supported by the Linux distribution. The *VolumeType* parameter can be omitted when encrypting Windows virtual machines.
50+
The **Set-AzVMDiskEncryptionExtension** cmdlet enables encryption on a running infrastructure as a service (IaaS) virtual machine in Azure. It enables encryption by installing the disk encryption extension on the virtual machine.
5451

5552
This cmdlet requires confirmation from the users as one of the steps to enable encryption requires a restart of the virtual machine.
53+
5654
It is advised that you save your work on the virtual machine before you run this cmdlet.
5755

56+
Linux: The **VolumeType** parameter is required when encrypting Linux virtual machines, and must be set to a value ("Os", "Data", or "All") supported by the Linux distribution.
57+
58+
Windows: The **VolumeType** parameter may be omitted, in which case the operation defaults to All; if the VolumeType parameter is present for a Windows virtual machine, it must be set to either All or OS.
59+
5860
## EXAMPLES
5961

6062
### Example 1: Enable encryption
@@ -456,7 +458,7 @@ Accept wildcard characters: False
456458
```
457459
458460
### -Name
459-
Specifies the name of the Azure Resource Manager resource that represents the extension. If the *Name* parameter is omitted, the installed extension will be named “AzureDiskEncryption” on Windows virtual machines and “AzureDiskEncryptionForLinux” on Linux virtual machines.
461+
Specifies the name of the Azure Resource Manager resource that represents the extension. If the *Name* parameter is omitted, the installed extension will be named “AzureDiskEncryption” on Windows virtual machines and “AzureDiskEncryptionForLinux” on Linux virtual machines.
460462
461463
462464
```yaml
@@ -565,10 +567,11 @@ Accept wildcard characters: False
565567
```
566568
567569
### -VolumeType
568-
Specifies the type of virtual machine volumes on which to perform the encryption operation.
569-
Allowed values for Windows virtual machines: All, OS, and Data.
570-
The only allowed value for Linux virtual machines: Data.
571-
The VolumeType parameter is required when encrypting Linux virtual machines, but can be omitted when encrypting Windows virtual machines.
570+
Specifies the type of virtual machine volumes on which to perform encryption operation: OS, Data, or All.
571+
572+
Linux: The **VolumeType** parameter is required when encrypting Linux virtual machines, and must be set to a value ("Os", "Data", or "All") supported by the Linux distribution.
573+
574+
Windows: The **VolumeType** parameter may be omitted, in which case the operation defaults to All; if the VolumeType parameter is present for a Windows virtual machine, it must be set to either All or OS.
572575
573576
```yaml
574577
Type: System.String

src/Compute/Compute/help/Set-AzVmssDiskEncryptionExtension.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Set-AzVmssDiskEncryptionExtension [-ResourceGroupName] <String> [-VMScaleSetName
2424
## DESCRIPTION
2525
The **Set-AzVmssDiskEncryptionExtension** cmdlet enables encryption on a VM scale set. This cmdlet enables encryption by installing the disk encryption extension on the VM scale set.
2626

27-
The *VolumeType* parameter is required when encrypting Linux virtual machines, and must be set to "Data". It can be omitted when encrypting Windows virtual machines.
27+
For Linux virtual machines, the *VolumeType* parameter must be present and must be set to "Data"
2828

2929
## EXAMPLES
3030

@@ -274,7 +274,12 @@ Accept wildcard characters: False
274274
```
275275
276276
### -VolumeType
277-
Type of the volume (OS or Data) on which to perform encryption operation. This parameter is required when encrypting Linux virtual machines, and must be set to a value supported by the Linux distribution. This parameter can be omitted when encrypting Windows virtual machines.
277+
Specifies the type of virtual machine volumes on which to perform encryption operation: OS, Data, or All.
278+
279+
Linux: The **VolumeType** parameter must be present and must be set to Data.
280+
281+
Windows: The **VolumeType** parameter, if present, must be set to either All or OS. If the **VolumeType** parameter is omitted it defaults to "All".
282+
278283
279284
```yaml
280285
Type: System.String

src/DataFactory/DataFactoryV2/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* Fixed miscellaneous typos across module
2424
* Updated ADF .Net SDK version to 4.1.1
2525
* Add parameter "DataProxyIntegrationRuntimeName", "DataProxyStagingLinkedServiceName" and "DataProxyStagingPath" for "Set-AzureRmDataFactoryV2IntegrationRuntime" cmd to enable set up Self-Hosted Integration Runtime as a proxy for SSIS Integration Runtime
26+
* Updated PSTriggerRun to show the triggered pipelines, message and properties, and PSActivityRun to show the activity type
2627

2728
## Version 1.1.3
2829
* Updated ADF .Net SDK version to 4.1.0

src/DataFactory/DataFactoryV2/Models/PSActivityRun.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16+
using System.Collections.Generic;
1617
using Microsoft.Azure.Management.DataFactory.Models;
1718

1819
namespace Microsoft.Azure.Commands.DataFactoryV2.Models
@@ -58,6 +59,14 @@ public string ActivityName
5859
}
5960
}
6061

62+
public string ActivityType
63+
{
64+
get
65+
{
66+
return this.activityRun.ActivityType;
67+
}
68+
}
69+
6170
public string PipelineRunId
6271
{
6372
get
@@ -137,5 +146,13 @@ public object Error
137146
return this.activityRun.Error;
138147
}
139148
}
149+
150+
public IDictionary<string, object> AdditionalProperties
151+
{
152+
get
153+
{
154+
return this.activityRun.AdditionalProperties;
155+
}
156+
}
140157
}
141158
}

src/DataFactory/DataFactoryV2/Models/PSTriggerRun.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16+
using System.Collections.Generic;
1617
using Microsoft.Azure.Management.DataFactory.Models;
1718

1819
namespace Microsoft.Azure.Commands.DataFactoryV2.Models
@@ -81,5 +82,37 @@ public string Status
8182
return this.triggerRun.Status;
8283
}
8384
}
85+
86+
public IDictionary<string, string> TriggeredPipelines
87+
{
88+
get
89+
{
90+
return this.triggerRun.TriggeredPipelines;
91+
}
92+
}
93+
94+
public string Message
95+
{
96+
get
97+
{
98+
return this.triggerRun.Message;
99+
}
100+
}
101+
102+
public IDictionary<string, string> Properties
103+
{
104+
get
105+
{
106+
return this.triggerRun.Properties;
107+
}
108+
}
109+
110+
public IDictionary<string, object> AdditionalProperties
111+
{
112+
get
113+
{
114+
return this.triggerRun.AdditionalProperties;
115+
}
116+
}
84117
}
85118
}

src/NetAppFiles/NetAppFiles.Test/NetAppFiles.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.NetApp" Version="1.0.0" />
14+
<PackageReference Include="Microsoft.Azure.Management.NetApp" Version="1.1.0" />
1515
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.13.0-preview" />
1616
</ItemGroup>
1717

src/NetAppFiles/NetAppFiles.Test/ScenarioTests/VolumeTests.ps1

Lines changed: 68 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ function Test-VolumeCrud
2424
$resourceGroup = Get-ResourceGroupName
2525
$accName = Get-ResourceName
2626
$poolName = Get-ResourceName
27+
$poolName2 = Get-ResourceName
2728
$volName1 = Get-ResourceName
2829
$volName2 = Get-ResourceName
2930
$volName3 = Get-ResourceName
31+
$volName4 = Get-ResourceName
3032
$gibibyte = 1024 * 1024 * 1024
3133
$usageThreshold = 100 * $gibibyte
3234
$doubleUsage = 2 * $usageThreshold
@@ -56,13 +58,32 @@ function Test-VolumeCrud
5658
Nfsv4 = 'false'
5759
AllowedClients = '1.2.3.0/24'
5860
}
59-
61+
$rule3 = @{
62+
RuleIndex = 2
63+
UnixReadOnly = 'false'
64+
UnixReadWrite = 'true'
65+
Cifs = 'false'
66+
Nfsv3 = 'true'
67+
Nfsv4 = 'false'
68+
AllowedClients = '2.3.4.0/24'
69+
}
6070

6171
$exportPolicy = @{
6272
Rules = (
6373
$rule1, $rule2
6474
)
6575
}
76+
77+
$exportPolicyMod = @{
78+
Rules = (
79+
$rule3
80+
)
81+
}
82+
83+
# create the list of protocol types
84+
$protocolTypes = New-Object string[] 2
85+
$protocolTypes[0] = "NFSv3"
86+
$protocolTypes[1] = "NFSv4"
6687

6788
try
6889
{
@@ -83,19 +104,24 @@ function Test-VolumeCrud
83104
# create first volume and check
84105
$newTagName = "tag1"
85106
$newTagValue = "tagValue1"
86-
$retrievedVolume = New-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -Location $resourceLocation -AccountName $accName -PoolName $poolName -VolumeName $volName1 -CreationToken $volName1 -UsageThreshold $usageThreshold -ServiceLevel $serviceLevel -SubnetId $subnetId -Tag @{$newTagName = $newTagValue} -ExportPolicy $exportPolicy
107+
$retrievedVolume = New-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -Location $resourceLocation -AccountName $accName -PoolName $poolName -VolumeName $volName1 -CreationToken $volName1 -UsageThreshold $usageThreshold -ServiceLevel $serviceLevel -SubnetId $subnetId -Tag @{$newTagName = $newTagValue} -ExportPolicy $exportPolicy -ProtocolType $protocolTypes
87108
Assert-AreEqual "$accName/$poolName/$volName1" $retrievedVolume.Name
88109
Assert-AreEqual $serviceLevel $retrievedVolume.ServiceLevel
89110
Assert-AreEqual True $retrievedVolume.Tags.ContainsKey($newTagName)
90111
Assert-AreEqual "tagValue1" $retrievedVolume.Tags[$newTagName].ToString()
91112
Assert-NotNull $retrievedVolume.ExportPolicy
92113
Assert-AreEqual $retrievedVolume.ExportPolicy.Rules[0].AllowedClients '0.0.0.0/0'
93114
Assert-AreEqual $retrievedVolume.ExportPolicy.Rules[1].AllowedClients '1.2.3.0/24'
115+
Assert-AreEqual $retrievedVolume.ProtocolTypes[0] 'NFSv3'
116+
Assert-AreEqual $retrievedVolume.ProtocolTypes[1] 'NFSv4'
117+
Assert-NotNull $retrievedVolume.MountTargets
94118

95119
# create second volume and check using the confirm flag
96120
$retrievedVolume = New-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -Location $resourceLocation -AccountName $accName -PoolName $poolName -VolumeName $volName2 -CreationToken $volName2 -UsageThreshold $usageThreshold -ServiceLevel $serviceLevel -SubnetId $subnetId -Confirm:$false
97121
Assert-AreEqual "$accName/$poolName/$volName2" $retrievedVolume.Name
98122
Assert-AreEqual $serviceLevel $retrievedVolume.ServiceLevel
123+
# default protocol type for new volume
124+
Assert-AreEqual $retrievedVolume.ProtocolTypes[0] 'NFSv3'
99125

100126
# create and check a third volume using the WhatIf - it should not be created
101127
$retrievedVolume = New-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -Location $resourceLocation -AccountName $accName -PoolName $poolName -VolumeName $volName3 -CreationToken $volName2 -UsageThreshold $usageThreshold -ServiceLevel $serviceLevel -SubnetId $subnetId -WhatIf
@@ -125,21 +151,21 @@ function Test-VolumeCrud
125151
Assert-AreEqual $retrievedVolume.ExportPolicy.Rules[0].AllowedClients '0.0.0.0/0'
126152
Assert-AreEqual $retrievedVolume.ExportPolicy.Rules[1].AllowedClients '1.2.3.0/24'
127153

128-
$rule3 = @{
129-
RuleIndex = 3
130-
UnixReadOnly = 'false'
131-
UnixReadWrite = 'true'
132-
Cifs = 'false'
133-
Nfsv3 = 'true'
134-
Nfsv4 = 'false'
135-
AllowedClients = '1.2.3.0/24'
136-
}
137-
138-
$exportPolicyUpdate = @{
139-
Rules = (
140-
$rule2, $rule3
141-
)
142-
}
154+
$rule4 = @{
155+
RuleIndex = 3
156+
UnixReadOnly = 'false'
157+
UnixReadWrite = 'true'
158+
Cifs = 'false'
159+
Nfsv3 = 'true'
160+
Nfsv4 = 'false'
161+
AllowedClients = '1.2.3.0/24'
162+
}
163+
164+
$exportPolicyUpdate = @{
165+
Rules = (
166+
$rule2, $rule4
167+
)
168+
}
143169

144170
# now patch the policy
145171
$retrievedVolume = Update-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -Location $resourceLocation -AccountName $accName -PoolName $poolName -VolumeName $volName1 -ExportPolicy $exportPolicyUpdate
@@ -156,6 +182,31 @@ function Test-VolumeCrud
156182
Remove-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -AccountName $accName -PoolName $poolName -VolumeName $volName2
157183
$retrievedVolume = Get-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -AccountName $accName -PoolName $poolName
158184
Assert-AreEqual 0 $retrievedVolume.Length
185+
186+
# test export policy update with non-default volume (and "Standard" Pool)
187+
# create pool
188+
$retrievedPool = New-AzNetAppFilesPool -ResourceGroupName $resourceGroup -Location $resourceLocation -AccountName $accName -PoolName $poolName2 -PoolSize $poolSize -ServiceLevel "Standard"
189+
190+
# create the volume and check
191+
$newTagName = "tag1"
192+
$newTagValue = "tagValue1"
193+
$retrievedVolume = New-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -Location $resourceLocation -AccountName $accName -PoolName $poolName2 -VolumeName $volName4 -CreationToken $volName4 -UsageThreshold $doubleUsage -ServiceLevel "Standard" -SubnetId $subnetId -Tag @{$newTagName = $newTagValue} -ExportPolicy $exportPolicy -ProtocolType $protocolTypes
194+
Assert-AreEqual "$accName/$poolName2/$volName4" $retrievedVolume.Name
195+
Assert-AreEqual "Standard" $retrievedVolume.ServiceLevel
196+
Assert-AreEqual True $retrievedVolume.Tags.ContainsKey($newTagName)
197+
Assert-AreEqual "tagValue1" $retrievedVolume.Tags[$newTagName].ToString()
198+
Assert-NotNull $retrievedVolume.ExportPolicy
199+
Assert-AreEqual '0.0.0.0/0' $retrievedVolume.ExportPolicy.Rules[0].AllowedClients
200+
Assert-AreEqual '1.2.3.0/24' $retrievedVolume.ExportPolicy.Rules[1].AllowedClients
201+
202+
# update (patch) export policy and check no change to rest of volume
203+
$retrievedVolume = Update-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -Location $resourceLocation -AccountName $accName -PoolName $poolName2 -VolumeName $volName4 -ExportPolicy $exportPolicyMod
204+
Assert-AreEqual '2.3.4.0/24' $retrievedVolume.ExportPolicy.Rules[0].AllowedClients
205+
# unchanged, not part of the patch
206+
Assert-AreEqual "Standard" $retrievedVolume.ServiceLevel
207+
Assert-AreEqual $doubleUsage $retrievedVolume.usageThreshold
208+
Assert-AreEqual True $retrievedVolume.Tags.ContainsKey($newTagName)
209+
Assert-AreEqual "tagValue1" $retrievedVolume.Tags[$newTagName].ToString()
159210
}
160211
finally
161212
{

0 commit comments

Comments
 (0)