You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (($BillingModel-eq'Capacity') -and ($UsageReportingEnabled))
420
-
{
421
-
Log-Warning "Billing model is set to Capacity and Usage Reporting is enabled. This data will be used to guide product improvements and will not be used for billing purposes. If this is not desired please halt this operation and rerun with -UsageReportingEnabled:`$false. Execution will continue in 20 seconds."
Log-Throw -Message "Agreement number is null or empty when BillingModel is set to Capacity"-CallingFunction $PSCmdlet.MyInvocation.MyCommand.Name
672
-
}
673
-
674
-
if (($BillingModel-eq'Capacity') -and ($UsageReportingEnabled))
675
-
{
676
-
Log-Warning "Billing model is set to Capacity and Usage Reporting is enabled. This data will be used to guide product improvements and will not be used for billing purposes. If this is not desired please halt this operation and rerun with -UsageReportingEnabled:`$false. Execution will continue in 20 seconds."
677
-
Start-Sleep-Seconds 20
678
-
}
679
658
680
659
if ($TokenOutputFilePath-and (-not (Test-Path-Path $TokenOutputFilePath-PathType Leaf)))
681
660
{
@@ -697,8 +676,8 @@ Function Get-AzsRegistrationToken{
Log-Throw -Message "Custom BillingModel is not supported for StampVersion less than $CustomBillingModelVersion"-CallingFunction $PSCmdlet.MyInvocation.MyCommand.Name
1263
1242
}
1243
+
1244
+
if (($BillingModel-eq'Capacity') -and ([String]::IsNullOrEmpty($AgreementNumber))) {
1245
+
Log-Throw -Message "Agreement number is null or empty when BillingModel is set to Capacity"-CallingFunction $PSCmdlet.MyInvocation.MyCommand.Name
1246
+
}
1247
+
1248
+
if (($BillingModel-eq'Capacity') -and ($UsageReportingEnabled)) {
1249
+
Log-Warning "Disabling Usage Reporting as it is not supported for Capacity billing model."
0 commit comments