MCPcopy Create free account
hub / github.com/Azure/powershell / importAzModule

Method importAzModule

src/InitializeAzure.ts:7–16  ·  view source on GitHub ↗
(azPSVersion: string)

Source from the content-addressed store, hash-verified

5
6export default class InitializeAzure {
7 static async importAzModule(azPSVersion: string) {
8 await Utils.setPSModulePath();
9 if (azPSVersion === "latest") {
10 azPSVersion = await Utils.getLatestModule(Constants.moduleName);
11 } else {
12 await Utils.checkModuleVersion(Constants.moduleName, azPSVersion);
13 }
14 core.debug(`Az Module version used: ${azPSVersion}`);
15 await Utils.setPSModulePath(`${Constants.prefix}${azPSVersion}`);
16 }
17}

Callers 1

mainFunction · 0.45

Calls 3

setPSModulePathMethod · 0.45
getLatestModuleMethod · 0.45
checkModuleVersionMethod · 0.45

Tested by

no test coverage detected