File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,13 @@ function Add-Link {
148
148
$BaseUrl = " /powershell/module"
149
149
$CommandRename = $Command.Replace (" -MgBeta" , " -Mg" )
150
150
$FullModuleName = " Microsoft.Graph.$Module /$CommandRename "
151
+ $ModuleName = " Microsoft.Graph.$Module "
151
152
$LinkTitle = " To view the v1.0 release of this cmdlet, view"
152
153
$View = " ?view=graph-powershell-1.0"
153
154
if ($GraphProfile -eq " v1.0" ) {
154
155
$CommandRename = $Command.Replace (" -Mg" , " -MgBeta" )
155
156
$FullModuleName = " Microsoft.Graph.Beta.$Module /$CommandRename "
157
+ $ModuleName = " Microsoft.Graph.Beta.$Module "
156
158
$LinkTitle = " To view the beta release of this cmdlet, view"
157
159
$View = " ?view=graph-powershell-beta"
158
160
@@ -161,7 +163,7 @@ function Add-Link {
161
163
$Link = " > [!NOTE]`n > $LinkTitle [$CommandRename ]($BaseUrl /$FullModuleName$View )`r`n`n ## SYNTAX"
162
164
$LinkOnEndOfDoc = " ## RELATED LINKS`r`n [$CommandRename ]($BaseUrl /$FullModuleName$View )"
163
165
$Folder = $View.Split (" =" )[1 ]
164
- $ConfirmFile = Join-Path $WorkLoadDocsPath " $Folder " " $FullModuleName " " $BetaCommand .md"
166
+ $ConfirmFile = Join-Path $WorkLoadDocsPath " $Folder " " $ModuleName " " $CommandRename .md"
165
167
$ConfirmCommandAvailability = Find-MgGraphCommand - Command $CommandRename
166
168
if ($ConfirmCommandAvailability -and (Test-Path $ConfirmFile )) {
167
169
(Get-Content $File ) |
You can’t perform that action at this time.
0 commit comments