Jump to content
Updated Privacy Statement
  • 0

MCS Deployment with Azure emphemeral disk


Sean Bernard1709160607

Question

Hi everyone,

 

since may 2021 VAD Service is supporting Azure emphemeral disk via PowerShell.

(https://docs.citrix.com/en-us/citrix-virtual-apps-desktops-service/install-configure/resource-location/azure-resource-manager.html#azure-ephemeral-disks)

 

Is anyone using it already?

I've tried many times but every time I've become an error in WebStudio.

 

Transaction ID: 626c59a3-64b4-4c95-a419-7dc5acb4b7d8
Action Name: MC_AddMachineInitialzation

An error occurred. Contact Citrix Technical Support, and provide the transaction ID above.

Exception:
    ADNTESTCENTER\VDA-EPH-01$ : [ADNTESTCENTER\VDA-EPH-01$, Failed to create the virtual machine; ADNTESTCENTER\VDA-EPH-01$.
    Error Details
    MachineFailure
     : ADNTESTCENTER\VDA-EPH-01$Inner Error:
    Unable to provision a virtual machine with Ephemeral OS Disk because the size of the master image could not be obtained.
    Error Details
    ErrorID
     : PluginUtilities.Exceptions.WrappedPluginExceptionTaskErrorInformation
     : System.Reflection.TargetInvocationException: Unable to provision a virtual machine with Ephemeral OS Disk because the size of the master image could not be obtained.
    
    ===== Original (plugin-side) exception details =====
    System.Reflection.TargetInvocationException: Unable to provision a virtual machine with Ephemeral OS Disk because the size of the master image could not be obtained. ---> Citrix.MachineCreationAPI.MachineCreationException: Unable to provision a virtual machine with Ephemeral OS Disk because the size of the master image could not be obtained.
       at Citrix.AzureRmPlugin.Services.ProvisioningValidationService.<>c__DisplayClass4_0.<ValidateOsDiskSizeForEphemeralOsDiskAndGetDiskPlacement>b__0(IMethodLogger logger)
       at Citrix.AzureCommon.Logging.MethodLogger.Execute[T](Func`1 function)
       at Citrix.AzureRmPlugin.Services.ProvisioningValidationService.ValidateOsDiskSizeForEphemeralOsDiskAndGetDiskPlacement(IAzureMachineSize targetMachineSize, DiskAttachmentRequest imageRequest)
       at Citrix.AzureRmPlugin.MachineCreationAPI.AzureRmPlugin.CreateMachineInternal(ConnectionSettings connectionSettings, ProvisioningSettings provisioningSettings, MachineCreationRequest machineCreationRequest, Boolean usingLegacyApi)
       at Citrix.AzureRmPlugin.MachineCreationAPI.AzureRmPlugin.CreateMachine(ConnectionSettings connectionSettings, HostingSettings hostingSettings, ProvisioningSettings provisioningSettings, MachineCreationRequest machineCreationRequest)
       at CustomProvisioningCommon.CustomProvisioningMachineManager.CreateCompleteVm(ISynchronousProvisioning provisioningService, ISynchronousCustomProvisioning customProvisioningService, IHostingUnitDetails hostingUnitDetails, IMachineSpecification machineSpecification)
       at CustomProvisioningCommon.CustomProvisioningHypervisor.<>c__DisplayClass72_0.<BeginCreateCompleteVM>b__0(CustomProvisioningMachineManager manager)
       at Citrix.HypervisorCommunicationsLibrary.TaskRunItem`2.Run(T manager)
       at HypervisorsCommon.Tasks.TaskRunner`1.Run()
       --- End of inner exception stack trace ---
       at HypervisorsCommon.Tasks.TaskScheduler`1.GetException(Exception taskException)
       at HypervisorsCommon.Tasks.TaskScheduler`1.CompleteTask(IAsyncResult result)
       at HypervisorsCommon.Tasks.TaskScheduler`1.CompleteTask[TTask](IAsyncResult result)
       at CustomProvisioningCommon.CustomProvisioningHypervisor.EndCreateCompleteVM(IHostingUnitDetails hostingUnit, IAsyncResult result)
       at Citrix.HypervisorCommunicationsLibrary.AddInSideAdapter.ICloudHypervisor_AddInViewToContractAdapter.EndCreateCompleteVM(IHostingUnitDetailsContract hostingUnit, IAsyncResult result)
    
    ===== Original (plugin-side) exception properties (count 2) =====
    'Source' = 'HypervisorsCommon'
    'HResult' = '-2146232828'
    
    ===== WrappedPluginException (parent-side) details =====
    PluginUtilities.Exceptions.WrappedPluginException: Unable to provision a virtual machine with Ephemeral OS Disk because the size of the master image could not be obtained. ---> PluginUtilities.Exceptions.WrappedPluginException: Unable to provision a virtual machine with Ephemeral OS Disk because the size of the master image could not be obtained.
    
       --- End of inner exception stack trace ---
    
    Server stack trace: 
       at Citrix.HypervisorCommunicationsLibrary.AddInSideAdapter.ICloudHypervisor_AddInViewToContractAdapter.EndCreateCompleteVM(IHostingUnitDetailsContract hostingUnit, IAsyncResult result)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    
    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Citrix.HypervisorCommunicationsLibrary.Contracts.IHypervisorContract.EndCreateCompleteVM(IHostingUnitDetailsContract hostingUnit, IAsyncResult result)
       at Citrix.HypervisorCommunicationsLibrary.HostSideAdapter.ICloudHypervisor_ContractToHostViewAdapter.EndCreateCompleteVM(IHostingUnitDetails hostingUnit, IAsyncResult result)
       at Citrix.Fma.Sdk.Utilities.Logging.MethodLogging.MethodLogger.Execute[T](Func`1 function)
       at RemoteHCLClient.Hypervisor.LoggedHypervisor.EndCreateCompleteVM(IHostingUnitDetails hostingUnit, IAsyncResult result)
       at Citrix.MachineCreation.NewProvVMSupport.NewProvVMLogic.CreateVmCallback(IAsyncResult result)
    ]
    DesktopStudio_PowerShellHistory : Adds 1 Machines to Machine Catalog 'CAT-MCS-AzureDEMO-Ephemeral16'
    6/25/2021 12:26:28 PM
    
    Get-LogSite  -AdminAddress "localhost:9097" -BearerToken ********
    Start-LogHighLevelOperation  -AdminAddress "localhost:9097" -BearerToken ******** -Source "Studio" -StartTime "6/25/2021 12:26:28 PM" -Text "Adds 1 Machines to Machine Catalog `'CAT-MCS-AzureDEMO-Ephemeral16`'"
    Add-ProvSchemeControllerAddress  -AdminAddress "localhost:9097" -BearerToken ******** -ControllerAddress @("az-cc-01.adn-testcenter.de","az-cc-02.adn-testcenter.de") -LoggingId "1139030f-e748-4a11-857b-6f756a1abb83" -ProvisioningSchemeName "CAT-MCS-AzureDEMO-Ephemeral16"
    Get-AcctADAccount  -AdminAddress "localhost:9097" -BearerToken ******** -IdentityPoolUid "09cdab2c-8f00-4740-9a65-8e678056662e" -Lock $False -MaxRecordCount 2147483647 -State "Available"
    Get-AcctADAccount  -AdminAddress "localhost:9097" -BearerToken ******** -Filter {(((State -eq 'Tainted') -or (State -eq 'Error')) -or (State -eq 'Available'))} -IdentityPoolUid "09cdab2c-8f00-4740-9a65-8e678056662e" -Lock $False -MaxRecordCount 2147483647
    New-ProvVM  -ADAccountName @("ADNTESTCENTER\VDA-EPH-01$") -AdminAddress "localhost:9097" -BearerToken ******** -LoggingId "1139030f-e748-4a11-857b-6f756a1abb83" -ProvisioningSchemeName "CAT-MCS-AzureDEMO-Ephemeral16" -RunAsynchronously
    Remove-ProvTask  -AdminAddress "localhost:9097" -BearerToken ******** -LoggingId "1139030f-e748-4a11-857b-6f756a1abb83" -TaskId "9fb9a4d6-7437-4c25-a401-a8121f1da5d2"
    
    Error Source : CitrixOrchestration

I have tried with an Windows Server 2019 Datacenter (smalldisk) Image with an disk size of 32 GB and also ans normal Windows Server 2019 Datacenter Image with an disk size of 128 GB.

The VDAs should have an size of D4ds_v4 and D16ds_v4. This two sizes have enough temporary disk space to use emphemeral disk.

 

 

 

Has anyone an idea or solution?

Link to comment

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...