From 2bd3ab47a977f757f9865a784100b38100eb612a Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 23 Jun 2023 03:46:42 +0000 Subject: [PATCH] Updating v1 examples --- .../examples/v1.0-beta/New-MgDomain.md | 24 ++++++++----------- .../examples/v1.0/New-MgDomain.md | 24 ++++++++----------- 2 files changed, 20 insertions(+), 28 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDomain.md index f6c6949389e..a1d4484f553 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDomain.md @@ -1,17 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -{{ Add description here }} +$params = @{ + id = "contoso.com" +} -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +New-MgDomain -BodyParameter $params +``` +This example shows how to use the New-MgDomain Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDomain.md index f6c6949389e..a1d4484f553 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDomain.md @@ -1,17 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -{{ Add description here }} +$params = @{ + id = "contoso.com" +} -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +New-MgDomain -BodyParameter $params +``` +This example shows how to use the New-MgDomain Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +