Skip to content

Commit cca0469

Browse files
authored
Add Powershell support for Application Gateway Basic SKU (Azure#22309)
* Add PS support for AppGw Basic SKU * Add PS support for AppGw Basic SKU * Update Basic CRUD test * Switch changelog message to past tense * Change test ___location to east us with new service principal * Update tests with connect to az account command * Use device auth in test * Remove identity from crud test * Revert "Remove identity from crud test" This reverts commit fd59e69. * Revert "Use device auth in test" This reverts commit 3d18615. * Revert "Update tests with connect to az account command" This reverts commit aa4fa86. * Remove breaking identity from tests
1 parent 5009870 commit cca0469

File tree

15 files changed

+25604
-20
lines changed

15 files changed

+25604
-20
lines changed

src/Network/Network.Management.Sdk/Generated/Models/ApplicationGatewayProbe.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public ApplicationGatewayProbe()
6565
/// <param name="port">Custom port which will be used for probing the
6666
/// backend servers. The valid value ranges from 1 to 65535. In case
6767
/// not set, port from http settings will be used. This property is
68-
/// valid for Standard_v2 and WAF_v2 only.</param>
68+
/// valid for Basic, Standard_v2, and WAF_v2 only.</param>
6969
/// <param name="name">Name of the probe that is unique within an
7070
/// Application Gateway.</param>
7171
/// <param name="etag">A unique read-only string that changes whenever
@@ -180,7 +180,7 @@ public ApplicationGatewayProbe()
180180
/// Gets or sets custom port which will be used for probing the backend
181181
/// servers. The valid value ranges from 1 to 65535. In case not set,
182182
/// port from http settings will be used. This property is valid for
183-
/// Standard_v2 and WAF_v2 only.
183+
/// Basic, Standard_v2 and WAF_v2 only.
184184
/// </summary>
185185
[JsonProperty(PropertyName = "properties.port")]
186186
public int? Port { get; set; }

src/Network/Network.Management.Sdk/Generated/Models/ApplicationGatewaySku.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public ApplicationGatewaySku()
3232
/// <param name="name">Name of an application gateway SKU. Possible
3333
/// values include: 'Standard_Small', 'Standard_Medium',
3434
/// 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2',
35-
/// 'WAF_v2'</param>
35+
/// 'WAF_v2', 'Basic'</param>
3636
/// <param name="tier">Tier of an application gateway. Possible values
37-
/// include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2'</param>
37+
/// include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2', 'Basic'</param>
3838
/// <param name="capacity">Capacity (instance count) of an application
3939
/// gateway.</param>
4040
public ApplicationGatewaySku(string name = default(string), string tier = default(string), int? capacity = default(int?))
@@ -53,14 +53,14 @@ public ApplicationGatewaySku()
5353
/// <summary>
5454
/// Gets or sets name of an application gateway SKU. Possible values
5555
/// include: 'Standard_Small', 'Standard_Medium', 'Standard_Large',
56-
/// 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2'
56+
/// 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2', 'Basic'
5757
/// </summary>
5858
[JsonProperty(PropertyName = "name")]
5959
public string Name { get; set; }
6060

6161
/// <summary>
6262
/// Gets or sets tier of an application gateway. Possible values
63-
/// include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2'
63+
/// include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2', 'Basic'
6464
/// </summary>
6565
[JsonProperty(PropertyName = "tier")]
6666
public string Tier { get; set; }

src/Network/Network.Management.Sdk/Generated/Models/ApplicationGatewaySkuName.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ public static class ApplicationGatewaySkuName
2323
public const string WAFLarge = "WAF_Large";
2424
public const string StandardV2 = "Standard_v2";
2525
public const string WAFV2 = "WAF_v2";
26+
public const string Basic = "Basic";
2627
}
2728
}

src/Network/Network.Management.Sdk/Generated/Models/ApplicationGatewayTier.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ public static class ApplicationGatewayTier
2020
public const string WAF = "WAF";
2121
public const string StandardV2 = "Standard_v2";
2222
public const string WAFV2 = "WAF_v2";
23+
public const string Basic = "Basic";
2324
}
2425
}

src/Network/Network.Management.Sdk/Generated/Models/ApplicationGatewayTierTypes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ public static class ApplicationGatewayTierTypes
2020
public const string WAF = "WAF";
2121
public const string StandardV2 = "Standard_v2";
2222
public const string WAFV2 = "WAF_v2";
23+
public const string Basic = "Basic";
2324
}
2425
}

src/Network/Network.Test/ScenarioTests/ApplicationGatewayTests.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,30 @@ public void TestApplicationGatewayCRUDSubItems()
108108
TestRunner.RunTestScript(string.Format("Test-ApplicationGatewayCRUDSubItems -baseDir '{0}'", AppDomain.CurrentDomain.BaseDirectory));
109109
}
110110

111+
[Fact]
112+
[Trait(Category.AcceptanceType, Category.CheckIn)]
113+
[Trait(Category.Owner, NrpTeamAlias.nvadev)]
114+
public void TestApplicationGatewayBasicSkuCRUD()
115+
{
116+
TestRunner.RunTestScript(string.Format("Test-ApplicationGatewayBasicSkuCRUD -baseDir '{0}'", AppDomain.CurrentDomain.BaseDirectory));
117+
}
118+
119+
[Fact]
120+
[Trait(Category.AcceptanceType, Category.CheckIn)]
121+
[Trait(Category.Owner, NrpTeamAlias.nvadev)]
122+
public void TestApplicationGatewayBasicSkuLimitsAndUnsupportedFeatures()
123+
{
124+
TestRunner.RunTestScript(string.Format("Test-ApplicationGatewayBasicSkuLimitsAndUnsupportedFeatures -baseDir '{0}'", AppDomain.CurrentDomain.BaseDirectory));
125+
}
126+
127+
[Fact]
128+
[Trait(Category.AcceptanceType, Category.CheckIn)]
129+
[Trait(Category.Owner, NrpTeamAlias.nvadev)]
130+
public void TestApplicationGatewayBasicSkuMigration()
131+
{
132+
TestRunner.RunTestScript(string.Format("Test-ApplicationGatewayBasicSkuMigration -baseDir '{0}'", AppDomain.CurrentDomain.BaseDirectory));
133+
}
134+
111135
[Fact]
112136
[Trait(Category.AcceptanceType, Category.CheckIn)]
113137
[Trait(Category.Owner, NrpTeamAlias.nvadev)]

0 commit comments

Comments
 (0)