Apply configuration override for Azure Cli version for storage account creation
Where should the reviewer start?
The changes.
How can this be manually tested? (brief repro steps and corpnet-URL with change)
Run powershell -f Create-StorageContainer.ps1 (with the appropriate parameters)
Without the changes, the setup fails with Login Failed | const { required, nullable } = mapper;
With the changes, the error goes away.
Additional context:
It seems there was a recent update to the ms-rest npm package. The update was done 6/21.
Here’s the error:
/usr/local/lib/node_modules/azure-cli/node_modules/ms-rest/lib/serialization.js:78 const { required, nullable } = mapper; ^ SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Module.pModule._compile (/usr/local/lib/node_modules/azure-cli/node_modules/streamline/lib/compiler/register.js:72:15) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/ms-rest/lib/webResource.js:11:20) at Module._compile (module.js:410:26)
So the change is opportunistic. We are simply moving to Cli2 instead since it is newer and preferred.
What are the relevant TFS items? (list id numbers)
N/A
Definition of done:
[x] Title of the pull request is clear and informative
[ ] Add pull request hyperlink to relevant TFS items
[ ] For large or complex change: schedule an in-person review session
[ ] This change has appropriate test coverage
[ ] Get at least two approvals
Reminders DURING merge
If you're merging from a short-term (feature) branch into a long-term branch (like dev, release, or master) then "Squash and merge" to keep our history clean.
If merging from two longterm branches (like cherry picks from upstream, dev to release, etc) then "Create merge commit" to preserve individual commits.
What does this PR do? Please provide some context
Apply configuration override for Azure Cli version for storage account creation
Where should the reviewer start?
The changes.
How can this be manually tested? (brief repro steps and corpnet-URL with change)
Run powershell -f Create-StorageContainer.ps1 (with the appropriate parameters)
Without the changes, the setup fails with Login Failed | const { required, nullable } = mapper; With the changes, the error goes away.
Additional context: It seems there was a recent update to the ms-rest npm package. The update was done 6/21.
Here’s the error:
/usr/local/lib/node_modules/azure-cli/node_modules/ms-rest/lib/serialization.js:78 const { required, nullable } = mapper; ^ SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Module.pModule._compile (/usr/local/lib/node_modules/azure-cli/node_modules/streamline/lib/compiler/register.js:72:15) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/ms-rest/lib/webResource.js:11:20) at Module._compile (module.js:410:26)
So the change is opportunistic. We are simply moving to Cli2 instead since it is newer and preferred.
What are the relevant TFS items? (list id numbers)
N/A
Definition of done:
Reminders DURING merge