You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/Az.Tools.Installer/Az.Tools.Installer.psd1
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
#
2
-
# Module manifest for module 'Az.Installer'
2
+
# Module manifest for module 'Az.Tools.Installer'
3
3
#
4
4
# Generated by: Microsoft Corporation
5
5
#
@@ -9,7 +9,7 @@
9
9
@{
10
10
11
11
# Script module or binary module file associated with this manifest.
12
-
RootModule='Az.Installer.psm1'
12
+
RootModule='Az.Tools.Installer.psm1'
13
13
14
14
# Version number of this module.
15
15
ModuleVersion='0.1.0'
@@ -72,7 +72,7 @@
72
72
FunctionsToExport='*'
73
73
74
74
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
[Parameter(HelpMessage='Installs modules and overrides warning messages about module installation conflicts. If a module with the same name already exists on the computer, Force allows for multiple versions to be installed. If there is an existing module with the same name and version, Force overwrites that version.')]
53
+
[ValidateNotNullOrEmpty()]
54
+
[Switch]
55
+
${Force},
56
+
57
+
[Parameter(ParameterSetName='AllAndPreview',Mandatory,HelpMessage='Allow preview modules to be installed.')]
58
+
[Parameter(ParameterSetName='ByNameAndPreview',Mandatory,HelpMessage='Allow preview modules to be installed.')]
59
+
[ValidateNotNullOrEmpty()]
60
+
[Switch]
61
+
${AllowPrerelease},
62
+
63
+
[Parameter(ParameterSetName='ByName',Mandatory,HelpMessage='Az modules to install.',ValueFromPipelineByPropertyName=$true)]
64
+
[Parameter(ParameterSetName='ByNameAndPreview',Mandatory,HelpMessage='Az modules to install.',ValueFromPipelineByPropertyName=$true)]
$confirmation=Read-Host"You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the `nSet-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?`n[Y] Yes [N] No (default is `"N`")"
79
+
80
+
switch ($confirmation) {
81
+
'Y' {
82
+
$PSBoundParameters.Add('Force',$true)
83
+
}
84
+
85
+
'N' {
86
+
Return
87
+
}
88
+
}
89
+
}
90
+
91
+
[System.Collections.ArrayList]$module_name=@()
92
+
$version=@{}
93
+
$module=@()
94
+
$latest=''
95
+
$prerelease=$false
96
+
97
+
if ($PSBoundParameters.ContainsKey('Name')) {
98
+
$PSBoundParameters['Name'] |Foreach-Object {
99
+
if ($_-ne'Az.Accounts') {
100
+
$module_name+=$_
101
+
}
102
+
}
103
+
}
104
+
105
+
if ($PSBoundParameters.ContainsKey('MaximumVersion')) {
0 commit comments