Skip to content

Commit 950f7bd

Browse files
authored
Merge branch 'main' into adsandor/newver
2 parents 2d958f2 + a370dcd commit 950f7bd

25 files changed

+94
-309
lines changed

.ci-config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,7 @@
264264
"tools/Gen2Master/*",
265265
"tools/InstallationTests/*",
266266
"tools/Installer/*",
267-
"tools/NetCoreCsProjSync/*",
268-
"tools/NetCorePsd1Sync/*",
269267
"tools/ProjectTemplates/*",
270-
"tools/RepoTasks/*",
271268
"tools/SecurityTools/*",
272269
"tools/Test/*",
273270
"tools/Tools.Common.Test/*",

SECURITY.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.8 BLOCK -->
2+
3+
## Security
4+
5+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6+
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
8+
9+
## Reporting Security Issues
10+
11+
**Please do not report security vulnerabilities through public GitHub issues.**
12+
13+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
14+
15+
If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
16+
17+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
18+
19+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20+
21+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22+
* Full paths of source file(s) related to the manifestation of the issue
23+
* The location of the affected source code (tag/branch/commit or direct URL)
24+
* Any special configuration required to reproduce the issue
25+
* Step-by-step instructions to reproduce the issue
26+
* Proof-of-concept or exploit code (if possible)
27+
* Impact of the issue, including how an attacker might exploit the issue
28+
29+
This information will help us triage your report more quickly.
30+
31+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
32+
33+
## Preferred Languages
34+
35+
We prefer all communications to be in English.
36+
37+
## Policy
38+
39+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
40+
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

src/Compute/Compute/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
2121
-->
2222
## Upcoming Release
23+
* Added `ConsistencyMode` parameter to `New-AzRestorePoint`.
24+
* Updated the storage account type value in several locations from the outdated `StandardLRS` to the current `Standard_LRS`.
25+
* Filled in missing parameter descriptions across multiple parameters and improved some existing parameter descriptions.
2326
* Added `ConsistencyMode` parameter to `New-AzRestorePoint`
2427
* Updated Compute PS to use the new .Net SDK version 59.0.0. This includes an approved breaking change for a non-functional feature.
2528
- The type of the property `Source` of type `Microsoft.Azure.Management.Compute.Models.GalleryDataDiskImage`, `Microsoft.Azure.Management.Compute.Models.GalleryOSDiskImage`, and `Microsoft.Azure.Management.Compute.Models.GalleryImageVersionStorageProfile` has changed from `Microsoft.Azure.Management.Compute.Models.GalleryArtifactVersionSource` to `Microsoft.Azure.Management.Compute.Models.GalleryDiskImageSource`.

src/Compute/Compute/Generated/Disk/Config/NewAzureRmDiskUpdateConfigCommand.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@ public partial class NewAzureRmDiskUpdateConfigCommand : Microsoft.Azure.Command
6868

6969
[Parameter(
7070
Mandatory = false,
71-
ValueFromPipelineByPropertyName = true)]
71+
ValueFromPipelineByPropertyName = true,
72+
HelpMessage = "Policy for accessing the disk via network. Available values are: AllowAll, AllowPrivate, DeyAll")]
7273
[PSArgumentCompleter("AllowAll", "AllowPrivate", "DenyAll")]
7374
public string NetworkAccessPolicy { get; set; }
7475

7576
[Parameter(
7677
Mandatory = false,
77-
ValueFromPipelineByPropertyName = true)]
78+
ValueFromPipelineByPropertyName = true,
79+
HelpMessage = "ARM id of the DiskAccess resource for using private endpoints on disks")]
7880
public string DiskAccessId { get; set; }
7981

8082
[Parameter(
@@ -108,18 +110,19 @@ public partial class NewAzureRmDiskUpdateConfigCommand : Microsoft.Azure.Command
108110
[Parameter(
109111
Mandatory = false,
110112
ValueFromPipelineByPropertyName = true,
111-
HelpMessage = "Sets the Purchase Plan for the Disk")]
113+
HelpMessage = "Sets the purchase plan for the disk. Used for establishing the purchase context of any 3rd Party artifact through Marketplace.")]
112114
public PSPurchasePlan PurchasePlan { get; set; }
113115

114116
[Parameter(
115117
Mandatory = false,
116118
ValueFromPipelineByPropertyName = true,
117-
HelpMessage = "Specify if Disk Supports Hibernation with $true of $false")]
119+
HelpMessage = "Indicates if the OS on the disk supports hibernation with $true or $false")]
118120
public bool? SupportsHibernation { get; set; }
119121

120122
[Parameter(
121123
Mandatory = false,
122-
ValueFromPipelineByPropertyName = true)]
124+
ValueFromPipelineByPropertyName = true,
125+
HelpMessage = "Enable encryption settings on the disk")]
123126
public bool? EncryptionSettingsEnabled { get; set; }
124127

125128
[Parameter(
@@ -138,7 +141,8 @@ public partial class NewAzureRmDiskUpdateConfigCommand : Microsoft.Azure.Command
138141

139142
[Parameter(
140143
Mandatory = false,
141-
ValueFromPipelineByPropertyName = true)]
144+
ValueFromPipelineByPropertyName = true,
145+
HelpMessage = "The type of key used to encrypt the data of the disk. Available values are: EncryptionAtRestWithPlatformKey, EncryptionAtRestWithCustomerKey")]
142146
[PSArgumentCompleter("EncryptionAtRestWithPlatformKey", "EncryptionAtRestWithCustomerKey")]
143147

144148
public string EncryptionType { get; set; }

src/Compute/Compute/Generated/DiskEncryptionSet/DiskEncryptionSetUpdateMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public override void ExecuteCmdlet()
129129
[Parameter(
130130
Mandatory = false,
131131
ValueFromPipelineByPropertyName = true,
132-
HelpMessage = "Gets or sets set this flag to true to enable auto-updating of this disk encryption")]
132+
HelpMessage = "Set this flag to true to enable auto-updating of this disk encryption set to the latest key version")]
133133
public bool? RotationToLatestKeyVersionEnabled { get; set; }
134134

135135
[Parameter(

src/Compute/Compute/Generated/Snapshot/Config/NewAzureRmSnapshotConfigCommand.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public partial class NewAzureRmSnapshotConfigCommand : Microsoft.Azure.Commands.
8888
Mandatory = false,
8989
ValueFromPipelineByPropertyName = true,
9090
HelpMessage = "Specifies whether this cmdlet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Possible values are: Empty, Attach, FromImage, Import, Copy, Restore, Upload, CopyStart")]
91-
//todo: verify help message with API team
9291
public string CreateOption { get; set; }
9392

9493
[Parameter(
@@ -99,13 +98,13 @@ public partial class NewAzureRmSnapshotConfigCommand : Microsoft.Azure.Commands.
9998
[Parameter(
10099
Mandatory = false,
101100
ValueFromPipelineByPropertyName = true,
102-
HelpMessage = "Sets the Purchase Plan for the Snapshot.")]
101+
HelpMessage = "Sets the purchase plan for the snapshot. Used for establishing the purchase context of any 3rd Party artifact through Marketplace.")]
103102
public PSPurchasePlan PurchasePlan { get; set; }
104103

105104
[Parameter(
106105
Mandatory = false,
107106
ValueFromPipelineByPropertyName = true,
108-
HelpMessage = "Specify if Disk Supports Hibernation with $true of $false")]
107+
HelpMessage = "Indicates if the OS on the snapshot supports hibernation with $true or $false")]
109108
public bool? SupportsHibernation { get; set; }
110109

111110
[Parameter(

src/Compute/Compute/Generated/Snapshot/Config/NewAzureRmSnapshotUpdateConfigCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public partial class NewAzureRmSnapshotUpdateConfigCommand : Microsoft.Azure.Com
6464
[Parameter(
6565
Mandatory = false,
6666
ValueFromPipelineByPropertyName = true,
67-
HelpMessage = "Specify if Disk Supports Hibernation with $true of $false")]
67+
HelpMessage = "Indicates if the OS on the snapshot supports hibernation with $true or $false")]
6868
public bool? SupportsHibernation { get; set; }
6969

7070

src/Compute/Compute/RestorePoints/NewAzRestorePoint.cs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,48 +34,52 @@ public class NewAzureRestorePoint : ComputeAutomationBaseCmdlet
3434
[Parameter(
3535
Position = 0,
3636
Mandatory = true,
37-
ValueFromPipelineByPropertyName = true)]
37+
ValueFromPipelineByPropertyName = true,
38+
HelpMessage = "Resource group name this resource belongs to")]
3839
[ResourceGroupCompleter]
3940
public string ResourceGroupName { get; set; }
4041

4142
[Parameter(
4243
Position = 1,
4344
Mandatory = true,
44-
ValueFromPipelineByPropertyName = true)]
45+
ValueFromPipelineByPropertyName = true,
46+
HelpMessage = "Name of the restore point collection this restore point is part of")]
4547
public string RestorePointCollectionName{ get; set; }
4648

4749
[Parameter(
4850
Position = 1,
4951
Mandatory = true,
50-
ValueFromPipelineByPropertyName = true)]
52+
ValueFromPipelineByPropertyName = true,
53+
HelpMessage = "The name of the restore point")]
5154
[Alias("RestorePointName")]
5255
public string Name { get; set; }
5356

5457
[Parameter(
5558
Position = 3,
5659
Mandatory = false,
5760
ValueFromPipelineByPropertyName = false,
58-
HelpMessage = "Set the region of the Restore Point")]
61+
HelpMessage = "Set the region of the restore point")]
5962
public string Location { get; set; }
6063

6164

6265
[Parameter(
6366
Mandatory = false,
6467
ValueFromPipeline = true,
65-
HelpMessage = "ARM Id of the source Restore Point")]
68+
HelpMessage = "ARM Id of the source restore point")]
6669
public string RestorePointId { get; set; }
6770

6871

6972
[Parameter(
7073
Mandatory = false,
71-
ValueFromPipeline = true)]
74+
ValueFromPipeline = true,
75+
HelpMessage = "List of disk resource Id values that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.")]
7276
public string[] DisksToExclude { get; set; }
7377

7478

7579
[Parameter(
7680
Mandatory = false,
7781
ValueFromPipeline = true,
78-
HelpMessage = "ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.")]
82+
HelpMessage = "ConsistencyMode of the restore point. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.")]
7983
[PSArgumentCompleter("CrashConsistent", "FileSystemConsistent", "ApplicationConsistent")]
8084
public string ConsistencyMode { get; set; }
8185

src/Compute/Compute/help/Add-AzVmssDataDisk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The **Add-AzVmssDataDisk** cmdlet adds a data disk to the Virtual Machine Scale
2828
### Example 1: Add a data disk
2929
```powershell
3030
$vmss = New-AzVmssConfig -Location $Loc -SkuCapacity 2 -SkuName "Standard_A0" -UpgradePolicyMode "Automatic"
31-
$vmss = Add-AzVmssDataDisk -VirtualMachineScaleSet $vmss -Name 'DataDisk1' -Lun 0 -Caching 'ReadOnly' -CreateOption Empty -DiskSizeGB 10 -StorageAccountType StandardLRS
31+
$vmss = Add-AzVmssDataDisk -VirtualMachineScaleSet $vmss -Name 'DataDisk1' -Lun 0 -Caching 'ReadOnly' -CreateOption Empty -DiskSizeGB 10 -StorageAccountType Standard_LRS
3232
```
3333

3434
This command adds an empty data disk to the VMSS object.

src/Compute/Compute/help/New-AzDiskUpdateConfig.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Accept wildcard characters: False
132132
```
133133
134134
### -DiskAccessId
135-
{{ Fill DiskAccessId Description }}
135+
ARM id of the DiskAccess resource for using private endpoints on disks
136136
137137
```yaml
138138
Type: System.String
@@ -252,7 +252,7 @@ Accept wildcard characters: False
252252
```
253253
254254
### -EncryptionSettingsEnabled
255-
Enable encryption settings.
255+
Enable encryption settings on the disk
256256
257257
```yaml
258258
Type: System.Nullable`1[System.Boolean]
@@ -267,7 +267,7 @@ Accept wildcard characters: False
267267
```
268268
269269
### -EncryptionType
270-
The type of key used to encrypt the data of the disk. Available values are: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey'
270+
The type of key used to encrypt the data of the disk. Available values are: EncryptionAtRestWithPlatformKey, EncryptionAtRestWithCustomerKey
271271
272272
```yaml
273273
Type: System.String
@@ -312,7 +312,7 @@ Accept wildcard characters: False
312312
```
313313
314314
### -NetworkAccessPolicy
315-
{{ Fill NetworkAccessPolicy Description }}
315+
Policy for accessing the disk via network. Available values are: AllowAll, AllowPrivate, DeyAll
316316
317317
```yaml
318318
Type: System.String
@@ -358,7 +358,7 @@ Accept wildcard characters: False
358358
```
359359
360360
### -PurchasePlan
361-
{{ Fill PurchasePlan Description }}
361+
Sets the purchase plan for the disk. Used for establishing the purchase context of any 3rd Party artifact through Marketplace.
362362
363363
```yaml
364364
Type: Microsoft.Azure.Commands.Compute.Automation.Models.PSPurchasePlan
@@ -388,7 +388,7 @@ Accept wildcard characters: False
388388
```
389389
390390
### -SupportsHibernation
391-
{{ Fill SupportsHibernation Description }}
391+
Indicates if the OS on the disk supports hibernation with $true or $false
392392
393393
```yaml
394394
Type: System.Nullable`1[System.Boolean]

src/Compute/Compute/help/New-AzRestorePoint.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Creates a new Restore Point
3333
## PARAMETERS
3434

3535
### -ConsistencyMode
36-
ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
36+
ConsistencyMode of the restore point. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
3737

3838
```yaml
3939
Type: System.String
@@ -63,7 +63,7 @@ Accept wildcard characters: False
6363
```
6464
6565
### -DisksToExclude
66-
List of disk resource ids that the customer wishes to exclude from the restorepoint. If no disks are specified, all disks will be included.
66+
List of disk resource Id values that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
6767
6868
```yaml
6969
Type: System.String[]
@@ -78,7 +78,7 @@ Accept wildcard characters: False
7878
```
7979
8080
### -Location
81-
{{ Fill Location Description }}
81+
Set the region of the restore point
8282
8383
```yaml
8484
Type: System.String
@@ -93,7 +93,7 @@ Accept wildcard characters: False
9393
```
9494
9595
### -Name
96-
Resource Name
96+
The name of the restore point
9797
9898
```yaml
9999
Type: System.String
@@ -108,7 +108,7 @@ Accept wildcard characters: False
108108
```
109109
110110
### -ResourceGroupName
111-
Resource Group Name
111+
Resource group name this resource belongs to
112112
113113
```yaml
114114
Type: System.String
@@ -123,7 +123,7 @@ Accept wildcard characters: False
123123
```
124124
125125
### -RestorePointCollectionName
126-
Restore Point Collection Name
126+
Name of the restore point collection this restore point is part of
127127
128128
```yaml
129129
Type: System.String
@@ -138,7 +138,7 @@ Accept wildcard characters: False
138138
```
139139
140140
### -RestorePointId
141-
{{ Fill RestorePointId Description }}
141+
ARM Id of the source restore point
142142
143143
```yaml
144144
Type: System.String

src/Compute/Compute/help/New-AzSnapshot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The **New-AzSnapshot** cmdlet creates a snapshot.
2424

2525
### Example 1
2626
```powershell
27-
$snapshotconfig = New-AzSnapshotConfig -Location 'Central US' -DiskSizeGB 5 -AccountType StandardLRS -OsType Windows -CreateOption Empty -EncryptionSettingsEnabled $true;
27+
$snapshotconfig = New-AzSnapshotConfig -Location 'Central US' -DiskSizeGB 5 -AccountType Standard_LRS -OsType Windows -CreateOption Empty -EncryptionSettingsEnabled $true;
2828
$secretUrl = 'https://myvault.vault-int.azure-int.net/secrets/123/';
2929
$secretId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault123';
3030
$keyUrl = 'https://myvault.vault-int.azure-int.net/keys/456';

src/Compute/Compute/help/New-AzSnapshotConfig.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Accept wildcard characters: False
362362
```
363363
364364
### -PurchasePlan
365-
{{ Fill PurchasePlan Description }}
365+
Sets the purchase plan for the snapshot. Used for establishing the purchase context of any 3rd Party artifact through Marketplace.
366366
367367
```yaml
368368
Type: Microsoft.Azure.Commands.Compute.Automation.Models.PSPurchasePlan
@@ -437,7 +437,7 @@ Accept wildcard characters: False
437437
```
438438
439439
### -SupportsHibernation
440-
{{ Fill SupportsHibernation Description }}
440+
Indicates if the OS on the snapshot supports hibernation with $true or $false
441441
442442
```yaml
443443
Type: System.Nullable`1[System.Boolean]

src/Compute/Compute/help/New-AzSnapshotUpdateConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Accept wildcard characters: False
251251
```
252252
253253
### -SupportsHibernation
254-
{{ Fill SupportsHibernation Description }}
254+
Indicates if the OS on the snapshot supports hibernation with $true or $false
255255
256256
```yaml
257257
Type: System.Nullable`1[System.Boolean]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The **Set-AzDiskDiskEncryptionKey** cmdlet sets the disk encryption key properti
2424

2525
### Example 1
2626
```powershell
27-
$diskconfig = New-AzDiskConfig -Location 'Central US' -DiskSizeGB 5 -SkuName StandardLRS -OsType Windows -CreateOption Empty -EncryptionSettingsEnabled $true;
27+
$diskconfig = New-AzDiskConfig -Location 'Central US' -DiskSizeGB 5 -SkuName Standard_LRS -OsType Windows -CreateOption Empty -EncryptionSettingsEnabled $true;
2828
$secretUrl = 'https://myvault.vault-int.azure-int.net/secrets/123/';
2929
$secretId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault123';
3030
$keyUrl = 'https://myvault.vault-int.azure-int.net/keys/456';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The **Set-AzDiskKeyEncryptionKey** cmdlet sets the key encryption key properties
2424

2525
### Example 1
2626
```powershell
27-
$diskconfig = New-AzDiskConfig -Location 'Central US' -DiskSizeGB 5 -SkuName StandardLRS -OsType Windows -CreateOption Empty -EncryptionSettingsEnabled $true;
27+
$diskconfig = New-AzDiskConfig -Location 'Central US' -DiskSizeGB 5 -SkuName Standard_LRS -OsType Windows -CreateOption Empty -EncryptionSettingsEnabled $true;
2828
$secretUrl = 'https://myvault.vault-int.azure-int.net/secrets/123/';
2929
$secretId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault123';
3030
$keyUrl = 'https://myvault.vault-int.azure-int.net/keys/456';

0 commit comments

Comments
 (0)