Skip to content

Commit 6727874

Browse files
Cplat enablebursting (Azure#14038)
* bursting enabled * update
1 parent 785e523 commit 6727874

File tree

14 files changed

+63
-14
lines changed

14 files changed

+63
-14
lines changed

src/Compute/Compute.Test/Compute.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="39.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="43.0.0-preview" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0-preview.2" />
1717
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
1818
</ItemGroup>

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- `Remove-AzContainerService`
3131
- `Remove-AzContainerServiceAgentPoolProfile`
3232
- `Update-AzContainerService`
33+
* Added parameter `-BurstingEnabled` to `New-AzDiskConfig` and `New-AzDiskUpdateConfig`
3334

3435
## Version 4.8.0
3536
* New parameter `VM` in new parameter set `VMParameterSet` added to `Get-AzVMDscExtensionStatus` and `Get-AzVMDscExtension` cmdlets.

src/Compute/Compute/Compute.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<ItemGroup>
1515
<PackageReference Include="AutoMapper" Version="6.2.2" />
16-
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="39.0.0" />
16+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="43.0.0-preview" />
1717
<PackageReference Include="System.Security.Permissions" Version="4.5.0" />
1818
<PackageReference Include="System.ServiceModel.Primitives" Version="4.4.1" />
1919
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ public partial class NewAzureRmDiskConfigCommand : Microsoft.Azure.Commands.Reso
188188
[PSArgumentCompleter("AllowAll", "AllowPrivate", "DenyAll")]
189189
public string NetworkAccessPolicy { get; set; }
190190

191+
[Parameter(
192+
Mandatory = false,
193+
ValueFromPipelineByPropertyName = true)]
194+
public bool? BurstingEnabled { get; set; }
195+
191196
protected override void ProcessRecord()
192197
{
193198
if (ShouldProcess("Disk", "New"))
@@ -377,7 +382,8 @@ private void Run()
377382
Encryption = vEncryption,
378383
NetworkAccessPolicy = this.IsParameterBound(c => c.NetworkAccessPolicy) ? this.NetworkAccessPolicy : null,
379384
DiskAccessId = this.IsParameterBound(c => c.DiskAccessId) ? this.DiskAccessId : null,
380-
Tier = this.IsParameterBound(c => c.Tier) ? this.Tier : null
385+
Tier = this.IsParameterBound(c => c.Tier) ? this.Tier : null,
386+
BurstingEnabled = this.IsParameterBound(c => c.BurstingEnabled) ? this.BurstingEnabled : null,
381387
};
382388

383389
WriteObject(vDisk);

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,14 @@ public partial class NewAzureRmDiskUpdateConfigCommand : Microsoft.Azure.Command
127127
Mandatory = false,
128128
ValueFromPipelineByPropertyName = true)]
129129
[PSArgumentCompleter("EncryptionAtRestWithPlatformKey", "EncryptionAtRestWithCustomerKey")]
130+
130131
public string EncryptionType { get; set; }
131132

133+
[Parameter(
134+
Mandatory = false,
135+
ValueFromPipelineByPropertyName = true)]
136+
public bool? BurstingEnabled { get; set; }
137+
132138
protected override void ProcessRecord()
133139
{
134140
if (ShouldProcess("DiskUpdate", "New"))
@@ -245,6 +251,7 @@ private void Run()
245251
Encryption = vEncryption,
246252
Sku = vSku,
247253
Tier = this.IsParameterBound(c => c.Tier) ? this.Tier : null,
254+
BurstingEnabled = this.IsParameterBound(c => c.BurstingEnabled) ? this.BurstingEnabled : null,
248255
};
249256

250257
WriteObject(vDiskUpdate);

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ private void BuildPatchObject()
147147
}
148148
if (this.DiskEncryptionSetUpdate.ActiveKey == null)
149149
{
150-
this.DiskEncryptionSetUpdate.ActiveKey = new KeyVaultAndKeyReference();
150+
//this.DiskEncryptionSetUpdate.ActiveKey = new KeyVaultAndKeyReference();
151+
this.DiskEncryptionSetUpdate.ActiveKey = new KeyForDiskEncryptionSet();
151152
}
152153
this.DiskEncryptionSetUpdate.ActiveKey.KeyUrl = this.KeyUrl;
153154
}
@@ -160,7 +161,8 @@ private void BuildPatchObject()
160161
}
161162
if (this.DiskEncryptionSetUpdate.ActiveKey == null)
162163
{
163-
this.DiskEncryptionSetUpdate.ActiveKey = new KeyVaultAndKeyReference();
164+
//this.DiskEncryptionSetUpdate.ActiveKey = new KeyVaultAndKeyReference();
165+
this.DiskEncryptionSetUpdate.ActiveKey = new KeyForDiskEncryptionSet();
164166
}
165167
if (this.DiskEncryptionSetUpdate.ActiveKey.SourceVault == null)
166168
{

src/Compute/Compute/Generated/Models/PSDisk.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,7 @@ public string ResourceGroupName
7272

7373
public string Tier { get; set; }
7474

75+
public bool? BurstingEnabled { get; set; }
76+
7577
}
7678
}

src/Compute/Compute/Generated/Models/PSDiskUpdate.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public partial class PSDiskUpdate
4242
public string DiskAccessId { get; set; }
4343

4444
public string Tier { get; set; }
45+
public bool? BurstingEnabled { get; set; }
4546

4647
}
4748
}

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Creates a configurable disk object.
1414

1515
```
1616
New-AzDiskConfig [[-SkuName] <String>] [-Tier <String>] [-LogicalSectorSize <Int32>]
17-
[[-OsType] <OperatingSystemTypes>] [[-DiskSizeGB] <Int32>] [[-Location] <String>] [-Zone <String[]>]
18-
[-HyperVGeneration <String>] [-DiskIOPSReadWrite <Int64>] [-DiskMBpsReadWrite <Int64>]
17+
[[-OsType] <OperatingSystemTypes>] [[-DiskSizeGB] <Int32>] [[-Location] <String>]
18+
[-Zone <String[]>] [-HyperVGeneration <String>] [-DiskIOPSReadWrite <Int64>] [-DiskMBpsReadWrite <Int64>]
1919
[-DiskIOPSReadOnly <Int64>] [-DiskMBpsReadOnly <Int64>] [-MaxSharesCount <Int32>] [-Tag <Hashtable>]
2020
[-CreateOption <String>] [-StorageAccountId <String>] [-ImageReference <ImageDiskReference>]
2121
[-GalleryImageReference <ImageDiskReference>] [-SourceUri <String>] [-SourceResourceId <String>]
2222
[-UploadSizeInBytes <Int64>] [-EncryptionSettingsEnabled <Boolean>]
2323
[-DiskEncryptionKey <KeyVaultAndSecretReference>] [-KeyEncryptionKey <KeyVaultAndKeyReference>]
2424
[-DiskEncryptionSetId <String>] [-EncryptionType <String>] [-DiskAccessId <String>]
25-
[-NetworkAccessPolicy <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
25+
[-NetworkAccessPolicy <String>] [-BurstingEnabled <Boolean>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
2626
[<CommonParameters>]
2727
```
2828

@@ -80,6 +80,21 @@ Create a disk from a Shared Gallery Image Version. Id is the id of the shared g
8080

8181
## PARAMETERS
8282

83+
### -BurstingEnabled
84+
Enables bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
85+
86+
```yaml
87+
Type: System.Nullable`1[System.Boolean]
88+
Parameter Sets: (All)
89+
Aliases:
90+
91+
Required: False
92+
Position: Named
93+
Default value: None
94+
Accept pipeline input: True (ByPropertyName)
95+
Accept wildcard characters: False
96+
```
97+
8398
### -CreateOption
8499
Specifies whether this cmdlet creates a disk in the virtual machine from a platform or user image,
85100
creates an empty disk, or attaches an existing disk.

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ New-AzDiskUpdateConfig [[-SkuName] <String>] [-Tier <String>] [-DiskIOPSReadOnly
1818
[[-OsType] <OperatingSystemTypes>] [[-DiskSizeGB] <Int32>] [[-Tag] <Hashtable>] [-DiskIOPSReadWrite <Int32>]
1919
[-DiskMBpsReadWrite <Int32>] [-EncryptionSettingsEnabled <Boolean>]
2020
[-DiskEncryptionKey <KeyVaultAndSecretReference>] [-KeyEncryptionKey <KeyVaultAndKeyReference>]
21-
[-DiskEncryptionSetId <String>] [-EncryptionType <String>] [-DefaultProfile <IAzureContextContainer>]
22-
[-WhatIf] [-Confirm] [<CommonParameters>]
21+
[-DiskEncryptionSetId <String>] [-EncryptionType <String>] [-BurstingEnabled <Boolean>]
22+
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
2323
```
2424

2525
## DESCRIPTION
@@ -54,6 +54,21 @@ This command updates an existing disk with name 'Disk01' in resource group 'Reso
5454

5555
## PARAMETERS
5656

57+
### -BurstingEnabled
58+
Enables bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
59+
60+
```yaml
61+
Type: System.Nullable`1[System.Boolean]
62+
Parameter Sets: (All)
63+
Aliases:
64+
65+
Required: False
66+
Position: Named
67+
Default value: None
68+
Accept pipeline input: True (ByPropertyName)
69+
Accept wildcard characters: False
70+
```
71+
5772
### -DefaultProfile
5873
The credentials, account, tenant, and subscription used for communication with azure.
5974

src/Network/Network.Test/Network.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.5" />
1919
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0-preview.2" />
2020
<PackageReference Include="Microsoft.Azure.Insights" Version="0.16.0-preview" />
21-
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="39.0.0" />
21+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="43.0.0-preview" />
2222
<PackageReference Include="Microsoft.Azure.Management.ContainerInstance" Version="2.0.0" />
2323
<PackageReference Include="Microsoft.Azure.Management.PrivateDns" Version="1.0.0" />
2424
<PackageReference Include="Microsoft.Azure.Management.Redis" Version="4.4.1" />

src/RecoveryServices/RecoveryServices.Backup.Test/RecoveryServices.Backup.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.Compute" Version="39.0.0" />
14+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="43.0.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices" Version="4.3.1-preview" />
1717
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.Backup" Version="4.1.3-preview" />

src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.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.Compute" Version="39.0.0" />
14+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="43.0.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices" Version="4.3.1-preview" />
1717
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.Backup" Version="4.1.3-preview" />

src/SqlVirtualMachine/SqlVirtualMachine.Test/SqlVirtualMachine.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="39.0.0" />
18+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="43.0.0-preview" />
1919
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
2020
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="13.1.0" />
2121
<PackageReference Include="Microsoft.Azure.Management.ResourceManager" Version="3.8.0-preview" />

0 commit comments

Comments
 (0)