Skip to content

Commit

Permalink
Merge pull request #657 from ganesh-sanap/issue-654
Browse files Browse the repository at this point in the history
Enhancements: Removes language localization and unnecessary query string parameters. Closes #654.
  • Loading branch information
pkbullock authored Feb 6, 2024
2 parents 888bd65 + 20e4f97 commit c274a2e
Show file tree
Hide file tree
Showing 80 changed files with 313 additions and 313 deletions.
14 changes: 7 additions & 7 deletions New-Sample.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
References:
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions_advanced_parameters?view=powershell-7.3
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions_argument_completion?view=powershell-7.3
https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_advanced_parameters
https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_argument_completion
Examples:
Expand Down Expand Up @@ -147,7 +147,7 @@ begin{
Reference = [PSCustomObject]@{
"name" = "Introduction to the SharePoint Online Management Shell"
"description" = "Check out the SPO Management Shell documentation site to get started and for the reference to the cmdlets."
"url" = "https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps"
"url" = "https://docs.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell"
}
Metadata = [PSCustomObject]@{
}
Expand All @@ -173,7 +173,7 @@ begin{
Reference = [PSCustomObject]@{
"name" = "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets"
"description" = "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets."
"url" = "https://docs.microsoft.com/en-us/graph/powershell/get-started"
"url" = "https://docs.microsoft.com/graph/powershell/get-started"
}
Metadata = [PSCustomObject]@{
}
Expand All @@ -186,7 +186,7 @@ begin{
Reference = [PSCustomObject]@{
"name" = "Want to learn more about Azure CLI and the commands"
"description" = "Check out the Azure CLI documentation site to get started and for the reference to the commands."
"url" = "https://docs.microsoft.com/en-us/cli/azure/"
"url" = "https://docs.microsoft.com/cli/azure/"
}
Metadata = [PSCustomObject]@{
}
Expand All @@ -199,7 +199,7 @@ begin{
Reference = [PSCustomObject]@{
"name" = "Want to learn more about Power Apps PowerShell and the cmdlets"
"description" = "Check out the Power Apps PowerShell documentation site to get started and for the reference to the cmdlets."
"url" = "https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell"
"url" = "https://docs.microsoft.com/power-platform/admin/powerapps-powershell"
}
Metadata = [PSCustomObject]@{
}
Expand All @@ -212,7 +212,7 @@ begin{
Reference = [PSCustomObject]@{
"name" = "Want to learn more about Microsoft Teams PowerShell and the cmdlets"
"description" = "Check out the Microsoft Teams PowerShell documentation site to get started and for the reference to the cmdlets."
"url" = "https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-overview"
"url" = "https://docs.microsoft.com/microsoftteams/teams-powershell-overview"
}
Metadata = [PSCustomObject]@{
}
Expand Down
4 changes: 2 additions & 2 deletions docfx/Get-HelpJson.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function Process-SPOManagementShellDocs

$spomsDocs = Join-Path -Path $currentLocation -ChildPath "OfficeDocs-SharePoint-PowerShell\sharepoint\sharepoint-ps\sharepoint-online"
Write-Host "Processing SPO Management Shell Path: $($spomsDocs)"
$spomsBaseSitePath = "https://docs.microsoft.com/en-us/powershell/module/sharepoint-online"
$spomsBaseSitePath = "https://docs.microsoft.com/powershell/module/sharepoint-online"
$spomsDocsFiles = Get-ChildItem -Path $spomsDocs
$spomsDocRows = @()

Expand All @@ -53,7 +53,7 @@ function Process-SPOManagementShellDocs

$cmdHelp = [PSCustomObject]@{
cmd = $cmdletName
helpUrl = "$($spomsBaseSitePath)/$($cmdletName)?view=sharepoint-ps"
helpUrl = "$($spomsBaseSitePath)/$($cmdletName)"
}

$spomsDocRows += $cmdHelp
Expand Down
422 changes: 211 additions & 211 deletions docfx/assets/help/spoms.help.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docfx/includes/MORE-AZURECLI.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
> [!div class="highlight-tool"]
> Check out the **Azure CLI** to learn more at: https://docs.microsoft.com/en-us/cli/azure/
> Check out the **Azure CLI** to learn more at: https://docs.microsoft.com/cli/azure/
2 changes: 1 addition & 1 deletion docfx/includes/MORE-GRAPHSDK.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
> [!div class="highlight-tool"]
> Check out the **Microsoft Graph PowerShell SDK** to learn more at: https://docs.microsoft.com/en-us/graph/powershell/get-started
> Check out the **Microsoft Graph PowerShell SDK** to learn more at: https://docs.microsoft.com/graph/powershell/get-started
2 changes: 1 addition & 1 deletion docfx/includes/MORE-POWERAPPS.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
> [!div class="highlight-tool"]
> Check out the **Power Apps PowerShell** to learn more at: https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell
> Check out the **Power Apps PowerShell** to learn more at: https://docs.microsoft.com/power-platform/admin/powerapps-powershell
2 changes: 1 addition & 1 deletion docfx/includes/MORE-PS.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
> [!div class="highlight-tool"]
> Check out the **PowerShell** to learn more at: [PowerShell Documentation | Microsoft Learn](https://learn.microsoft.com/en-us/powershell/)
> Check out the **PowerShell** to learn more at: [PowerShell Documentation | Microsoft Learn](https://learn.microsoft.com/powershell)
2 changes: 1 addition & 1 deletion docfx/includes/MORE-SPOMS.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
> [!div class="highlight-tool"]
> Check out the **SPO Management Shell** to learn more at: [Introduction SharePoint Online Management Shell | Microsoft Docs](https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps)
> Check out the **SPO Management Shell** to learn more at: [Introduction SharePoint Online Management Shell | Microsoft Docs](https://docs.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell)
2 changes: 1 addition & 1 deletion docfx/includes/MORE-TEAMSPS.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
> [!div class="highlight-tool"]
> Check out the **Microsoft Teams PowerShell** to learn more at: https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-overview
> Check out the **Microsoft Teams PowerShell** to learn more at: https://docs.microsoft.com/microsoftteams/teams-powershell-overview
2 changes: 1 addition & 1 deletion docfx/includes/MORE-WHITEBOARD.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
> [!div class="highlight-tool"]
> Check out the **Microsoft Whiteboard Admin** to learn more at: https://docs.microsoft.com/en-us/powershell/module/whiteboard/?view=whiteboard-ps
> Check out the **Microsoft Whiteboard Admin** to learn more at: https://docs.microsoft.com/powershell/module/whiteboard
2 changes: 1 addition & 1 deletion docfx/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugin: insert-gallery

# Script Samples

Find scenarios and scripts here using tools such as ***PnP PowerShell, CLI for Microsoft 365, SPO Management Shell, Graph PowerShell SDK*** and more. Are you looking for different kind of samples? then check out the [Microsoft Adoption - Sample Solution Gallery](https://adoption.microsoft.com/en-us/sample-solution-gallery/) for all samples from the community.
Find scenarios and scripts here using tools such as ***PnP PowerShell, CLI for Microsoft 365, SPO Management Shell, Graph PowerShell SDK*** and more. Are you looking for different kind of samples? then check out the [Microsoft Adoption - Sample Solution Gallery](https://adoption.microsoft.com/sample-solution-gallery/) for all samples from the community.

<section class="filter-section">

Expand Down
12 changes: 6 additions & 6 deletions scripts/_template-script-submission/assets/template.sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,32 +100,32 @@
{
"name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
"description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/graph/powershell/get-started"
"url": "https://docs.microsoft.com/graph/powershell/get-started"
},
{
"name": "Want to learn more about Power Apps PowerShell and the cmdlets",
"description": "Check out the Power Apps PowerShell documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell"
"url": "https://docs.microsoft.com/power-platform/admin/powerapps-powershell"
},
{
"name": "Introduction to the SharePoint Online Management Shell",
"description": "Check out the SPO Management Shell documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps"
"url": "https://docs.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell"
},
{
"name": "Want to learn more about Microsoft Teams PowerShell and the cmdlets",
"description": "Check out the Microsoft Teams PowerShell documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-overview"
"url": "https://docs.microsoft.com/microsoftteams/teams-powershell-overview"
},
{
"name": "Want to learn more about Azure CLI and the commands",
"description": "Check out the Azure CLI documentation site to get started and for the reference to the commands.",
"url": "https://docs.microsoft.com/en-us/cli/azure/"
"url": "https://docs.microsoft.com/cli/azure/"
},
{
"name":"Want to learn more about Whiteboard Admin cmdlets",
"description":"Check out the Whiteboard Admin cmdlets documentation site to get started and for the reference to the commands.",
"url": "https://docs.microsoft.com/en-us/powershell/module/whiteboard/?view=whiteboard-ps"
"url": "https://docs.microsoft.com/powershell/module/whiteboard"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{
"name": "Want to learn more about Azure active directory PowerShell?",
"description": "Check out the Microsoft learning site to get started and for the reference to the commands.",
"url": "https://learn.microsoft.com/en-us/powershell/module/azuread/connect-azuread?view=azureadps-2.0"
"url": "https://learn.microsoft.com/powershell/module/azuread/connect-azuread"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/aad-apps-expired-keys/assets/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{
"name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
"description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/graph/powershell/get-started"
"url": "https://docs.microsoft.com/graph/powershell/get-started"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/aad-get-app-permission/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ When creating or interpreting an Azure AD (AAD) app manifest or even to get exis

![Example Screenshot](assets/example.png)

By default, the script has only registered Microsoft Graph and SharePoint Online Microsoft AAD apps (with their respective appId property). Feel free to add any other API listed [here](https://docs.microsoft.com/en-us/troubleshoot/azure/active-directory/verify-first-party-apps-sign-in#application-ids-for-commonly-used-microsoft-applications) in the `AadApis` class!
By default, the script has only registered Microsoft Graph and SharePoint Online Microsoft AAD apps (with their respective appId property). Feel free to add any other API listed [here](https://docs.microsoft.com/troubleshoot/azure/active-directory/verify-first-party-apps-sign-in#application-ids-for-commonly-used-microsoft-applications) in the `AadApis` class!


# [CLI for Microsoft 365 using PowerShell](#tab/cli-m365-ps)
Expand Down
2 changes: 1 addition & 1 deletion scripts/aad-get-app-permission/assets/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
{
"name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
"description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/graph/powershell/get-started"
"url": "https://docs.microsoft.com/graph/powershell/get-started"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{
"name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
"description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/graph/powershell/get-started"
"url": "https://docs.microsoft.com/graph/powershell/get-started"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/azure-delete-allresources-resourcegroup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Param(
function executeDeleteAzureResources {
# Getting all the resources from specified Resource group. We will be filtering the Resources group using JMESPath Query.
# Refer https://learn.microsoft.com/en-us/cli/azure/query-azure-cli?tabs=concepts%2Cbash for details
# Refer https://learn.microsoft.com/cli/azure/query-azure-cli for details
$ResourceList = (az resource list --query "[?resourceGroup=='$resourcegroupName'].{ Name: name, Id: id}") | ConvertFrom-Json
# Showing the resource count in the Resource Group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{
"name": "Want to learn more about Azure CLI and the commands",
"description": "Check out the Azure CLI documentation site to get started and for the reference to the commands.",
"url": "https://docs.microsoft.com/en-us/cli/azure/"
"url": "https://docs.microsoft.com/cli/azure/"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/azure-open-ai-byod-powershell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In order to get started, you need:
- Azure Cognitive Search with Semantic Search enabled (free plan is fine)
- Setup the Data Source, Index, and Indexer in Azure Cognitive Search

Reference: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#completions-extensions
Reference: https://learn.microsoft.com/azure/ai-services/openai/reference#completions-extensions


# [PowerShell](#tab/ps)
Expand Down Expand Up @@ -86,7 +86,7 @@ $body = [ordered]@{
messages = $messages
} | ConvertTo-Json -Depth 3
# https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#completions-extensions
# https://learn.microsoft.com/azure/ai-services/openai/reference#completions-extensions
$url = "$($azureOpenAIEndPoint)openai/deployments/$($azureOpenAIDeploymentName)/extensions/chat/completions?api-version=$($azureOpenAIApiVersion)"
# Check the Input Json Bodies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
{
"name": "Introduction to the SharePoint Online Management Shell",
"description": "Check out the SPO Management Shell documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps"
"url": "https://docs.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell"
},
{
"name": "Want to learn more about CLI for Microsoft 365 and the commands",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{
"name": "Introduction to the SharePoint Online Management Shell",
"description": "Check out the SPO Management Shell documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps"
"url": "https://docs.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
{
"name": "Introduction to the SharePoint Online Management Shell",
"description": "Check out the SPO Management Shell documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps"
"url": "https://docs.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{
"name": "Want to learn more about Power Apps PowerShell and the cmdlets",
"description": "Check out the Power Apps PowerShell documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell"
"url": "https://docs.microsoft.com/power-platform/admin/powerapps-powershell"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{
"name": "Want to learn more about Azure CLI and the commands",
"description": "Check out the Azure CLI documentation site to get started and for the reference to the commands.",
"url": "https://docs.microsoft.com/en-us/cli/azure/"
"url": "https://docs.microsoft.com/cli/azure/"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/graph-call-graph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ echo $me | jq
# [PnP PowerShell](#tab/pnpps)

```powershell
#https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/connect-pnponline?view=sharepoint-ps#example-7
#https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html#example-7
Connect-PnPOnline -Url "https://contoso.sharepoint.com" -ClientId 6c5c98c7-e05a-4a0f-bcfa-0cfc65aa1f28 -Tenant 'contoso.onmicrosoft.com' -Thumbprint 34CFAA860E5FB8C44335A38A097C1E41EEA206AA
$token = Get-PnPGraphAccessToken
Expand Down
2 changes: 1 addition & 1 deletion scripts/graph-common-operations/assets/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
{
"name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
"description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/graph/powershell/get-started"
"url": "https://docs.microsoft.com/graph/powershell/get-started"
},
{
"name": "Using the Microsoft Graph PowerShell SDK for common operations",
Expand Down
2 changes: 1 addition & 1 deletion scripts/graph-connect-to-graph/assets/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{
"name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
"description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/graph/powershell/get-started"
"url": "https://docs.microsoft.com/graph/powershell/get-started"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{
"name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
"description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/graph/powershell/get-started"
"url": "https://docs.microsoft.com/graph/powershell/get-started"
},
{
"name": "More about Open AI API",
Expand Down
Binary file modified scripts/graph-delay-message-delivery/README.md
Binary file not shown.
Binary file modified scripts/graph-delay-message-delivery/assets/sample.json
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/graph-disable-user-license/assets/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{
"name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
"description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
"url": "https://docs.microsoft.com/en-us/graph/powershell/get-started"
"url": "https://docs.microsoft.com/graph/powershell/get-started"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
{
"name": "Want to learn more about the Microsoft Graph",
"description": "Check out the documentation site to get started and for the reference to the endpoints.",
"url": "https://developer.microsoft.com/en-us/graph/graph-explorer"
"url": "https://developer.microsoft.com/graph/graph-explorer"
},
{
"name": "Want to learn more about CLI for Microsoft 365 and the commands",
Expand Down
Loading

0 comments on commit c274a2e

Please sign in to comment.