Skip to content

Commit 8c83c74

Browse files
hyonholeeMaddie Clayton
authored andcommitted
Update VMSS VM feature (#6170)
1 parent c1de8ef commit 8c83c74

File tree

168 files changed

+10356
-970
lines changed

Some content is hidden

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

168 files changed

+10356
-970
lines changed

src/ResourceManager/Compute/AzureRM.Compute.psd1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ CmdletsToExport = 'Remove-AzureRmAvailabilitySet', 'Get-AzureRmAvailabilitySet',
177177
'Get-AzureRmVmssDiskEncryption', 'Get-AzureRmVmssVMDiskEncryption',
178178
'Export-AzureRmLogAnalyticRequestRateByInterval',
179179
'Export-AzureRmLogAnalyticThrottledRequests',
180-
'Repair-AzureRmVmssServiceFabricUpdateDomain'
180+
'Repair-AzureRmVmssServiceFabricUpdateDomain',
181+
'New-AzureRmVMDataDisk', 'Update-AzureRmVmssVM'
181182

182183
# Variables to export from this module
183184
# VariablesToExport = @()

src/ResourceManager/Compute/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* VMSS VM Update feature
22+
- Added `Update-AzureRmVmssVM` and `New-AzureRmVMDataDisk` cmdlets
23+
- Add VirtualMachineScaleSetVM parameter to `Add-AzureRmVMDataDisk` cmdlet to support adding a data disk to Vmss VM.
2124

2225
## Version 5.0.0
2326
* `New-AzureRmVm` and `New-AzureRmVmss` support verbose output of parameters

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ function Test-VirtualMachineProfile
6666
$p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $dataDiskVhdUri2 -CreateOption Empty;
6767

6868
# Managed data disk setting
69-
$managedDataDiskId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rggroup/providers/Microsoft.Compute/disks/dataDisk";
69+
$managedDataDiskId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rggroup/providers/Microsoft.Compute/disks/testDataDisk3";
70+
Assert-ThrowsContains `
71+
{ Add-AzureRmVMDataDisk -VM $p -Name 'dataDisk' -Caching 'ReadOnly' -DiskSizeInGB $null -Lun 2 -CreateOption Empty -ManagedDiskId $managedDataDiskId -StorageAccountType Standard_LRS; } `
72+
"does not match with given managed disk ID";
73+
7074
$p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk3' -Caching 'ReadOnly' -DiskSizeInGB $null -Lun 2 -CreateOption Empty -ManagedDiskId $managedDataDiskId -StorageAccountType Standard_LRS;
7175
Assert-AreEqual $managedDataDiskId $p.StorageProfile.DataDisks[2].ManagedDisk.Id;
7276
Assert-AreEqual "Standard_LRS" $p.StorageProfile.DataDisks[2].ManagedDisk.StorageAccountType;
@@ -88,13 +92,13 @@ function Test-VirtualMachineProfile
8892
Assert-AreEqual $p.StorageProfile.DataDisks[0].DiskSizeGB 10;
8993
Assert-AreEqual $p.StorageProfile.DataDisks[0].Lun 0;
9094
Assert-AreEqual $p.StorageProfile.DataDisks[0].Vhd.Uri $dataDiskVhdUri1;
91-
Assert-AreEqual $false $p.StorageProfile.DataDisks[0].WriteAcceleratorEnabled;
95+
Assert-Null $p.StorageProfile.DataDisks[0].WriteAcceleratorEnabled;
9296

9397
Assert-AreEqual $p.StorageProfile.DataDisks[1].Caching 'ReadOnly';
9498
Assert-AreEqual $p.StorageProfile.DataDisks[1].DiskSizeGB 11;
9599
Assert-AreEqual $p.StorageProfile.DataDisks[1].Lun 1;
96100
Assert-AreEqual $p.StorageProfile.DataDisks[1].Vhd.Uri $dataDiskVhdUri2;
97-
Assert-AreEqual $false $p.StorageProfile.DataDisks[1].WriteAcceleratorEnabled;
101+
Assert-Null $p.StorageProfile.DataDisks[1].WriteAcceleratorEnabled;
98102

99103
# Remove all data disks
100104
$p = $p | Remove-AzureRmVMDataDisk;

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineScaleSetTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,12 @@ public void TestVirtualMachineScaleSetRedeploy()
128128
{
129129
ComputeTestController.NewInstance.RunPsTest("Test-VirtualMachineScaleSetRedeploy");
130130
}
131+
132+
[Fact]
133+
[Trait(Category.AcceptanceType, Category.CheckIn)]
134+
public void TestVirtualMachineScaleSetVMUpdate()
135+
{
136+
ComputeTestController.NewInstance.RunPsTest("Test-VirtualMachineScaleSetVMUpdate");
137+
}
131138
}
132139
}

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineScaleSetTests.ps1

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,4 +1715,159 @@ function Test-VirtualMachineScaleSetRedeploy
17151715
# Cleanup
17161716
Clean-ResourceGroup $rgname
17171717
}
1718+
}
1719+
1720+
<#
1721+
.SYNOPSIS
1722+
Test Virtual Machine Scale Set VM Update
1723+
#>
1724+
function Test-VirtualMachineScaleSetVMUpdate
1725+
{
1726+
# Setup
1727+
$rgname = Get-ComputeTestResourceName
1728+
1729+
try
1730+
{
1731+
# Common
1732+
$loc = Get-Location "Microsoft.Compute" "virtualMachines" "East US 2";
1733+
New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;
1734+
1735+
# SRP
1736+
$stoname = 'sto' + $rgname;
1737+
$stotype = 'Standard_GRS';
1738+
New-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype;
1739+
$stoaccount = Get-AzureRMStorageAccount -ResourceGroupName $rgname -Name $stoname;
1740+
1741+
# NRP
1742+
$subnet = New-AzureRMVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24";
1743+
$vnet = New-AzureRMVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -Subnet $subnet;
1744+
$vnet = Get-AzureRMVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname;
1745+
$subnetId = $vnet.Subnets[0].Id;
1746+
1747+
# New VMSS Parameters
1748+
$vmssName = 'vmss' + $rgname;
1749+
$vmssType = 'Microsoft.Compute/virtualMachineScaleSets';
1750+
1751+
$adminUsername = 'Foo12';
1752+
$adminPassword = Get-PasswordForVM;
1753+
1754+
$imgRef = Get-DefaultCRPImage -loc $loc;
1755+
1756+
# Create VMSS with managed disk
1757+
$ipCfg = New-AzureRmVmssIPConfig -Name 'test' -SubnetId $subnetId;
1758+
$vmss = New-AzureRmVmssConfig -Location $loc -SkuCapacity 2 -SkuName 'Standard_A1_v2' -UpgradePolicyMode 'Automatic' `
1759+
| Add-AzureRmVmssNetworkInterfaceConfiguration -Name 'test' -Primary $true -IPConfiguration $ipCfg `
1760+
| Set-AzureRmVmssOSProfile -ComputerNamePrefix 'test' -AdminUsername $adminUsername -AdminPassword $adminPassword `
1761+
| Set-AzureRmVmssStorageProfile -OsDiskCreateOption 'FromImage' -OsDiskCaching 'None' `
1762+
-ImageReferenceOffer $imgRef.Offer -ImageReferenceSku $imgRef.Skus -ImageReferenceVersion $imgRef.Version `
1763+
-ImageReferencePublisher $imgRef.PublisherName;
1764+
1765+
$result = New-AzureRmVmss -ResourceGroupName $rgname -Name $vmssName -VirtualMachineScaleSet $vmss;
1766+
1767+
Assert-AreEqual $loc.ToLowerInvariant().Replace(" ", "") $result.Location;
1768+
Assert-AreEqual 2 $result.Sku.Capacity;
1769+
Assert-AreEqual 'Standard_A1_v2' $result.Sku.Name;
1770+
Assert-AreEqual 'Automatic' $result.UpgradePolicy.Mode;
1771+
1772+
# Validate Network Profile
1773+
Assert-AreEqual 'test' $result.VirtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].Name;
1774+
Assert-AreEqual $true $result.VirtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].Primary;
1775+
Assert-AreEqual $subnetId `
1776+
$result.VirtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].IpConfigurations[0].Subnet.Id;
1777+
1778+
# Validate OS Profile
1779+
Assert-AreEqual 'test' $result.VirtualMachineProfile.OsProfile.ComputerNamePrefix;
1780+
Assert-AreEqual $adminUsername $result.VirtualMachineProfile.OsProfile.AdminUsername;
1781+
Assert-Null $result.VirtualMachineProfile.OsProfile.AdminPassword;
1782+
1783+
# Validate Storage Profile
1784+
Assert-AreEqual 'FromImage' $result.VirtualMachineProfile.StorageProfile.OsDisk.CreateOption;
1785+
Assert-AreEqual 'None' $result.VirtualMachineProfile.StorageProfile.OsDisk.Caching;
1786+
Assert-AreEqual $imgRef.Offer $result.VirtualMachineProfile.StorageProfile.ImageReference.Offer;
1787+
Assert-AreEqual $imgRef.Skus $result.VirtualMachineProfile.StorageProfile.ImageReference.Sku;
1788+
Assert-AreEqual $imgRef.Version $result.VirtualMachineProfile.StorageProfile.ImageReference.Version;
1789+
Assert-AreEqual $imgRef.PublisherName $result.VirtualMachineProfile.StorageProfile.ImageReference.Publisher;
1790+
1791+
$vmss = Get-AzureRmVmss -ResourceGroupName $rgname -VMScaleSetName $vmssName;
1792+
$vmssVMs = Get-AzureRmVmssVM -ResourceGroupName $rgname -VMScaleSetName $vmssName;
1793+
1794+
# Add a data disk to VMSS VM using VMSS VM object (with piping)
1795+
$diskname0 = 'datadisk0';
1796+
New-AzureRmDiskConfig -Location $loc -DiskSizeGB 5 -AccountType Standard_LRS -OsType Windows -CreateOption Empty `
1797+
| New-AzureRmDisk -ResourceGroupName $rgname -DiskName $diskname0;
1798+
$disk0 = Get-AzureRmDisk -ResourceGroupName $rgname -DiskName $diskname0;
1799+
1800+
$result = $vmssVMs[0] `
1801+
| Add-AzureRmVmDataDisk -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -CreateOption Attach -StorageAccountType Standard_LRS -ManagedDiskId $disk0.Id `
1802+
| Update-AzureRmVmssVM;
1803+
1804+
$vmss = Get-AzureRmVmss -ResourceGroupName $rgname -VMScaleSetName $vmssName;
1805+
$vmssVMs = Get-AzureRmVmssVM -ResourceGroupName $rgname -VMScaleSetName $vmssName;
1806+
Assert-AreEqual 1 $vmssVMs[0].StorageProfile.DataDisks[0].Lun;
1807+
Assert-AreEqual $diskname0 $vmssVMs[0].StorageProfile.DataDisks[0].Name;
1808+
Assert-AreEqual 10 $vmssVMs[0].StorageProfile.DataDisks[0].DiskSizeGB;
1809+
Assert-AreEqual "Attach" $vmssVMs[0].StorageProfile.DataDisks[0].CreateOption;
1810+
Assert-AreEqual "Standard_LRS" $vmssVMs[0].StorageProfile.DataDisks[0].ManagedDisk.StorageAccountType;
1811+
Assert-AreEqual $disk0.Id $vmssVMs[0].StorageProfile.DataDisks[0].ManagedDisk.Id;
1812+
1813+
# Adding a data disk to a VMSS VM using resource group name, VMSS name and instance ID..
1814+
$instance_id = $vmssVMs[0].InstanceId;
1815+
$diskname1 = 'datadisk1';
1816+
New-AzureRmDiskConfig -Location $loc -DiskSizeGB 5 -AccountType Standard_LRS -OsType Windows -CreateOption Empty `
1817+
| New-AzureRmDisk -ResourceGroupName $rgname -DiskName $diskname1;
1818+
$disk1 = Get-AzureRmDisk -ResourceGroupName $rgname -DiskName $diskname1;
1819+
1820+
$diskname2 = 'datadisk2';
1821+
New-AzureRmDiskConfig -Location $loc -DiskSizeGB 5 -AccountType Standard_LRS -OsType Windows -CreateOption Empty `
1822+
| New-AzureRmDisk -ResourceGroupName $rgname -DiskName $diskname2;
1823+
$disk2 = Get-AzureRmDisk -ResourceGroupName $rgname -DiskName $diskname2;
1824+
1825+
Assert-ThrowsContains { New-AzureRmVMDataDisk -Name 'wrongdiskname' -Caching 'ReadOnly' -Lun 2 -CreateOption Attach -StorageAccountType Standard_LRS -ManagedDiskId $disk1.Id; } `
1826+
"does not match with given managed disk ID";
1827+
1828+
$datadisk1 = New-AzureRmVMDataDisk -Caching 'ReadOnly' -Lun 2 -CreateOption Attach -StorageAccountType Standard_LRS -ManagedDiskId $disk1.Id;
1829+
$datadisk2 = New-AzureRmVMDataDisk -Caching 'ReadOnly' -Lun 3 -CreateOption Attach -StorageAccountType Standard_LRS -ManagedDiskId $disk2.Id;
1830+
$result = Update-AzureRmVmssVM -ResourceGroupName $rgname -VMScaleSetName $vmssName -InstanceId $instance_id -DataDisk $datadisk1,$datadisk2
1831+
1832+
$vmss = Get-AzureRmVmss -ResourceGroupName $rgname -VMScaleSetName $vmssName;
1833+
$vmssVMs = Get-AzureRmVmssVM -ResourceGroupName $rgname -VMScaleSetName $vmssName;
1834+
1835+
Assert-AreEqual 2 $vmssVMs[0].StorageProfile.DataDisks[1].Lun;
1836+
Assert-AreEqual $diskname1 $vmssVMs[0].StorageProfile.DataDisks[1].Name;
1837+
Assert-AreEqual 5 $vmssVMs[0].StorageProfile.DataDisks[1].DiskSizeGB;
1838+
Assert-AreEqual "Attach" $vmssVMs[0].StorageProfile.DataDisks[1].CreateOption;
1839+
Assert-AreEqual "Standard_LRS" $vmssVMs[0].StorageProfile.DataDisks[1].ManagedDisk.StorageAccountType;
1840+
Assert-AreEqual $disk1.Id $vmssVMs[0].StorageProfile.DataDisks[1].ManagedDisk.Id;
1841+
1842+
Assert-AreEqual 3 $vmssVMs[0].StorageProfile.DataDisks[2].Lun;
1843+
Assert-AreEqual $diskname2 $vmssVMs[0].StorageProfile.DataDisks[2].Name;
1844+
Assert-AreEqual 5 $vmssVMs[0].StorageProfile.DataDisks[2].DiskSizeGB;
1845+
Assert-AreEqual "Attach" $vmssVMs[0].StorageProfile.DataDisks[2].CreateOption;
1846+
Assert-AreEqual "Standard_LRS" $vmssVMs[0].StorageProfile.DataDisks[2].ManagedDisk.StorageAccountType;
1847+
Assert-AreEqual $disk2.Id $vmssVMs[0].StorageProfile.DataDisks[2].ManagedDisk.Id;
1848+
1849+
# Adding a data disk to a VMSS VM using resource ID.
1850+
$resource_id = $vmssVMs[0].Id;
1851+
$diskname3 = 'datadisk3';
1852+
$diskconfig = New-AzureRmDiskConfig -Location $loc -DiskSizeGB 5 -AccountType Standard_LRS -OsType Windows -CreateOption Empty;
1853+
New-AzureRmDisk -ResourceGroupName $rgname -DiskName $diskname3 -Disk $diskconfig
1854+
$disk3 = Get-AzureRmDisk -ResourceGroupName $rgname -DiskName $diskname3;
1855+
1856+
$datadisk3 = New-AzureRmVMDataDisk -Caching 'ReadOnly' -Lun 4 -CreateOption Attach -StorageAccountType Standard_LRS -ManagedDiskId $disk3.Id;
1857+
$result = Update-AzureRmVmssVM -ResourceId $resource_id -DataDisk $datadisk3
1858+
1859+
$vmss = Get-AzureRmVmss -ResourceGroupName $rgname -VMScaleSetName $vmssName;
1860+
$vmssVMs = Get-AzureRmVmssVM -ResourceGroupName $rgname -VMScaleSetName $vmssName;
1861+
Assert-AreEqual 4 $vmssVMs[0].StorageProfile.DataDisks[3].Lun;
1862+
Assert-AreEqual $diskname3 $vmssVMs[0].StorageProfile.DataDisks[3].Name;
1863+
Assert-AreEqual 5 $vmssVMs[0].StorageProfile.DataDisks[3].DiskSizeGB;
1864+
Assert-AreEqual "Attach" $vmssVMs[0].StorageProfile.DataDisks[3].CreateOption;
1865+
Assert-AreEqual "Standard_LRS" $vmssVMs[0].StorageProfile.DataDisks[3].ManagedDisk.StorageAccountType;
1866+
Assert-AreEqual $disk3.Id $vmssVMs[0].StorageProfile.DataDisks[3].ManagedDisk.Id;
1867+
}
1868+
finally
1869+
{
1870+
# Cleanup
1871+
Clean-ResourceGroup $rgname
1872+
}
17181873
}

src/ResourceManager/Compute/Commands.Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineScaleSetTests/TestVirtualMachineScaleSetVMUpdate.json

Lines changed: 8258 additions & 0 deletions
Large diffs are not rendered by default.

src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
<Compile Include="VirtualMachine\VirtualMachineBaseCmdlet.cs" />
322322
<Compile Include="Common\ConstantStringTypes.cs" />
323323
<Compile Include="Models\PSVirtualMachine.cs" />
324+
<Compile Include="Models\PSVirtualMachineDataDisk.cs" />
324325
<Compile Include="VirtualMachine\Operation\NewAzureVMCommand.cs" />
325326
<Compile Include="VirtualMachine\Action\StartAzureVMCommand.cs" />
326327
<Compile Include="VirtualMachine\Action\StopAzureVMCommand.cs" />
@@ -334,6 +335,7 @@
334335
</Compile>
335336
<Compile Include="VirtualMachine\Config\SetAzureVMOperatingSystemCommand.cs" />
336337
<Compile Include="VirtualMachine\Config\AddAzureVMDataDiskCommand.cs" />
338+
<Compile Include="VirtualMachine\Config\NewAzureVMDataDiskCommand.cs" />
337339
<Compile Include="VirtualMachine\Config\AddAzureVMNetworkInterfaceCommand.cs" />
338340
<Compile Include="VirtualMachine\VirtualMachineCmdletHelper.cs" />
339341
</ItemGroup>

src/ResourceManager/Compute/Commands.Compute/Common/ComputeClientBaseCmdlet.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using System;
16+
using System.Globalization;
17+
using System.Management.Automation;
1518
using Microsoft.Azure.Commands.Compute.Common;
1619
using Microsoft.Azure.Commands.ResourceManager.Common;
17-
using System;
1820

1921
namespace Microsoft.Azure.Commands.Compute
2022
{
@@ -68,6 +70,22 @@ protected void ExecuteClientAction(Action action)
6870
throw new ComputeCloudException(ex);
6971
}
7072
}
73+
74+
protected void ThrowInvalidArgumentError(string errorMessage, string arg)
75+
{
76+
ThrowTerminatingError
77+
(new ErrorRecord(
78+
new ArgumentException(string.Format(CultureInfo.InvariantCulture,
79+
errorMessage, arg)),
80+
"InvalidArgument",
81+
ErrorCategory.InvalidArgument,
82+
null));
83+
}
84+
85+
protected string GetDiskNameFromId(string Id)
86+
{
87+
return Id.Substring(Id.LastIndexOf('/') + 1);
88+
}
7189
}
7290
}
7391

src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace Microsoft.Azure.Commands.Compute.Common
1717
public static class HelpMessages
1818
{
1919
public const string VMProfile = "The virtual machine profile.";
20+
public const string VmssVMProfile = "The virtual machine scale set VM profile.";
2021
public const string VMSize = "The virtual machine size.";
2122
public const string VMComputerName = "The virtual machine's omputer name.";
2223
public const string VMCredential = "The virtual machine's credential.";

src/ResourceManager/Compute/Commands.Compute/Extension/VirtualMachineScaleSetExtensionBaseCmdlet.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,5 @@ protected string GetVolumeType(string VolumeType, VirtualMachineScaleSetStorageP
100100
return VolumeType;
101101
}
102102
}
103-
104-
protected void ThrowInvalidArgumentError(string errorMessage, string arg)
105-
{
106-
ThrowTerminatingError
107-
(new ErrorRecord(
108-
new ArgumentException(string.Format(CultureInfo.InvariantCulture,
109-
errorMessage, arg)),
110-
"InvalidArgument",
111-
ErrorCategory.InvalidArgument,
112-
null));
113-
}
114103
}
115104
}

src/ResourceManager/Compute/Commands.Compute/Generated/AvailabilitySet/AvailabilitySetCreateOrUpdateMethod.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

src/ResourceManager/Compute/Commands.Compute/Generated/AvailabilitySet/AvailabilitySetDeleteMethod.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

src/ResourceManager/Compute/Commands.Compute/Generated/AvailabilitySet/AvailabilitySetGetMethod.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

0 commit comments

Comments
 (0)