Skip to content

Commit 315d318

Browse files
authored
Merge branch 'master' into NewCmdlets
2 parents 86fb7b4 + 73886ec commit 315d318

File tree

207 files changed

+28805
-28656
lines changed

Some content is hidden

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

207 files changed

+28805
-28656
lines changed

src/Accounts/Authentication.Test/LongRunningCmdletTests.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,21 @@ public void JobCopiesCmdletParameterSet()
208208
}
209209

210210

211+
[Fact]
212+
[Trait(Category.AcceptanceType, Category.CheckIn)]
213+
public void NoWaitWithAsJob()
214+
{
215+
var mock = new Mock<ICommandRuntime>();
216+
var cmdlet = new AzureStreamTestCmdlet();
217+
cmdlet.MyInvocation.BoundParameters["AsJob"] = true;
218+
cmdlet.MyInvocation.BoundParameters["NoWait"] = true;
219+
220+
mock.Setup(m => m.WriteObject(It.IsAny<object>())).Throws(new InvalidOperationException("Should not execute as job"));
221+
222+
cmdlet.CommandRuntime = mock.Object;
223+
cmdlet.ExecuteSynchronouslyOrAsJob();
224+
}
225+
211226
AzureStreamTestCmdlet SetupCmdlet(bool CallShouldProcess, bool CallShouldContinue, out Mock<ICommandRuntime> mockRuntime)
212227
{
213228
var cmdlet = new AzureStreamTestCmdlet();

src/Automation/Automation/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* Changed behavior for Start-AzAutomationDscCompilationJob to just start the job instead of waiting for its completion.
2828
* Fix for issue https://github.com/Azure/azure-powershell/issues/8347
2929
* Fix for Get-AzAutomationDscNode when using -Name returns all node. Now it returns matching node only.
30+
* Fixed Start-AzAutomationDscNodeConfigurationDeployment cmdlet to allow multiple executions
3031

3132
## Version 1.2.1
3233
* Fixed New-AzAutomationSoftwareUpdateConfiguration cmdlet bug for Inclusions. Now parameter IncludedKbNumber and IncludedPackageNameMask should work.

src/Automation/Automation/Common/AutomationPSClientDSC.cs

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,11 +1251,10 @@ public NodeConfigurationDeployment StartNodeConfigurationDeployment(string resou
12511251
Requires.Argument("NodeConfiguraionName", nodeConfiguraionName).NotNullOrEmpty().ValidNodeConfigurationName();
12521252

12531253
const string runbookName = "Deploy-NodeConfigurationToAutomationDscNodesV1";
1254+
System.Guid jobId = System.Guid.NewGuid();
12541255

1255-
IDictionary<string, string> processedParameters =
1256-
this.ProcessRunbookParameters(BuildParametersForNodeConfigurationDeploymentRunbook(),
1257-
ProcessParametersFornodeConfigurationRunbook(resourceGroupName, automationAccountName,
1258-
nodeConfiguraionName, nodeNames));
1256+
IDictionary<string, string> processedParameters = this.ProcessRunbookParameters(BuildParametersForNodeConfigurationDeploymentRunbook(),
1257+
ProcessParametersFornodeConfigurationRunbook(jobId, resourceGroupName, automationAccountName, nodeConfiguraionName, nodeNames));
12591258

12601259
JobSchedule jobSchedule = null;
12611260
Job job = null;
@@ -1265,7 +1264,7 @@ public NodeConfigurationDeployment StartNodeConfigurationDeployment(string resou
12651264
job = this.automationManagementClient.Job.Create(
12661265
resourceGroupName,
12671266
automationAccountName,
1268-
new Guid().ToString(),
1267+
jobId.ToString(),
12691268
new JobCreateParameters
12701269
{
12711270
Runbook = new RunbookAssociationProperty
@@ -1280,7 +1279,7 @@ public NodeConfigurationDeployment StartNodeConfigurationDeployment(string resou
12801279
jobSchedule = this.automationManagementClient.JobSchedule.Create(
12811280
resourceGroupName,
12821281
automationAccountName,
1283-
new Guid(),
1282+
jobId,
12841283
new JobScheduleCreateParameters
12851284
{
12861285
Schedule = new ScheduleAssociationProperty { Name = schedule.Name },
@@ -1592,7 +1591,7 @@ private Model.JobStream CreateJobStreamFromJobStreamModel(AutomationManagement.M
15921591
return new Model.JobStream(jobStream, resourceGroupName, automationAccountName, jobId);
15931592
}
15941593

1595-
private IDictionary<string, object> ProcessParametersFornodeConfigurationRunbook(string resourceGroup,
1594+
private IDictionary<string, object> ProcessParametersFornodeConfigurationRunbook(System.Guid jobId, string resourceGroup,
15961595
string automationAccountName, string nodeConfigurationName, string[][] nodeNames, int waitingPeriod = 0,
15971596
int numberOfAttempts = 0)
15981597
{
@@ -1604,6 +1603,7 @@ private IDictionary<string, object> ProcessParametersFornodeConfigurationRunbook
16041603
parameters.Add("AutomationAccountName", automationAccountName);
16051604
parameters.Add("NodeConfigurationName", nodeConfigurationName);
16061605
parameters.Add("ListOfNodeNames", nodeNames);
1606+
parameters.Add("Id", jobId.ToString());
16071607
}
16081608
catch (JsonSerializationException)
16091609
{
@@ -1629,44 +1629,51 @@ private IEnumerable<KeyValuePair<string, RunbookParameter>> BuildParametersForNo
16291629
{
16301630
var paramsForRunbook = new List<KeyValuePair<string, RunbookParameter>>
16311631
{
1632-
new KeyValuePair<string, RunbookParameter>("ResourceGroupName", new RunbookParameter
1632+
new KeyValuePair<string, RunbookParameter>("Id", new RunbookParameter
16331633
{
16341634
IsMandatory = true,
16351635
Position = 0,
16361636
DefaultValue = "",
1637+
Type = "System.Guid"
1638+
}),
1639+
new KeyValuePair<string, RunbookParameter>("ResourceGroupName", new RunbookParameter
1640+
{
1641+
IsMandatory = true,
1642+
Position = 1,
1643+
DefaultValue = "",
16371644
Type = "System.String"
16381645
}),
16391646
new KeyValuePair<string, RunbookParameter>("AutomationAccountName", new RunbookParameter
16401647
{
16411648
IsMandatory = true,
1642-
Position = 1,
1649+
Position = 2,
16431650
DefaultValue = "",
16441651
Type = "System.String"
16451652
}),
16461653
new KeyValuePair<string, RunbookParameter>("NodeConfigurationName", new RunbookParameter
16471654
{
16481655
IsMandatory = true,
1649-
Position = 2,
1656+
Position = 3,
16501657
DefaultValue = "",
16511658
Type = "System.String"
16521659
}),
16531660
new KeyValuePair<string, RunbookParameter>("ListOfNodeNames", new RunbookParameter
16541661
{
16551662
IsMandatory = true,
1656-
Position = 3,
1663+
Position = 4,
16571664
Type = "System.Array"
16581665
}),
16591666
new KeyValuePair<string, RunbookParameter>("WaitingPeriod", new RunbookParameter
16601667
{
16611668
IsMandatory = false,
1662-
Position = 4,
1669+
Position = 5,
16631670
DefaultValue = "60",
16641671
Type = "System.Int32"
16651672
}),
16661673
new KeyValuePair<string, RunbookParameter>("NumberOfTriesPerGroup", new RunbookParameter
16671674
{
16681675
IsMandatory = false,
1669-
Position = 5,
1676+
Position = 6,
16701677
DefaultValue = "100",
16711678
Type = "System.Int32"
16721679
})

src/Automation/Automation/help/Import-AzAutomationRunbook.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
287287

288288
[New-AzAutomationRunbook](./New-AzAutomationRunbook.md)
289289

290-
[New-AzAutomationRunbook](./New-AzAutomationRunbook.md)
291-
292290
[Publish-AzAutomationRunbook](./Publish-AzAutomationRunbook.md)
293291

294292
[Remove-AzAutomationRunbook](./Remove-AzAutomationRunbook.md)

src/Cdn/Cdn.Test/Cdn.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.Cdn" Version="4.0.2-preview" />
14+
<PackageReference Include="Microsoft.Azure.Management.Cdn" Version="4.2.2-preview" />
1515
</ItemGroup>
1616

1717
</Project>

src/Cdn/Cdn.Test/ScenarioTests/CustomDomainTests.ps1

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ function Test-CustomDomainEnableDisableWithRunningEndpoint
9696
Assert-AreEqual $customDomainName $customDomain.Name
9797
Assert-AreEqual $hostName $customDomain.HostName
9898

99-
$enabled = $customDomain | Enable-AzCdnCustomDomain -PassThru
99+
$enabled = $customDomain | Enable-AzCdnCustomDomainHttps -PassThru
100100
Assert-True{$enabled}
101-
Assert-ThrowsContains { Enable-AzCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName } "BadRequest"
101+
Assert-ThrowsContains { Enable-AzCdnCustomDomainHttps -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName } "BadRequest"
102102

103103
Assert-ThrowsContains { Disable-AzCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName } "BadRequest"
104104

@@ -203,22 +203,5 @@ function Test-CustomDomainEnableHttpsWithRunningEndpoint
203203

204204
Assert-ThrowsContains { $customDomain | Disable-AzCdnCustomDomainHttps } "BadRequest"
205205

206-
[int]$counter = 0
207-
do {
208-
SleepInRecordMode 600
209-
$customDomain = Get-AzCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName
210-
} while ($customDomain.CustomHttpsProvisioningState -ne "Enabled" -and $counter++ -lt 50)
211-
212-
$disabled = $customDomain | Disable-AzCdnCustomDomainHttps -PassThru
213-
Assert-True{$disabled}
214-
215-
$customDomain = Get-AzCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName
216-
217-
Assert-AreEqual $customDomain.CustomHttpsProvisioningState "Disabling"
218-
219-
Assert-ThrowsContains { $customDomain | Enable-AzCdnCustomDomainHttps } "BadRequest"
220-
221-
Assert-ThrowsContains { $customDomain | Disable-AzCdnCustomDomainHttps } "BadRequest"
222-
223206
Remove-AzureRmResourceGroup -Name $resourceGroup.ResourceGroupName -Force
224207
}

src/Cdn/Cdn.Test/ScenarioTests/EndpointTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void TestEndpointCreateWithDsa()
5555
{
5656
TestController.NewInstance.RunPowerShellTest(_logger, "Test-EndpointCreateWithDSA");
5757
}
58-
58+
5959
[Fact]
6060
[Trait(Category.AcceptanceType, Category.CheckIn)]
6161
public void TestEndpointCrudAndActionWithAllPropertiesWithPiping()

src/Cdn/Cdn.Test/ScenarioTests/EndpointTests.ps1

Lines changed: 14 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Test-EndpointCrudAndAction
2121
$profileName = getAssetName
2222
$resourceGroup = TestSetup-CreateResourceGroup
2323
$resourceLocation = "EastUS"
24-
$profileSku = "Standard_Verizon"
24+
$profileSku = "Standard_Microsoft"
2525
$createdProfile = New-AzCdnProfile -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -Sku $profileSku
2626

2727
$endpointName = getAssetName
@@ -31,29 +31,11 @@ function Test-EndpointCrudAndAction
3131
$nameAvailability = Get-AzCdnEndpointNameAvailability -EndpointName $endpointName
3232
Assert-True{$nameAvailability.NameAvailable}
3333

34-
$description = 'Sample delivery policy'
35-
$conditions = New-Object 'Collections.Generic.List[Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleCondition]'
36-
$actions = New-Object 'Collections.Generic.List[Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleAction]'
37-
38-
$conditions.Add($(
39-
New-Object -TypeName Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleUrlPathCondition -Prop(@{'Parameters' = New-Object Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSUrlPathConditionParameters -Prop(@{'Path'= '/folder' ; 'MatchType' = 'Literal'})})
40-
))
41-
42-
$actions.Add($(
43-
New-Object -TypeName Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleCacheExpirationAction -Prop(@{'Parameters' = New-Object Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSCacheExpirationActionParameters -Prop(@{'CacheBehavior'= 'Override'; 'CacheDuration'= '10:10:09'})})
44-
))
45-
46-
$rules = New-Object 'Collections.Generic.List[Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRule]'
47-
48-
$rules.Add($(
49-
New-Object Microsoft.Azure.Commands.Cdn.Models.Endpoint.PsDeliveryRule -Prop(@{
50-
'Order' = 1;
51-
'Conditions' = $conditions
52-
'Actions' = $actions
53-
})
54-
))
55-
56-
$deliveryPolicy = New-Object -TypeName Microsoft.Azure.Commands.Cdn.Models.Endpoint.PsDeliveryPolicy -Prop(@{'Description' = $description; 'Rules' = $rules})
34+
$description = 'Sample delivery policy'
35+
$action = New-AzCdnDeliveryRuleAction -HeaderActionType ModifyResponseHeader -Action Append -HeaderName "Access-Control-Allow-Origin" -Value "*"
36+
$condition = New-AzCdnDeliveryRuleCondition -MatchVariable UrlPath -Operator Contains -MatchValue "abc"
37+
$deliveryRule = New-AzCdnDeliveryRule -Name "Rule1" -Order 1 -Condition $condition -Action $action
38+
$deliveryPolicy = New-AzCdnDeliveryPolicy -Description $description -Rule $deliveryRule
5739

5840
$createdEndpoint = New-AzCdnEndpoint -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -OriginName $originName -OriginHostName $originHostName -DeliveryPolicy $deliveryPolicy
5941
Assert-AreEqual $description $createdEndpoint.DeliveryPolicy.Description
@@ -77,12 +59,6 @@ function Test-EndpointCrudAndAction
7759
Assert-True{$started}
7860
Assert-AreEqual "Running" $startedEndpoint.ResourceState
7961

80-
$purged = Unpublish-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -PurgeContent @("/pic1.jpg", "/pic2.jpg") -PassThru
81-
Assert-True{$purged}
82-
83-
$loaded = Publish-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -LoadContent @("/pic1.jpg", "/pic2.jpg") -PassThru
84-
Assert-True{$loaded}
85-
8662
$validateResult = Test-AzCdnCustomDomain -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -CustomDomainHostName "unverifiedcustomdomain.com"
8763
Assert-False{$validateResult.CustomDomainValidated}
8864

@@ -103,7 +79,7 @@ function Test-EndpointCrudAndActionWithPiping
10379
$profileName = getAssetName
10480
$resourceGroup = TestSetup-CreateResourceGroup
10581
$resourceLocation = "EastUS"
106-
$profileSku = "Standard_Verizon"
82+
$profileSku = "Standard_Microsoft"
10783
$createdProfile = New-AzCdnProfile -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -Sku $profileSku
10884

10985
$endpointName = getAssetName
@@ -112,33 +88,8 @@ function Test-EndpointCrudAndActionWithPiping
11288

11389
$nameAvailability = Get-AzCdnEndpointNameAvailability -EndpointName $endpointName
11490
Assert-True{$nameAvailability.NameAvailable}
91+
$createdEndpoint = New-AzCdnEndpoint -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -OriginName $originName -OriginHostName $originHostName
11592

116-
$description = 'Sample delivery policy'
117-
$conditions = New-Object 'Collections.Generic.List[Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleCondition]'
118-
$actions = New-Object 'Collections.Generic.List[Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleAction]'
119-
120-
$conditions.Add($(
121-
New-Object -TypeName Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleUrlPathCondition -Prop(@{'Parameters' = New-Object Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSUrlPathConditionParameters -Prop(@{'Path'= '/folder' ; 'MatchType' = 'Literal'})})
122-
))
123-
124-
$actions.Add($(
125-
New-Object -TypeName Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleCacheExpirationAction -Prop(@{'Parameters' = New-Object Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSCacheExpirationActionParameters -Prop(@{'CacheBehavior'= 'Override'; 'CacheDuration'= '10:10:09'})})
126-
))
127-
128-
$rules = New-Object 'Collections.Generic.List[Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRule]'
129-
130-
$rules.Add($(
131-
New-Object Microsoft.Azure.Commands.Cdn.Models.Endpoint.PsDeliveryRule -Prop(@{
132-
'Order' = 1;
133-
'Conditions' = $conditions;
134-
'Actions' = $actions
135-
})
136-
))
137-
138-
$deliveryPolicy = New-Object -TypeName Microsoft.Azure.Commands.Cdn.Models.Endpoint.PsDeliveryPolicy -Prop(@{'Description' = $description; 'Rules' = $rules})
139-
140-
$createdEndpoint = New-AzCdnEndpoint -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -OriginName $originName -OriginHostName $originHostName -DeliveryPolicy $deliveryPolicy
141-
Assert-AreEqual $description $createdEndpoint.DeliveryPolicy.Description
14293
Assert-AreEqual $endpointName $createdEndpoint.Name
14394
Assert-AreEqual $profileName $createdEndpoint.ProfileName
14495
Assert-AreEqual $resourceGroup.ResourceGroupName $createdEndpoint.ResourceGroupName
@@ -158,40 +109,20 @@ function Test-EndpointCrudAndActionWithPiping
158109
Assert-True{$started}
159110
Assert-AreEqual "Running" $startedEndpoint.ResourceState
160111

161-
$purged = Unpublish-AzCdnEndpointContent -CdnEndpoint $createdEndpoint -PurgeContent @("/pic1.jpg", "/pic2.jpg") -PassThru
162-
Assert-True{$purged}
163-
164-
$loaded = Publish-AzCdnEndpointContent -CdnEndpoint $createdEndpoint -LoadContent @("/pic1.jpg", "/pic2.jpg") -PassThru
165-
Assert-True{$loaded}
166-
167112
$validateResultbyPiping = Test-AzCdnCustomDomain -CdnEndpoint $createdEndpoint -CustomDomainHostName "unverifiedcustomdomain.com"
168113
Assert-False{$validateResultbyPiping.CustomDomainValidated}
169114

170115
$startedEndpoint.OriginHostHeader = "www.microsoft.com"
171116
$startedEndpoint.OriginPath = "/pictures"
172117
$startedEndpoint.QueryStringCachingBehavior = "UseQueryString"
173118

174-
$extensions = New-Object 'System.Collections.Generic.List[String]'
175-
$extensions.Add('jpg')
176-
$extensions.Add('mp4')
177-
$newConditions = New-Object 'Collections.Generic.List[Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleCondition]'
178-
$newConditions.Add($(
179-
New-Object -TypeName Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRuleUrlFileExtensionCondition -Prop(@{'Parameters' = New-Object Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSUrlFileExtensionConditionParameters -Prop(@{'Extensions'= $extensions})})
180-
))
181-
182-
183-
$newRules = New-Object 'Collections.Generic.List[Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSDeliveryRule]'
184-
185-
$newRules.Add($(
186-
New-Object Microsoft.Azure.Commands.Cdn.Models.Endpoint.PsDeliveryRule -Prop(@{
187-
'Order' = 1;
188-
'Conditions' = $newConditions;
189-
'Actions' = $actions
190-
})
191-
))
119+
$description = "Updated Delivery Policy"
120+
$action = New-AzCdnDeliveryRuleAction -HeaderActionType ModifyResponseHeader -Action Append -HeaderName "Access-Control-Allow-Origin" -Value "*"
121+
$condition = New-AzCdnDeliveryRuleCondition -MatchVariable UrlPath -Operator Contains -MatchValue "abc"
122+
$newRule = New-AzCdnDeliveryRule -Name "Rule1" -Order 1 -Condition $condition -Action $action
123+
$deliveryPolicy = New-AzCdnDeliveryPolicy -Description $description -Rule $newRule
192124

193-
$startedEndpoint.DeliveryPolicy.Description = "Updated Delivery Policy"
194-
$startedEndpoint.DeliveryPolicy.Rules = $newRules
125+
$startedEndpoint.DeliveryPolicy = $deliveryPolicy
195126

196127
$updatedEndpoint = Set-AzCdnEndpoint -CdnEndpoint $startedEndpoint
197128
Assert-AreEqual $startedEndpoint.OriginHostHeader $updatedEndpoint.OriginHostHeader

src/Cdn/Cdn.Test/ScenarioTests/SubscriptionTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Test-SubscriptionGetResourceUsage
2121
$subscriptionResourceUsage = Get-AzCdnSubscriptionResourceUsage
2222

2323
Assert-True {$subscriptionResourceUsage.Count -eq 1}
24-
Assert-True {$subscriptionResourceUsage[0].CurrentValue -eq 0}
24+
Assert-True {$subscriptionResourceUsage[0].CurrentValue -eq 16}
2525
}
2626

2727
<#

0 commit comments

Comments
 (0)