Skip to content

Commit 672c9fd

Browse files
authored
Merge pull request #10344 from hyonholee/october1
[Compute] Breaking change update for Compute module
2 parents d34f16b + 7ee1852 commit 672c9fd

23 files changed

+16
-199
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="29.1.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="29.2.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="2.4.2" />
1717
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
1818
</ItemGroup>

src/Compute/Compute.Test/ScenarioTests/GalleryTests.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ function Verify-GalleryImageVersion
7575
Assert-AreEqual "Microsoft.Compute/galleries/images/versions" $imageVersion.Type;
7676
Assert-NotNull $imageVersion.Id;
7777

78-
Assert-AreEqual $sourceImageId $imageVersion.PublishingProfile.Source.ManagedImage.Id;
7978
Assert-AreEqual $sourceImageId $imageVersion.StorageProfile.Source.Id;
8079
Assert-AreEqual $replicaCount $imageVersion.PublishingProfile.ReplicaCount;
8180
Assert-False { $imageVersion.PublishingProfile.ExcludeFromLatest };

src/Compute/Compute/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
- Additional information about change #1
2020
-->
2121
## Upcoming Release
22+
* Breaking changes
23+
- UploadSizeInBytes parameter is used instead of DiskSizeGB for New-AzDiskConfig when CreateOption is Upload
24+
- PublishingProfile.Source.ManagedImage.Id is replaced with StorageProfile.Source.Id in GalleryImageVersion object
2225

2326
## Version 2.7.0
2427
* Add Priority, EvictionPolicy, and MaxPrice parameters to New-AzVM and New-AzVmss 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="29.1.0" />
16+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="29.2.0" />
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/ContainerService/ContainerServiceDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public override void ExecuteCmdlet()
8383
public string Name { get; set; }
8484

8585
[Parameter(
86-
ParameterSetName = "DefaultParameter",
8786
Mandatory = false)]
8887
public SwitchParameter Force { get; set; }
8988

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public partial class NewAzureRmDiskConfigCommand : Microsoft.Azure.Commands.Reso
5454
Mandatory = false,
5555
Position = 2,
5656
ValueFromPipelineByPropertyName = true)]
57-
[CmdletParameterBreakingChange(nameof(DiskSizeGB), ChangeDescription = "'DiskSizeInBytes' instead of 'DiskSizeGB' is going to be used when CreateOption is 'Upload'.")]
5857
public int DiskSizeGB { get; set; }
5958

6059
[Parameter(
@@ -281,16 +280,6 @@ private void Run()
281280
EncryptionSettingsCollection = vEncryptionSettingsCollection,
282281
};
283282

284-
// this is to hide the breaking change for upload
285-
if ("upload".Equals(vDisk.CreationData?.CreateOption?.ToLowerInvariant()) && vDisk.CreationData?.UploadSizeBytes == null)
286-
{
287-
if (vDisk.DiskSizeGB != null)
288-
{
289-
vDisk.CreationData.UploadSizeBytes = (long) vDisk.DiskSizeGB * 1073741824 + 512; // multiplying 1GB and then add the size of footer (512 bytes)
290-
vDisk.DiskSizeGB = null;
291-
}
292-
}
293-
294283
WriteObject(vDisk);
295284
}
296285
}

src/Compute/Compute/Generated/Disk/DiskDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public override void ExecuteCmdlet()
8484
public string DiskName { get; set; }
8585

8686
[Parameter(
87-
ParameterSetName = "DefaultParameter",
8887
Mandatory = false)]
8988
public SwitchParameter Force { get; set; }
9089

src/Compute/Compute/Generated/Image/ImageDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public override void ExecuteCmdlet()
8484
public string ImageName { get; set; }
8585

8686
[Parameter(
87-
ParameterSetName = "DefaultParameter",
8887
Mandatory = false)]
8988
public SwitchParameter Force { get; set; }
9089

src/Compute/Compute/Generated/Models/ComputeAutoMapperProfile.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ private static void Initialize()
5656
{
5757
var config = new MapperConfiguration(cfg =>
5858
{
59-
// This part is for hiding the breaking change caused by the client library update.
60-
cfg.CreateMap<FROM.GalleryImageVersionPublishingProfile, TO.PSGalleryImageVersionPublishingProfile>();
61-
cfg.CreateMap<TO.PSGalleryImageVersionPublishingProfile, FROM.GalleryImageVersionPublishingProfile>();
62-
6359
cfg.CreateMap<FROM.ContainerService, TO.PSContainerServiceList>();
6460
cfg.CreateMap<TO.PSContainerServiceList, TO.PSContainerService>();
6561
cfg.CreateMap<TO.PSContainerService, TO.PSContainerServiceList>();
@@ -81,8 +77,7 @@ private static void Initialize()
8177
cfg.CreateMap<FROM.GalleryImage, TO.PSGalleryImageList>();
8278
cfg.CreateMap<TO.PSGalleryImageList, TO.PSGalleryImage>();
8379
cfg.CreateMap<TO.PSGalleryImage, TO.PSGalleryImageList>();
84-
cfg.CreateMap<FROM.GalleryImageVersion, TO.PSGalleryImageVersionList>()
85-
.AfterMap((src, dest) => dest.GetPublishingProfileSourceId()); // This part is for hiding the breaking change caused by the client library update.
80+
cfg.CreateMap<FROM.GalleryImageVersion, TO.PSGalleryImageVersionList>();
8681
cfg.CreateMap<TO.PSGalleryImageVersionList, TO.PSGalleryImageVersion>();
8782
cfg.CreateMap<TO.PSGalleryImageVersion, TO.PSGalleryImageVersionList>();
8883
cfg.CreateMap<FROM.Image, TO.PSImageList>();
@@ -133,8 +128,7 @@ private static void Initialize()
133128
cfg.CreateMap<TO.PSGallery, FROM.Gallery>();
134129
cfg.CreateMap<FROM.GalleryImage, TO.PSGalleryImage>();
135130
cfg.CreateMap<TO.PSGalleryImage, FROM.GalleryImage>();
136-
cfg.CreateMap<FROM.GalleryImageVersion, TO.PSGalleryImageVersion>()
137-
.AfterMap((src, dest) => dest.GetPublishingProfileSourceId()); // This part is for hiding the breaking change caused by the client library update.
131+
cfg.CreateMap<FROM.GalleryImageVersion, TO.PSGalleryImageVersion>();
138132
cfg.CreateMap<TO.PSGalleryImageVersion, FROM.GalleryImageVersion>();
139133
cfg.CreateMap<FROM.Image, TO.PSImage>();
140134
cfg.CreateMap<TO.PSImage, FROM.Image>();

src/Compute/Compute/Generated/Models/PSGalleryImageVersion.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public string ResourceGroupName
4040
}
4141
}
4242

43+
public GalleryImageVersionPublishingProfile PublishingProfile { get; set; }
4344
public string ProvisioningState { get; set; }
4445
public GalleryImageVersionStorageProfile StorageProfile { get; set; }
4546
public ReplicationStatus ReplicationStatus { get; set; }

src/Compute/Compute/Generated/ProximityPlacementGroup/ProximityPlacementGroupDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public override void ExecuteCmdlet()
9898
public string Name { get; set; }
9999

100100
[Parameter(
101-
ParameterSetName = "DefaultParameter",
102101
Mandatory = false)]
103102
public SwitchParameter Force { get; set; }
104103

src/Compute/Compute/Generated/Snapshot/SnapshotDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public override void ExecuteCmdlet()
8484
public string SnapshotName { get; set; }
8585

8686
[Parameter(
87-
ParameterSetName = "DefaultParameter",
8887
Mandatory = false)]
8988
public SwitchParameter Force { get; set; }
9089

src/Compute/Compute/Generated/VirtualMachineScaleSet/VirtualMachineScaleSetDeallocateMethod.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ public override void ExecuteCmdlet()
115115
public string[] InstanceId { get; set; }
116116

117117
[Parameter(
118-
ParameterSetName = "DefaultParameter",
119-
Mandatory = false)]
120-
[Parameter(
121-
ParameterSetName = "FriendMethod",
122118
Mandatory = false)]
123119
public SwitchParameter Force { get; set; }
124120

src/Compute/Compute/Generated/VirtualMachineScaleSet/VirtualMachineScaleSetDeleteInstancesMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ public override void ExecuteCmdlet()
100100
public string[] InstanceId { get; set; }
101101

102102
[Parameter(
103-
ParameterSetName = "DefaultParameter",
104103
Mandatory = false)]
105104
public SwitchParameter Force { get; set; }
106105

src/Compute/Compute/Generated/VirtualMachineScaleSetRollingUpgrade/VirtualMachineScaleSetRollingUpgradeCancelMethod.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ public override void ExecuteCmdlet()
8484
public string VMScaleSetName { get; set; }
8585

8686
[Parameter(
87-
ParameterSetName = "DefaultParameter",
88-
Mandatory = false)]
89-
[Parameter(
90-
ParameterSetName = "FriendMethod",
9187
Mandatory = false)]
9288
public SwitchParameter Force { get; set; }
9389

src/Compute/Compute/Manual/PSGalleryArtifactSource.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/Compute/Compute/Manual/PSGalleryImageVersion.cs

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/Compute/Compute/Manual/PSGalleryImageVersionPublishingProfile.cs

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/Compute/Compute/Manual/PSManagedArtifact.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/Compute/Compute/help/Remove-AzProximityPlacementGroup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Remove-AzProximityPlacementGroup [-ResourceGroupName] <String> [-Name] <String>
2020

2121
### ResourceIdParameter
2222
```
23-
Remove-AzProximityPlacementGroup [-ResourceId] <String> [-AsJob] [-DefaultProfile <IAzureContextContainer>]
24-
[-WhatIf] [-Confirm] [<CommonParameters>]
23+
Remove-AzProximityPlacementGroup [-Force] [-ResourceId] <String> [-AsJob]
24+
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
2525
```
2626

2727
### ObjectParameter
2828
```
29-
Remove-AzProximityPlacementGroup [-InputObject] <PSProximityPlacementGroup> [-AsJob]
29+
Remove-AzProximityPlacementGroup [-Force] [-InputObject] <PSProximityPlacementGroup> [-AsJob]
3030
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
3131
```
3232

@@ -79,7 +79,7 @@ Forces the command to run without asking for user confirmation.
7979
8080
```yaml
8181
Type: System.Management.Automation.SwitchParameter
82-
Parameter Sets: DefaultParameter
82+
Parameter Sets: (All)
8383
Aliases:
8484

8585
Required: False

src/Compute/Compute/help/Stop-AzVmssRollingUpgrade.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,11 @@ Cancels the current virtual machine scale set rolling upgrade.
1212

1313
## SYNTAX
1414

15-
### DefaultParameter (Default)
1615
```
1716
Stop-AzVmssRollingUpgrade [-ResourceGroupName] <String> [-VMScaleSetName] <String> [-Force] [-AsJob]
1817
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
1918
```
2019

21-
### FriendMethod
22-
```
23-
Stop-AzVmssRollingUpgrade [-Force] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
24-
[<CommonParameters>]
25-
```
26-
2720
## DESCRIPTION
2821
Cancels the current virtual machine scale set rolling upgrade.
2922

@@ -88,7 +81,7 @@ The name of the resource group.
8881
8982
```yaml
9083
Type: System.String
91-
Parameter Sets: DefaultParameter
84+
Parameter Sets: (All)
9285
Aliases:
9386

9487
Required: True
@@ -103,7 +96,7 @@ The name of the VM scale set.
10396
10497
```yaml
10598
Type: System.String
106-
Parameter Sets: DefaultParameter
99+
Parameter Sets: (All)
107100
Aliases: Name
108101

109102
Required: True

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
1717
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
1818
<PackageReference Include="Microsoft.Azure.Insights" Version="0.16.0-preview" />
19-
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="29.1.0" />
19+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="29.2.0" />
2020
<PackageReference Include="Microsoft.Azure.Management.ContainerInstance" Version="2.0.0" />
2121
<PackageReference Include="Microsoft.Azure.Management.Redis" Version="4.4.1" />
2222
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.19.0-preview" />

0 commit comments

Comments
 (0)