-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArcGIS_xDisk.psm1 has DataDisk hardcoded as DiskNumber =2, but this is not present on VMs that do not have a temporary disk. #510
Comments
… then reference disk number from disk object.
… then reference disk number from disk object.
I noticed the following template contains additional logic for formatting and partitioning: https://github.com/Esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Configurations-Azure/DiskConfiguration.ps1 However, it contains the same hardcoded integer value assuming that a temp disk is always present. Do we assume that partition happens before the basedeployment DSC configuration is run? |
… then reference disk number from disk object.
@AndrewQuartic Thanks! This has been addressed in ArcGIS Enterprise Cloud Builder 11.3 for Microsoft Azure. |
@cameronkroeker This issue is not yet addressed, we just forked and attempted again using a VM SKU without temp disk and the result was the same. |
We are proposing the following code fix:
|
It didn't work using ArcGIS Enterprise Cloud Builder 11.3 for Microsoft Azure or didn't work using the DSC ArcGIS Module directly? Just want to verify because it is not designed to work outside of CloudBuilder. |
Module Version
ModuleVersion = '4.2.0'
Affected Resource(s)
ArcGIS Enterprise Cloud Builder 11.2 for Microsoft Azure
Configuration Files
n/a for now
Expected Behavior
I deployed a VM using Standard_D8as_v5, but this SKU does not have a temporary disk.
I redeployed using Standard_D8ds_v5, which has a temp disk, and it works. (well it got further, but that's another issue)
I looked at the PowerShell files and found this hard coded - “ArcGIS_xDisk.psm1”

When I run 'Get-Disk' on the other SKU, it only had disk 0 and 1, no disk 2.
When changing SKU, this is resolved, as disk 2 is now the data disk.
There needs to be logic added to check for this scenario.
Actual Behavior
Error message: "DSC Configuration 'BaseDeploymentSingleTierConfiguration' completed with error(s). Following are the first few: No MSFT_Disk objects found with property 'Number' equal to '2'.
Steps to Reproduce
Build a VM with a SKU with no temp disk.
The text was updated successfully, but these errors were encountered: