Skip to content

Commit

Permalink
Merge pull request #777 from ganesh-sanap:aad-get-tenantid-metadata
Browse files Browse the repository at this point in the history
Sample Update - Get Tenant ID
  • Loading branch information
pkbullock authored Nov 10, 2024
2 parents a10ed2b + fed975b commit 08c1660
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 3 additions & 2 deletions scripts/aad-get-tenantid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugin: add-to-gallery

## Summary

These are practical scripts I have to get Tenant ID from either a domain name or from a Subscriptionis ID.
These are practical scripts I have to get Tenant ID from either a domain name or from a Subscription ID.

These are simple, but very useful to be combined in other scripts.

Expand All @@ -15,7 +15,6 @@ These are simple, but very useful to be combined in other scripts.

```powershell
function Get-TenantIdFromDomain {
<#
.SYNOPSIS
Expand Down Expand Up @@ -158,6 +157,7 @@ function Get-TenantIdFromSubscriptionId {
# [PnP PowerShell](#tab/pnpps)

```powershell
param (
[Parameter(Mandatory = $true)]
[string] $domain
Expand All @@ -182,6 +182,7 @@ Sample first appeared on [https://github.com/dkaaven/M365-Scripts](https://githu
|-----------|
| [Daniel Kåven](https://github.com/dkaaven)|
| [Reshmee Auckloo](https://github.com/reshmee011) |
| Ganesh Sanap |

[!INCLUDE [DISCLAIMER](../../docfx/includes/DISCLAIMER.md)]
<img src="https://m365-visitor-stats.azurewebsites.net/script-samples/scripts/aad-get-tenantid" aria-hidden="true" />
14 changes: 11 additions & 3 deletions scripts/aad-get-tenantid/assets/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"name": "aad-get-tenantid",
"source": "pnp",
"title": "Get Tenant ID",
"shortDescription": "These are 2 practical scripts to get Tenant ID from either a domain name or from a Subscriptionis ID.",
"shortDescription": "These are 2 practical scripts to get Tenant ID from either a domain name or from a Subscription ID.",
"url": "https://pnp.github.io/script-samples/aad-get-tenantid/README.html",
"longDescription": [
""
],
"creationDateTime": "2024-10-14",
"updateDateTime": "2024-10-27",
"updateDateTime": "2024-11-07",
"products": [
"Azure"
],
Expand All @@ -28,7 +28,9 @@
"Security"
],
"tags": [
"<Cmdlets-Used>"
"Invoke-WebRequest",
"Connect-PnPOnline",
"Get-PnPTenantId"
],
"thumbnails": [
{
Expand All @@ -39,6 +41,12 @@
}
],
"authors": [
{
"gitHubAccount": "ganesh-sanap",
"company": "",
"pictureUrl": "https://avatars.githubusercontent.com/u/25476310?v=4",
"name": "Ganesh Sanap"
},
{
"gitHubAccount": "reshmee011",
"company": "",
Expand Down

0 comments on commit 08c1660

Please sign in to comment.