-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing VMSize Test: No Longer Checking for top-level parameter (#710)
* Fixing VMSize Test: No Longer Checking for top-level parameter (Fixes #695) * Allowing VMSize to be in any parameter, not just top-level parameters * Adding VMSize-With-Alternate-Parameter-Name passing test * Updating VMSize test: Not considering resource parameters as valid values * Removing NestedVMSize failure test * Update VMSize-With-Alternate-Parameter-Name.json Co-authored-by: James Brundage <@github.com> Co-authored-by: Brian Moore <[email protected]>
- Loading branch information
1 parent
7f568a1
commit 4da6d95
Showing
3 changed files
with
43 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 0 additions & 102 deletions
102
unit-tests/VM-Size-Should-Be-A-Parameter/Fail/NestedVMSize.json
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
unit-tests/VM-Size-Should-Be-A-Parameter/Pass/VMSize-With-Alternate-Parameter-Name.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"nodeSku": {} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.MachineLearningServices/workspaces/computes", | ||
"apiVersion": "2018-11-19", | ||
"name": "[concat(parameters('workspaceName'), '/gpu-cluster')]", | ||
"location": "[parameters('location')]", | ||
"properties": { | ||
"computeType": "AmlCompute", | ||
"computeLocation": "[parameters('location')]", | ||
"description": "gpu nodes", | ||
"properties": { | ||
"remoteLoginPortPublicAccess": "Enabled", | ||
"scaleSettings": { | ||
"maxNodeCount": 4, | ||
"minNodeCount": 0 | ||
}, | ||
"subnet": { | ||
"id": "[variables('subnet')]" | ||
}, | ||
"vmSize": "[parameters('nodeSku')]" | ||
} | ||
} | ||
} | ||
] | ||
} |