Skip to content

[BUG] AutoPools Fail to Scale Up and Gives "Application license is blocked as the support for application license is retired as of 02/29/2024" #44857

Open
@scottbright22

Description

@scottbright22

Library name and version

Microsoft.Azure.Batch 16.2.0

Describe the bug

Pools Create programmatically from an AutoPool Job Fail to scale up and give the error: “Application license is blocked as the support for application license is retired as of 02/29/2024”

Pools not created as an autopool work as expected.

No licenses or applications are used by our application.

Both Fixed and AutoScale Pools behave the same.

Expected behavior

Pool Scales up and adds a node.

Actual behavior

Pool fails to add a node. When done in the portal gives "Application license is blocked as the support for application license is retired as of 02/29/2024"

image

Reproduction Steps

    Try
        Dim _pi = New PoolInformation
        _pi.AutoPoolSpecification = New AutoPoolSpecification()
        _pi.AutoPoolSpecification.KeepAlive = False
        _pi.AutoPoolSpecification.PoolLifetimeOption = PoolLifetimeOption.Job

        _pi.AutoPoolSpecification.PoolSpecification = New PoolSpecification
        _pi.AutoPoolSpecification.PoolSpecification.VirtualMachineSize = "standard_f16s_v2"
        _pi.AutoPoolSpecification.PoolSpecification.TaskSlotsPerNode = 1
        _pi.AutoPoolSpecification.PoolSpecification.TaskSchedulingPolicy = New TaskSchedulingPolicy(ComputeNodeFillType.Pack)

        Dim _cj As Microsoft.Azure.Batch.CloudJob = Nothing
        _cj = CMTest.BatchAccountClient.JobOperations.CreateJob()
        _cj.Id = "fredJob1"
        _cj.PoolInformation = New PoolInformation
        _cj.PoolInformation = _pi

        Dim _ir As New ImageReference("windowsserver", "microsoftwindowsserver", "2019-datacenter")
        Dim _vmc As New VirtualMachineConfiguration(_ir, "batch.node.windows amd64") 'Do we need to set Batch Node Agent SKU ID?
        _vmc.LicenseType = ""
        _vmc.NodePlacementConfiguration = New NodePlacementConfiguration(NodePlacementPolicyType.Regional)
        _vmc.OSDisk = New OSDisk
        _vmc.OSDisk.ManagedDisk = New ManagedDisk
        _vmc.OSDisk.ManagedDisk.StorageAccountType = StorageAccountType.PremiumLrs

        _cj.PoolInformation.AutoPoolSpecification.PoolSpecification.VirtualMachineConfiguration = _vmc

        Dim _useAutoScale As Boolean = False
        If _useAutoScale = True Then
            _cj.PoolInformation.AutoPoolSpecification.PoolSpecification.AutoScaleEnabled = True
            Dim Interval As New TimeSpan(0, 15, 0)  'h,m,s Setting
            _cj.PoolInformation.AutoPoolSpecification.PoolSpecification.AutoScaleEvaluationInterval = Interval

            _cj.PoolInformation.AutoPoolSpecification.PoolSpecification.AutoScaleFormula = "$TargetDedicatedNodes = 1;" & vbCrLf & "$TargetLowPriorityNodes = 2;" & vbCrLf
        Else
            _cj.PoolInformation.AutoPoolSpecification.PoolSpecification.TargetDedicatedComputeNodes = 1
            _cj.PoolInformation.AutoPoolSpecification.PoolSpecification.TargetLowPriorityComputeNodes = 2
        End If

        _cj.Commit()
        AZB_Status_Message("*** Auto Pool Job Created ************************")

        Dim _testCj = CMTest.BatchAccountClient.JobOperations.GetJob(_cj.Id)

        If _debugRun = True Then
            CMTest.BatchAccountClient.JobOperations.DeleteJob(_cj.Id)
        End If


    Catch ex As Exception
        AZB_Status_Message("Auto Pool Job Creation Failed. [" & " " & "]" & GetExceptionMsg(ex, GetMethodName))

    End Try

image

Environment

.Net 4.8
Visual Studio 22 (Version 17.10.3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BatchClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions