I am trying to deploy the SCVMM resource bridge from my VMM server and getting a Import/BIT error during the upload

Macca 1 Reputation point
2024-12-12T00:39:39.29+00:00

When running the SCVMM azure arc resource bridge creation, the script fails with an error around the import of an appliance to the VMMLibrary. I have verified I have permissions to create items on the VMMLibrary share.

Initially the BITS services wasn't running which I started manually but still get an error - now a BITS authentication error - and I have confirmed I can do a bits transfer (Start-bitstransfer)

Thanks in advance.

the following is the original error

{

"errorCode": "InvalidEntityError",

"errorResponse": "{\n"message": "VMM Server doesn't have write permission into the specified library share : \\\\AUXXHSTVMM01.hosting.ss\\MSSCVMMLibrary. Please check if Import-SCLibraryPhysicalResource command and Get-SCLibraryShare command works from VMM Server. Check VMM jobs to see if any of the above mentioned VMM jobs failed with any error. Please use a library share for which there is a write permission associated. To validate the write permission try running Import-SCLibraryPhysicalResource to copy a dummy file using the same useraccount Below set of cmdlets can also be used from VMM powershell to identify the cause of failure - Command to Check Write Permission --- ( $driveinfo = Get-WmiObject Win32_OperatingSystem;$SystemDrive = $driveinfo.SystemDrive;$random = Get-Random;$localPath = 'libpath-' + '785f4a86-9e80-4546-8a22-90a232037206';$FilePath = $SystemDrive + '\\ProgramData' + '\\' + $localPath ;$filename = 'testfile-' + '785f4a86-9e80-4546-8a22-90a232037206' + '.ps1';New-Item -ItemType Directory -Path $FilePath | Out-Null;New-Item -Name $filename -Value \"test file copy\" -Path $FilePath | Out-Null;$FileFullPath = $FilePath + '\\' + $filename ;$session = New-PSSession -ComputerName localhost -EnableNetworkAccess;Invoke-Command -Session $session -Args $FileFullPath -ScriptBlock { $server = Get-SCVMMServer -ComputerName localhost;Import-SCLibraryPhysicalResource -SourcePath \"$args\" -SharePath \"\\\\AUXXHSTVMM01.hosting.ss\\MSSCVMMLibrary\" -VMMServer $server -OverwriteExistingFiles; } | Out-Null;$LibShare = Get-SCLibraryShare | where { $.Path -eq \"\\\\AUXXHSTVMM01.hosting.ss\\MSSCVMMLibrary\" };Read-SCLibraryShare -LibraryShare $LibShare | Out-Null;$script = Get-SCScript -Name $filename | where {$.Directory -eq \"\\\\AUXXHSTVMM01.hosting.ss\\MSSCVMMLibrary\"};Remove-SCScript -Script $script | Out-Null;Remove-Item -Path \"$FilePath\" -Recurse | Out-Null;Remove-PSSession -session $session | Out-Null; )"\n}",

"errorMetadata": {

"errorCategory": "",

"errorAdditionalInfos": null

}

}

Script execution failed with error: Appliance creation has failed.

Please create a support ticket for Azure Arc enabled SCVMM from Azure portal or reach out to

arc-vmm-feedback@microsoft.com.

** this is the error once I started BITs

Import-SCLibraryPhysicalResource : The BITS client job failed to succeed for 'C:\Temp\SW_DVD5_Sys_Ctr_DataCenter_Core_2025_24H2_MultiLang_OpsMgr_MLF_X23-81907.ISO' when attempting 'Start-BitsTransfer' resource with

following error: HTTP status 401: The requested resource requires user authentication.

(Error ID: 24366)

Restart BITS service and try the operation again. Also make sure that the client has permissions on the source and the destination.

At line:1 char:1

  • Import-SCLibraryPhysicalResource -SourcePath "C:\Temp\SW_DVD5_Sys_Ctr ...
  • 
        + CategoryInfo          : ReadError: (:) [Import-SCLibraryPhysicalResource], CarmineException
    
        + FullyQualifiedErrorId : 24366,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.ImportPhysicalResourceCmdlet
    
    

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
459 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pavan Minukuri 1,025 Reputation points Microsoft Vendor
    2024-12-13T20:13:14.9533333+00:00

    Hi Macca
    Welcome to Microsoft Q&A platform, Thanks for asking question here...!
    Step-by-step process to resolve the SCVMM Azure Arc Resource Bridge creation error that your experiencing.
    1.Log in to the VMM server with your SCVMM operations account.
    2.Navigate to the library share: \AUXXHSTVMM01.hosting.ss\MSSCVMMLibrary.
    3.Right-click the folder, select Properties, and open the Security tab.
    4.Ensure your user account has Full Control permissions.
    5.Open PowerShell and run the following command to create a test file:

    New-Item -Path "\\AUXXHSTVMM01.hosting.ss\MSSCVMMLibrary\testfile.txt" -ItemType File
    
    

    6.In PowerShell, execute the following command to test BITS functionality:

    Start-BitsTransfer -Source "C:\Temp\SW_DVD5_Sys_Ctr_DataCenter_Core_2025_24H2_MultiLang_OpsMgr_MLF_X23-81907.ISO" -Destination "\\AUXXHSTVMM01.hosting.ss\MSSCVMMLibrary\testfile.iso"
    
    

    7.Check that no firewall rules are blocking access to the library share on both local and network firewalls.
    8.Verify that the proxy settings are correctly configured for BITS transfers if your environment uses a proxy.
    9. Run Diagnostic commands open PowerShell and run the following commands to validate library share access and permissions:

    $driveinfo = Get-WmiObject Win32_OperatingSystem
    $SystemDrive = $driveinfo.SystemDrive
    $localPath = "$SystemDrive\ProgramData\libpath-test"
    New-Item -ItemType Directory -Path $localPath | Out-Null
    $filename = "testfile.ps1"
    New-Item -Name $filename -Value "test file copy" -Path $localPath | Out-Null
    # Attempt to import the test file back into the library
    Import-SCLibraryPhysicalResource -SourcePath "$localPath\$filename" -SharePath "\\AUXXHSTVMM01.hosting.ss\MSSCVMMLibrary" -OverwriteExistingFiles
    
    

    10.Restart BITS Service. open powershell as an administrator and run:

    Restart-Service BITS
    
    

    11.Check if the service is running properly by executing:

    Get-Service BITS
    
    

    12.Open the SCVMM console and go to the Jobs section.
    13.Look for any failed jobs related to library operations.
    14.Click on each failed job to view detailed error messages for more information.

    Please let us know if you required anything


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.