diff --git a/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs b/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..efeac827e003 --- /dev/null +++ b/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Powershell - Authorization")] +[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] +[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] +[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] + +[assembly: ComVisible(false)] +[assembly: CLSCompliant(false)] +[assembly: Guid("b2f7fb23-24cf-4e26-840e-db4360603829")] +[assembly: AssemblyVersion("0.1.0")] +[assembly: AssemblyFileVersion("0.1.0")] diff --git a/src/Resources/Authorization.Autorest/create-model-cmdlets.ps1 b/src/Resources/Authorization.Autorest/create-model-cmdlets.ps1 index 7095dbfcfe54..04c639459581 100644 --- a/src/Resources/Authorization.Autorest/create-model-cmdlets.ps1 +++ b/src/Resources/Authorization.Autorest/create-model-cmdlets.ps1 @@ -115,7 +115,9 @@ function CreateModelCmdlet { # check whether completer is needed $completer = ''; if($Type.Split('.').Split('.')[-2] -eq 'Support') { - $completer += "`n [ArgumentCompleter([${Type}])]" + # If Type is an array, need to strip [] + $strippedType = $Type.Replace('[]', '') + $completer += "`n [ArgumentCompleter([${strippedType}])]" } $ParameterDefineScript = " [Parameter($ParameterDefineProperty)]${completer} diff --git a/src/Resources/Authorization.Autorest/docs/Az.Authorization.md b/src/Resources/Authorization.Autorest/docs/Az.Authorization.md index 0958e1528375..9ec0dd9c93f4 100644 --- a/src/Resources/Authorization.Autorest/docs/Az.Authorization.md +++ b/src/Resources/Authorization.Autorest/docs/Az.Authorization.md @@ -1,6 +1,6 @@ --- Module Name: Az.Authorization -Module Guid: af1acdc0-484d-477e-a2d2-8c6e6136323f +Module Guid: 66aa3bd8-7952-4e71-915e-f7d169a2440e Download Help Link: https://docs.microsoft.com/powershell/module/az.authorization Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Resources/Authorization.Autorest/generate-info.json b/src/Resources/Authorization.Autorest/generate-info.json new file mode 100644 index 000000000000..b7611e09f45e --- /dev/null +++ b/src/Resources/Authorization.Autorest/generate-info.json @@ -0,0 +1,8 @@ +{ + "swagger_commit": "c277c1bc2a40d5b5d2b1792e611291e708246d0e", + "node": "v14.15.5", + "autorest_powershell": "3.0.480", + "autorest": "`-- (empty)", + "autorest_modelerfour": "4.15.414", + "autorest_core": "3.8.2" +} diff --git a/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs index ed70724522fa..4e51a63af972 100644 --- a/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ b/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -52,6 +52,17 @@ public override string ToString() internal class HelpExampleOutput { + private string ExampleTemplate = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + Environment.NewLine; + + private string ExampleTemplateWithOutput = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + "{6}" + Environment.NewLine + "{7}" + Environment.NewLine + Environment.NewLine + + "{8}" + Environment.NewLine + Environment.NewLine; + public MarkdownExampleHelpInfo ExampleInfo { get; } public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) @@ -59,17 +70,26 @@ public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) ExampleInfo = exampleInfo; } - public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name} -{ExampleCodeHeader} -{ExampleInfo.Code} -{ExampleCodeFooter} - -{ExampleInfo.Description.ToDescriptionFormat()} - -"; + public override string ToString() + { + if (string.IsNullOrEmpty(ExampleInfo.Output)) + { + return string.Format(ExampleTemplate, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleInfo.Description.ToDescriptionFormat()); + } + else + { + return string.Format(ExampleTemplateWithOutput, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleOutputHeader, ExampleInfo.Output, ExampleOutputFooter, + ExampleInfo.Description.ToDescriptionFormat()); ; + } + } } - - + internal class HelpParameterOutput { public MarkdownParameterHelpInfo ParameterInfo { get; } @@ -161,6 +181,8 @@ public static string ToDescriptionFormat(this string text, bool escapeAngleBrack public const string ExampleNameHeader = "### "; public const string ExampleCodeHeader = "```powershell"; public const string ExampleCodeFooter = "```"; + public const string ExampleOutputHeader = "```output"; + public const string ExampleOutputFooter = "```"; public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); diff --git a/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 00e89ef8df22..ec6828166bea 100644 --- a/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -109,18 +109,21 @@ internal class PsHelpExampleInfo { public string Title { get; } public string Code { get; } + public string Output { get; } public string Remarks { get; } public PsHelpExampleInfo(PSObject exampleObject) { Title = exampleObject.GetProperty("title"); Code = exampleObject.GetProperty("code"); + Output = exampleObject.GetProperty("output"); Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); } public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) { Title = markdownExample.Name; Code = markdownExample.Code; + Output = markdownExample.Output; Remarks = markdownExample.Description; } diff --git a/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs index 307ac4f17660..88448e9091da 100644 --- a/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs +++ b/src/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -91,12 +91,17 @@ private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) var code = codeStartIndex.HasValue && codeEndIndex.HasValue ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) : String.Empty; - var descriptionStartIndex = (codeEndIndex ?? 0) + 1; + var outputStartIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var outputEndIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i > outputStartIndex); + var output = outputStartIndex.HasValue && outputEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(outputStartIndex.Value + 1).Take(outputEndIndex.Value - (outputStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (outputEndIndex ?? (codeEndIndex ?? 0)) + 1; descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; var descriptionEndIndex = eg.Length - 1; descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); - return new MarkdownExampleHelpInfo(name, code, description); + return new MarkdownExampleHelpInfo(name, code, output, description); }).ToArray(); } } @@ -154,12 +159,14 @@ internal class MarkdownExampleHelpInfo { public string Name { get; } public string Code { get; } + public string Output { get; } public string Description { get; } - public MarkdownExampleHelpInfo(string name, string code, string description) + public MarkdownExampleHelpInfo(string name, string code, string output, string description) { Name = name; Code = code; + Output = output; Description = description; } } @@ -213,12 +220,12 @@ public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, Param internal static class MarkdownTypesExtensions { - public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks); + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks); public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = { - new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"), - new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}") + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), }; public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = diff --git a/src/Resources/MSGraph.Autorest/create-model-cmdlets.ps1 b/src/Resources/MSGraph.Autorest/create-model-cmdlets.ps1 index dac884f85b82..b871c5f63c62 100644 --- a/src/Resources/MSGraph.Autorest/create-model-cmdlets.ps1 +++ b/src/Resources/MSGraph.Autorest/create-model-cmdlets.ps1 @@ -23,7 +23,7 @@ function CreateModelCmdlet { } $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models' - $ModuleName = 'Az.MSGraph'.Split(".")[1] + $ModuleName = 'AD' $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets' $null = New-Item -ItemType Directory -Force -Path $OutputDir @@ -115,7 +115,9 @@ function CreateModelCmdlet { # check whether completer is needed $completer = ''; if($Type.Split('.').Split('.')[-2] -eq 'Support') { - $completer += "`n [ArgumentCompleter([${Type}])]" + # If Type is an array, need to strip [] + $strippedType = $Type.Replace('[]', '') + $completer += "`n [ArgumentCompleter([${strippedType}])]" } $ParameterDefineScript = " [Parameter($ParameterDefineProperty)]${completer} diff --git a/src/Resources/MSGraph.Autorest/custom/New-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/custom/New-AzADServicePrincipal.ps1 index 6b8d545cbc99..53b825b34067 100644 --- a/src/Resources/MSGraph.Autorest/custom/New-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/custom/New-AzADServicePrincipal.ps1 @@ -302,7 +302,7 @@ function New-AzADServicePrincipal { [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication] ${ApplicationObject}, - [Parameter(ParameterSetName = 'SimpleParameterSet')] + [Parameter(ParameterSetName = 'ApplicationIdParameterSet')] [Alias('AppId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] [System.Guid] diff --git a/src/Resources/MSGraph.Autorest/docs/Add-AzADAppPermission.md b/src/Resources/MSGraph.Autorest/docs/Add-AzADAppPermission.md index f480b5f86a71..03e516fcb295 100644 --- a/src/Resources/MSGraph.Autorest/docs/Add-AzADAppPermission.md +++ b/src/Resources/MSGraph.Autorest/docs/Add-AzADAppPermission.md @@ -41,14 +41,14 @@ User needs to grant consent via Azure Portal if the permission requires admin co ### Example 1: Add API Permission ```powershell -PS C:\> Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d +Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d ``` Add delegated permission "Group.Read.All" of Microsoft Graph API to AD Application (9cc74d5e-1162-4b90-8696-65f3d6a3f7d0) ### Example 2: Add API Permission ```powershell -PS C:\> Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 1138cb37-bd11-4084-a2b7-9f71582aeddb -Type Role +Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 1138cb37-bd11-4084-a2b7-9f71582aeddb -Type Role ``` Add application permission "Device.ReadWrite.All" of Microsoft Graph API to AD Application (9cc74d5e-1162-4b90-8696-65f3d6a3f7d0) diff --git a/src/Resources/MSGraph.Autorest/docs/Add-AzADGroupMember.md b/src/Resources/MSGraph.Autorest/docs/Add-AzADGroupMember.md index 2d90210027fc..dd80c6dfcff8 100644 --- a/src/Resources/MSGraph.Autorest/docs/Add-AzADGroupMember.md +++ b/src/Resources/MSGraph.Autorest/docs/Add-AzADGroupMember.md @@ -55,11 +55,11 @@ Adds member to group. ### Example 1: Add members to group ```powershell -PS C:\> $groupid=(Get-AzADGroup -DisplayName $gname).Id -PS C:\> $members=@() -PS C:\> $members+=(Get-AzADUser -DisplayName $uname).Id -PS C:\> $members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id -PS C:\> Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members +$groupid=(Get-AzADGroup -DisplayName $gname).Id +$members=@() +$members+=(Get-AzADUser -DisplayName $uname).Id +$members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id +Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members ``` Add members to group diff --git a/src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md b/src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md index 783de172b91f..d65778abe999 100644 --- a/src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md +++ b/src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md @@ -1,6 +1,6 @@ --- Module Name: Az.MSGraph -Module Guid: 0fcdc3b3-bb14-4092-a847-d0cd87a0c25a +Module Guid: 83719ae4-38f9-45c2-a9ca-6c45cdeffee4 Download Help Link: https://docs.microsoft.com/powershell/module/az.msgraph Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADAppCredential.md b/src/Resources/MSGraph.Autorest/docs/Get-AzADAppCredential.md index 85edf68562d7..d6d3b4bdb561 100644 --- a/src/Resources/MSGraph.Autorest/docs/Get-AzADAppCredential.md +++ b/src/Resources/MSGraph.Autorest/docs/Get-AzADAppCredential.md @@ -43,7 +43,7 @@ Lists key credentials and password credentials for an application. ### Example 1: List credentials from application by display name ```powershell -PS C:\> Get-AzADAppCredential -DisplayName $name +Get-AzADAppCredential -DisplayName $name ``` List credentials from application by display name diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADAppPermission.md b/src/Resources/MSGraph.Autorest/docs/Get-AzADAppPermission.md index ee13051c6606..68d7a39553c9 100644 --- a/src/Resources/MSGraph.Autorest/docs/Get-AzADAppPermission.md +++ b/src/Resources/MSGraph.Autorest/docs/Get-AzADAppPermission.md @@ -29,8 +29,10 @@ Lists API permissions the application has requested. ### Example 1: Get API permission ```powershell -PS C:\> Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427 +Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427 +``` +```output ApiId Id Type ----- -- ---- 00000003-0000-0000-c000-000000000000 df021288-bdef-4463-88db-98f22de89214 Scope diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADApplication.md b/src/Resources/MSGraph.Autorest/docs/Get-AzADApplication.md index 3f7a8df65b66..d5ca7f106b0e 100644 --- a/src/Resources/MSGraph.Autorest/docs/Get-AzADApplication.md +++ b/src/Resources/MSGraph.Autorest/docs/Get-AzADApplication.md @@ -56,28 +56,28 @@ Lists entities from applications or get entity from applications by key ### Example 1: Get application by display name ```powershell -PS C:\> Get-AzADApplication -DisplayName $appname +Get-AzADApplication -DisplayName $appname ``` Get application by display name ### Example 2: List applications ```powershell -PS C:\> Get-AzADApplication -First 10 +Get-AzADApplication -First 10 ``` List first 10 applications ### Example 3: Search for application display name starts with ```powershell -PS C:\> Get-AzADApplication -DisplayNameStartsWith $prefix +Get-AzADApplication -DisplayNameStartsWith $prefix ``` Search for application display name starts with ### Example 4: Get application by object Id ```powershell -PS C:\> Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected +Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected ``` Get application by object Id and append property 'Tags' after default properties: 'DisplayName', 'Id', 'DeletedDateTime', 'IdentifierUris', 'Web', 'AppId', 'SignInAudience' diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADGroup.md b/src/Resources/MSGraph.Autorest/docs/Get-AzADGroup.md index 091c5936bfea..f1efdec67e7e 100644 --- a/src/Resources/MSGraph.Autorest/docs/Get-AzADGroup.md +++ b/src/Resources/MSGraph.Autorest/docs/Get-AzADGroup.md @@ -45,21 +45,21 @@ Lists entities from groups or get entity from groups by key ### Example 1: Get group by display name ```powershell -PS C:\> Get-AzADGroup -DisplayName $gname +Get-AzADGroup -DisplayName $gname ``` Get group by display name ### Example 2: List groups ```powershell -PS C:\> Get-AzADGroup -First 10 +Get-AzADGroup -First 10 ``` List first 10 groups ### Example 3: Get group by object id ```powershell -PS C:\> Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected +Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected ``` Get group by object id and append property 'groupTypes' after default properties: 'DisplayName', 'Id', 'DeletedDateTime', 'SecurityEnabled', 'MailEnabled', 'MailNickname', 'Description' diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADGroupMember.md b/src/Resources/MSGraph.Autorest/docs/Get-AzADGroupMember.md index de5ecc530ef9..b020d9cb9d77 100644 --- a/src/Resources/MSGraph.Autorest/docs/Get-AzADGroupMember.md +++ b/src/Resources/MSGraph.Autorest/docs/Get-AzADGroupMember.md @@ -40,14 +40,14 @@ Lists members from group. ### Example 1: List members by group display name ```powershell -PS C:\> Get-AzADGroupMember -GroupDisplayName $name +Get-AzADGroupMember -GroupDisplayName $name ``` List members by group display name ### Example 2: List members by pipeline input ```powershell -PS C:\> Get-AzADGroup -DisplayName $name | Get-AzADGroupMember +Get-AzADGroup -DisplayName $name | Get-AzADGroupMember ``` List members by pipeline input diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/docs/Get-AzADServicePrincipal.md index be530741f9a7..51267e79f8e6 100644 --- a/src/Resources/MSGraph.Autorest/docs/Get-AzADServicePrincipal.md +++ b/src/Resources/MSGraph.Autorest/docs/Get-AzADServicePrincipal.md @@ -62,35 +62,35 @@ Lists entities from service principals or get entity from service principals by ### Example 1: Get service principal by display name ```powershell -PS C:\> Get-AzADServicePrincipal -DisplayName $name +Get-AzADServicePrincipal -DisplayName $name ``` Get service principal by display name ### Example 2: Search for service principal display name starts with ```powershell -PS C:\> Get-AzADServicePrincipal -DisplayNameStartsWith $prefix +Get-AzADServicePrincipal -DisplayNameStartsWith $prefix ``` Search for service principal display name starts with ### Example 3: List service principals ```powershell -PS C:\> Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected +Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected ``` List first 10 service principals and append property 'Tags' after default properties: 'DisplayName', 'Id', 'DeletedDateTime', 'ServicePrincipalNames', 'AppId' ### Example 4: Get service principal by application Id ```powershell -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId +Get-AzADServicePrincipal -ApplicationId $appId ``` Get service principal by application Id ### Example 5: Get service principal by pipeline input ```powershell -PS C:\> Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal +Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal ``` Get service principal by pipeline input diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADSpCredential.md b/src/Resources/MSGraph.Autorest/docs/Get-AzADSpCredential.md index 458cc3f98e86..55af6fd30fd0 100644 --- a/src/Resources/MSGraph.Autorest/docs/Get-AzADSpCredential.md +++ b/src/Resources/MSGraph.Autorest/docs/Get-AzADSpCredential.md @@ -42,7 +42,7 @@ Lists key credentials and password credentials for an service principal. ### Example 1: List credentials from service principal by display name ```powershell -PS C:\> Get-AzADSpCredential -DisplayName $name +Get-AzADSpCredential -DisplayName $name ``` List credentials from service principal by display name diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADUser.md b/src/Resources/MSGraph.Autorest/docs/Get-AzADUser.md index afd3f9da92b7..7a777e8401a9 100644 --- a/src/Resources/MSGraph.Autorest/docs/Get-AzADUser.md +++ b/src/Resources/MSGraph.Autorest/docs/Get-AzADUser.md @@ -62,21 +62,21 @@ Lists entities from users or get entity from users by key ### Example 1: Get signin user ```powershell -PS C:\> Get-AzADUser -SignedIn +Get-AzADUser -SignedIn ``` Get signin user ### Example 2: List users ```powershell -PS C:\> Get-AzADUser -First 10 -Select 'City' -AppendSelected +Get-AzADUser -First 10 -Select 'City' -AppendSelected ``` List first 10 users and append property 'City' after default properties: 'DisplayName', 'Id', 'DeletedDateTime', 'UserPrincipalName', 'UsageLocation', 'GivenName', 'SurName', 'AccountEnabled', 'MailNickName', 'Mail' ### Example 3: Get user by display name ```powershell -PS C:\> Get-AzADUser -DisplayName $name +Get-AzADUser -DisplayName $name ``` Get user by display name diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADApplication.md b/src/Resources/MSGraph.Autorest/docs/New-AzADApplication.md index 4344900daf95..20c58b41c668 100644 --- a/src/Resources/MSGraph.Autorest/docs/New-AzADApplication.md +++ b/src/Resources/MSGraph.Autorest/docs/New-AzADApplication.md @@ -114,7 +114,7 @@ Adds new entity to applications ### Example 1: Create application ```powershell -PS C:\> New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount +New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount ``` Create application with signin audience 'AzureADandPersonalMicrosoftAccount', other available options are: 'AzureADMyOrg', 'AzureADMultipleOrgs', 'PersonalMicrosoftAccount' diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADGroup.md b/src/Resources/MSGraph.Autorest/docs/New-AzADGroup.md index c257085ae049..237a03bb878e 100644 --- a/src/Resources/MSGraph.Autorest/docs/New-AzADGroup.md +++ b/src/Resources/MSGraph.Autorest/docs/New-AzADGroup.md @@ -33,7 +33,7 @@ Adds new entity to groups ### Example 1: Create group ```powershell -PS C:\> New-AzADGroup -DisplayName $gname -MailNickname $nickname +New-AzADGroup -DisplayName $gname -MailNickname $nickname ``` Create group diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/docs/New-AzADServicePrincipal.md index 71dec180bcd1..1ded54f5dbc4 100644 --- a/src/Resources/MSGraph.Autorest/docs/New-AzADServicePrincipal.md +++ b/src/Resources/MSGraph.Autorest/docs/New-AzADServicePrincipal.md @@ -15,8 +15,8 @@ Adds new entity to servicePrincipals ### SimpleParameterSet (Default) ``` New-AzADServicePrincipal [-AccountEnabled] [-AddIn ] [-AlternativeName ] - [-AppDescription ] [-ApplicationId ] [-AppOwnerOrganizationId ] - [-AppRole ] [-AppRoleAssignedTo ] + [-AppDescription ] [-AppOwnerOrganizationId ] [-AppRole ] + [-AppRoleAssignedTo ] [-AppRoleAssignment ] [-AppRoleAssignmentRequired] [-ClaimsMappingPolicy ] [-DelegatedPermissionClassification ] @@ -34,6 +34,28 @@ New-AzADServicePrincipal [-AccountEnabled] [-AddIn ] [-A [] ``` +### ApplicationIdParameterSet +``` +New-AzADServicePrincipal [-AccountEnabled] [-AddIn ] [-AlternativeName ] + [-AppDescription ] [-ApplicationId ] [-AppOwnerOrganizationId ] + [-AppRole ] [-AppRoleAssignedTo ] + [-AppRoleAssignment ] [-AppRoleAssignmentRequired] + [-ClaimsMappingPolicy ] + [-DelegatedPermissionClassification ] + [-DeletedDateTime ] [-Description ] [-DisabledByMicrosoftStatus ] + [-Endpoint ] [-Homepage ] + [-HomeRealmDiscoveryPolicy ] + [-Info ] [-LoginUrl ] [-LogoutUrl ] [-Note ] + [-NotificationEmailAddress ] [-Oauth2PermissionScope ] + [-PreferredSingleSignOnMode ] [-PreferredTokenSigningKeyThumbprint ] [-ReplyUrl ] + [-Role ] [-SamlSingleSignOnSetting ] [-Scope ] + [-ServicePrincipalName ] [-ServicePrincipalType ] [-Tag ] + [-TokenEncryptionKeyId ] [-TokenIssuancePolicy ] + [-TokenLifetimePolicy ] + [-TransitiveMemberOf ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + ### ApplicationObjectParameterSet ``` New-AzADServicePrincipal -ApplicationObject [-AccountEnabled] @@ -133,21 +155,21 @@ Adds new entity to servicePrincipals ### Example 1: Create service principal without application or display name ```powershell -PS C:\> New-AzADServicePrincipal +New-AzADServicePrincipal ``` Create application with display name "azure-powershell-MM-dd-yyyy-HH-mm-ss" and new service principal associate with it ### Example 2: Create service principal with existing application ```powershell -PS C:\> New-AzADServicePrincipal -ApplicationId $appid +New-AzADServicePrincipal -ApplicationId $appid ``` Create service principal with existing application ### Example 3: Create application with display name and associated new service principal with it ```powershell -PS C:\> New-AzADServicePrincipal -DisplayName $name +New-AzADServicePrincipal -DisplayName $name ``` Create application with display name and associated new service pincipal with it @@ -224,7 +246,7 @@ The unique identifier for the associated application (its appId property). ```yaml Type: System.Guid -Parameter Sets: SimpleParameterSet +Parameter Sets: ApplicationIdParameterSet Aliases: AppId Required: False diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADSpCredential.md b/src/Resources/MSGraph.Autorest/docs/New-AzADSpCredential.md index 07ff21f7c9d3..1b3b13524470 100644 --- a/src/Resources/MSGraph.Autorest/docs/New-AzADSpCredential.md +++ b/src/Resources/MSGraph.Autorest/docs/New-AzADSpCredential.md @@ -94,19 +94,19 @@ Creates key credentials or password credentials for an service principal. ### Example 1: Create key credentials for service principal ```powershell -PS C:\> $credential = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphKeyCredential" ` +$credential = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphKeyCredential" ` -Property @{'Key' = $cert; 'Usage' = 'Verify'; 'Type' = 'AsymmetricX509Cert' } -PS C:\> New-AzADSpCredential -ObjectId $Id -KeyCredentials $credential +New-AzADSpCredential -ObjectId $Id -KeyCredentials $credential ``` Create key credentials for service principal ### Example 2: Create password credentials for service principal ```powershell -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId | New-AzADSpCredential -StartDate $startDate -EndDate $endDate +Get-AzADServicePrincipal -ApplicationId $appId | New-AzADSpCredential -StartDate $startDate -EndDate $endDate ``` Create password credentials for service principal diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADUser.md b/src/Resources/MSGraph.Autorest/docs/New-AzADUser.md index d53603430c67..3d439352f873 100644 --- a/src/Resources/MSGraph.Autorest/docs/New-AzADUser.md +++ b/src/Resources/MSGraph.Autorest/docs/New-AzADUser.md @@ -35,8 +35,8 @@ Adds new entity to users ### Example 1: Create user ```powershell -PS C:\> $pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} -PS C:\> New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn +$pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} +New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn ``` Create user diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppCredential.md b/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppCredential.md index 6ee6d2eaef6b..5d9b8a1d4ca7 100644 --- a/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppCredential.md +++ b/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppCredential.md @@ -43,14 +43,14 @@ Removes key credentials or password credentials for an application. ### Example 1: Remove credentials from application by key id ```powershell -PS C:\> Remove-AzADAppCredential -DisplayName $name -KeyId $keyid +Remove-AzADAppCredential -DisplayName $name -KeyId $keyid ``` Remove credentials from application by key id ### Example 2: Remove all credentials from application ```powershell -PS C:\> Get-AzADApplication -DisplayName $name | Remove-AzADAppCredential +Get-AzADApplication -DisplayName $name | Remove-AzADAppCredential ``` Remove all credentials from application diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppPermission.md b/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppPermission.md index 92547179906e..75504a003873 100644 --- a/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppPermission.md +++ b/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppPermission.md @@ -31,7 +31,7 @@ Removes an API permission. ### Example 1: Remove API Permission ```powershell -PS C:\> Remove-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d +Remove-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d ``` Remove delegated permission "Group.Read.All" of Microsoft Graph API from AD Application (9cc74d5e-1162-4b90-8696-65f3d6a3f7d0) diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADApplication.md b/src/Resources/MSGraph.Autorest/docs/Remove-AzADApplication.md index ab7ad85f6feb..05e1c2972bf0 100644 --- a/src/Resources/MSGraph.Autorest/docs/Remove-AzADApplication.md +++ b/src/Resources/MSGraph.Autorest/docs/Remove-AzADApplication.md @@ -43,14 +43,14 @@ Deletes entity from applications ### Example 1: Remove application by display name ```powershell -PS C:\> Remove-AzADApplication -DisplayName $name +Remove-AzADApplication -DisplayName $name ``` Remove application by display name ### Example 2: Remove application by pipeline input ```powershell -PS C:\> Get-AzADApplication -ObjectId $id | Remove-AzADApplication +Get-AzADApplication -ObjectId $id | Remove-AzADApplication ``` Remove application by pipeline input diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroup.md b/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroup.md index cf5837de1fe4..315a58925447 100644 --- a/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroup.md +++ b/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroup.md @@ -37,14 +37,14 @@ Deletes entity from groups. ### Example 1: Remove group by display name ```powershell -PS C:\> Remove-AzADGroup -DisplayName $name +Remove-AzADGroup -DisplayName $name ``` Remove group by display name ### Example 2: Remove group by pipeline input ```powershell -PS C:\> Get-AzADGroup -ObjectId $id | Remove-AzADGroup +Get-AzADGroup -ObjectId $id | Remove-AzADGroup ``` Remove group by pipeline input diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroupMember.md b/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroupMember.md index 0c0e9d464ec1..fee3ec71ffbf 100644 --- a/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroupMember.md +++ b/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroupMember.md @@ -68,10 +68,10 @@ Supports $expand. ### Example 1: Remove members from group ```powershell -PS C:\> $members = @() -PS C:\> $members += (Get-AzADUser -DisplayName $uname).Id -PS C:\> $members += (Get-AzADServicePrincipal -ApplicationId $appid).Id -PS C:\> Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member +$members = @() +$members += (Get-AzADUser -DisplayName $uname).Id +$members += (Get-AzADServicePrincipal -ApplicationId $appid).Id +Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member ``` Remove members from group diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/docs/Remove-AzADServicePrincipal.md index 56a9d5f7518a..01201e059bd3 100644 --- a/src/Resources/MSGraph.Autorest/docs/Remove-AzADServicePrincipal.md +++ b/src/Resources/MSGraph.Autorest/docs/Remove-AzADServicePrincipal.md @@ -55,14 +55,14 @@ Deletes entity from service principal. ### Example 1: Remove service principal by display name ```powershell -PS C:\> Remove-AzADServicePrincipal -DisplayName $name +Remove-AzADServicePrincipal -DisplayName $name ``` Remove service principal by display name ### Example 2: Remove service principal by pipeline input ```powershell -PS C:\> Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal +Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal ``` Remove service principal by pipeline input diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADSpCredential.md b/src/Resources/MSGraph.Autorest/docs/Remove-AzADSpCredential.md index b42353500a94..2ca19eb37cf6 100644 --- a/src/Resources/MSGraph.Autorest/docs/Remove-AzADSpCredential.md +++ b/src/Resources/MSGraph.Autorest/docs/Remove-AzADSpCredential.md @@ -43,14 +43,14 @@ Removes key credentials or password credentials for an service principal. ### Example 1: Remove service principal credentials by key id ```powershell -PS C:\> Remove-AzADSpCredential -DisplayName $name -KeyId $keyid +Remove-AzADSpCredential -DisplayName $name -KeyId $keyid ``` Remove service principal credentials by key id ### Example 2: Remove all credentials from service principal ```powershell -PS C:\> Get-AzADServicePrincipal -DisplayName $name | Remove-AzADSpCredential +Get-AzADServicePrincipal -DisplayName $name | Remove-AzADSpCredential ``` Remove all credentials from service principal diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADUser.md b/src/Resources/MSGraph.Autorest/docs/Remove-AzADUser.md index 8614d21b3817..0c2129fcf061 100644 --- a/src/Resources/MSGraph.Autorest/docs/Remove-AzADUser.md +++ b/src/Resources/MSGraph.Autorest/docs/Remove-AzADUser.md @@ -49,14 +49,14 @@ Deletes entity from users. ### Example 1: Remove user by display name ```powershell -PS C:\> Remove-AzADUser -DisplayName $name +Remove-AzADUser -DisplayName $name ``` Remove user by display name ### Example 2: Remove user by pipeline input ```powershell -PS C:\> Get-AzADUser -UserPrincipalName $id | Remove-AzADUser +Get-AzADUser -UserPrincipalName $id | Remove-AzADUser ``` Remove user by pipeline input diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADApplication.md b/src/Resources/MSGraph.Autorest/docs/Update-AzADApplication.md index 856c1f1b921b..46d0243e1b94 100644 --- a/src/Resources/MSGraph.Autorest/docs/Update-AzADApplication.md +++ b/src/Resources/MSGraph.Autorest/docs/Update-AzADApplication.md @@ -76,14 +76,14 @@ Updates entity in applications ### Example 1: Update application by display name ```powershell -PS C:\> Update-AzADApplication -DisplayName $name -HomePage $homepage +Update-AzADApplication -DisplayName $name -HomePage $homepage ``` Update application by display name ### Example 2: Update application by pipeline input ```powershell -PS C:\> Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl +Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl ``` Update application by pipeline input diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/docs/Update-AzADServicePrincipal.md index 56f894874843..ef7f73f008d6 100644 --- a/src/Resources/MSGraph.Autorest/docs/Update-AzADServicePrincipal.md +++ b/src/Resources/MSGraph.Autorest/docs/Update-AzADServicePrincipal.md @@ -116,14 +116,14 @@ Updates entity in service principal ### Example 1: Update service principal and associated application by display name ```powershell -PS C:\> Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri +Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri ``` Update service principal and associated application by display name, 'IdentifierUri', 'PasswordCredential', 'KeyCredential' will be assigned to application ### Example 2: Update service principal by pipeline input ```powershell -PS C:\> Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note +Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note ``` Update service principal and associated application by display name, 'IdentifierUri', 'PasswordCredential', 'KeyCredential' will be assigned to application diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADUser.md b/src/Resources/MSGraph.Autorest/docs/Update-AzADUser.md index a6d765523c1e..bcd97e9e3d0f 100644 --- a/src/Resources/MSGraph.Autorest/docs/Update-AzADUser.md +++ b/src/Resources/MSGraph.Autorest/docs/Update-AzADUser.md @@ -80,7 +80,7 @@ Updates entity in users ### Example 1: Update user by user principal name ```powershell -PS C:\> Update-AzADUser -UPNOrObjectId $upn -City $city +Update-AzADUser -UPNOrObjectId $upn -City $city ``` Update user by user principal name diff --git a/src/Resources/MSGraph.Autorest/examples/Add-AzADAppPermission.md b/src/Resources/MSGraph.Autorest/examples/Add-AzADAppPermission.md index 99acb2939e0e..f3b57c70cd7e 100644 --- a/src/Resources/MSGraph.Autorest/examples/Add-AzADAppPermission.md +++ b/src/Resources/MSGraph.Autorest/examples/Add-AzADAppPermission.md @@ -1,6 +1,6 @@ ### Example 1: Add API Permission ```powershell -PS C:\> Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d +Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d ``` Add delegated permission "Group.Read.All" of Microsoft Graph API to AD Application (9cc74d5e-1162-4b90-8696-65f3d6a3f7d0) @@ -8,7 +8,7 @@ Add delegated permission "Group.Read.All" of Microsoft Graph API to AD Applicati ### Example 2: Add API Permission ```powershell -PS C:\> Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 1138cb37-bd11-4084-a2b7-9f71582aeddb -Type Role +Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 1138cb37-bd11-4084-a2b7-9f71582aeddb -Type Role ``` Add application permission "Device.ReadWrite.All" of Microsoft Graph API to AD Application (9cc74d5e-1162-4b90-8696-65f3d6a3f7d0) \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Add-AzADGroupMember.md b/src/Resources/MSGraph.Autorest/examples/Add-AzADGroupMember.md index 80d6faf228f7..0fb8d2118b3f 100644 --- a/src/Resources/MSGraph.Autorest/examples/Add-AzADGroupMember.md +++ b/src/Resources/MSGraph.Autorest/examples/Add-AzADGroupMember.md @@ -1,10 +1,10 @@ ### Example 1: Add members to group ```powershell -PS C:\> $groupid=(Get-AzADGroup -DisplayName $gname).Id -PS C:\> $members=@() -PS C:\> $members+=(Get-AzADUser -DisplayName $uname).Id -PS C:\> $members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id -PS C:\> Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members +$groupid=(Get-AzADGroup -DisplayName $gname).Id +$members=@() +$members+=(Get-AzADUser -DisplayName $uname).Id +$members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id +Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members ``` Add members to group \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Get-AzADAppCredential.md b/src/Resources/MSGraph.Autorest/examples/Get-AzADAppCredential.md index 83afdca54574..d0fc4dc0bc47 100644 --- a/src/Resources/MSGraph.Autorest/examples/Get-AzADAppCredential.md +++ b/src/Resources/MSGraph.Autorest/examples/Get-AzADAppCredential.md @@ -1,6 +1,6 @@ ### Example 1: List credentials from application by display name ```powershell -PS C:\> Get-AzADAppCredential -DisplayName $name +Get-AzADAppCredential -DisplayName $name ``` List credentials from application by display name \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Get-AzADAppPermission.md b/src/Resources/MSGraph.Autorest/examples/Get-AzADAppPermission.md index 30d2d23f043d..c589ff1ebd53 100644 --- a/src/Resources/MSGraph.Autorest/examples/Get-AzADAppPermission.md +++ b/src/Resources/MSGraph.Autorest/examples/Get-AzADAppPermission.md @@ -1,7 +1,8 @@ ### Example 1: Get API permission ```powershell -PS C:\> Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427 - +Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427 +``` +```output ApiId Id Type ----- -- ---- 00000003-0000-0000-c000-000000000000 df021288-bdef-4463-88db-98f22de89214 Scope diff --git a/src/Resources/MSGraph.Autorest/examples/Get-AzADApplication.md b/src/Resources/MSGraph.Autorest/examples/Get-AzADApplication.md index 121b79c21f5c..a9037d131383 100644 --- a/src/Resources/MSGraph.Autorest/examples/Get-AzADApplication.md +++ b/src/Resources/MSGraph.Autorest/examples/Get-AzADApplication.md @@ -1,27 +1,27 @@ ### Example 1: Get application by display name ```powershell -PS C:\> Get-AzADApplication -DisplayName $appname +Get-AzADApplication -DisplayName $appname ``` Get application by display name ### Example 2: List applications ```powershell -PS C:\> Get-AzADApplication -First 10 +Get-AzADApplication -First 10 ``` List first 10 applications ### Example 3: Search for application display name starts with ```powershell -PS C:\> Get-AzADApplication -DisplayNameStartsWith $prefix +Get-AzADApplication -DisplayNameStartsWith $prefix ``` Search for application display name starts with ### Example 4: Get application by object Id ```powershell -PS C:\> Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected +Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected ``` Get application by object Id and append property 'Tags' after default properties: 'DisplayName', 'Id', 'DeletedDateTime', 'IdentifierUris', 'Web', 'AppId', 'SignInAudience' \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Get-AzADGroup.md b/src/Resources/MSGraph.Autorest/examples/Get-AzADGroup.md index 4923a6235606..992f9162540b 100644 --- a/src/Resources/MSGraph.Autorest/examples/Get-AzADGroup.md +++ b/src/Resources/MSGraph.Autorest/examples/Get-AzADGroup.md @@ -1,20 +1,20 @@ ### Example 1: Get group by display name ```powershell -PS C:\> Get-AzADGroup -DisplayName $gname +Get-AzADGroup -DisplayName $gname ``` Get group by display name ### Example 2: List groups ```powershell -PS C:\> Get-AzADGroup -First 10 +Get-AzADGroup -First 10 ``` List first 10 groups ### Example 3: Get group by object id ```powershell -PS C:\> Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected +Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected ``` Get group by object id and append property 'groupTypes' after default properties: 'DisplayName', 'Id', 'DeletedDateTime', 'SecurityEnabled', 'MailEnabled', 'MailNickname', 'Description' \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Get-AzADGroupMember.md b/src/Resources/MSGraph.Autorest/examples/Get-AzADGroupMember.md index ebe1f8358018..ec17b0e8cced 100644 --- a/src/Resources/MSGraph.Autorest/examples/Get-AzADGroupMember.md +++ b/src/Resources/MSGraph.Autorest/examples/Get-AzADGroupMember.md @@ -1,13 +1,13 @@ ### Example 1: List members by group display name ```powershell -PS C:\> Get-AzADGroupMember -GroupDisplayName $name +Get-AzADGroupMember -GroupDisplayName $name ``` List members by group display name ### Example 2: List members by pipeline input ```powershell -PS C:\> Get-AzADGroup -DisplayName $name | Get-AzADGroupMember +Get-AzADGroup -DisplayName $name | Get-AzADGroupMember ``` List members by pipeline input \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Get-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/examples/Get-AzADServicePrincipal.md index fece82ba1e26..ce34a3e39362 100644 --- a/src/Resources/MSGraph.Autorest/examples/Get-AzADServicePrincipal.md +++ b/src/Resources/MSGraph.Autorest/examples/Get-AzADServicePrincipal.md @@ -1,34 +1,34 @@ ### Example 1: Get service principal by display name ```powershell -PS C:\> Get-AzADServicePrincipal -DisplayName $name +Get-AzADServicePrincipal -DisplayName $name ``` Get service principal by display name ### Example 2: Search for service principal display name starts with ```powershell -PS C:\> Get-AzADServicePrincipal -DisplayNameStartsWith $prefix +Get-AzADServicePrincipal -DisplayNameStartsWith $prefix ``` Search for service principal display name starts with ### Example 3: List service principals ```powershell -PS C:\> Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected +Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected ``` List first 10 service principals and append property 'Tags' after default properties: 'DisplayName', 'Id', 'DeletedDateTime', 'ServicePrincipalNames', 'AppId' ### Example 4: Get service principal by application Id ```powershell -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId +Get-AzADServicePrincipal -ApplicationId $appId ``` Get service principal by application Id ### Example 5: Get service principal by pipeline input ```powershell -PS C:\> Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal +Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal ``` Get service principal by pipeline input \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Get-AzADSpCredential.md b/src/Resources/MSGraph.Autorest/examples/Get-AzADSpCredential.md index 7de5f067b2c9..5e15efc95213 100644 --- a/src/Resources/MSGraph.Autorest/examples/Get-AzADSpCredential.md +++ b/src/Resources/MSGraph.Autorest/examples/Get-AzADSpCredential.md @@ -1,6 +1,6 @@ ### Example 1: List credentials from service principal by display name ```powershell -PS C:\> Get-AzADSpCredential -DisplayName $name +Get-AzADSpCredential -DisplayName $name ``` List credentials from service principal by display name \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Get-AzADUser.md b/src/Resources/MSGraph.Autorest/examples/Get-AzADUser.md index 74a5517432e4..fe8f15cfb0a1 100644 --- a/src/Resources/MSGraph.Autorest/examples/Get-AzADUser.md +++ b/src/Resources/MSGraph.Autorest/examples/Get-AzADUser.md @@ -1,20 +1,20 @@ ### Example 1: Get signin user ```powershell -PS C:\> Get-AzADUser -SignedIn +Get-AzADUser -SignedIn ``` Get signin user ### Example 2: List users ```powershell -PS C:\> Get-AzADUser -First 10 -Select 'City' -AppendSelected +Get-AzADUser -First 10 -Select 'City' -AppendSelected ``` List first 10 users and append property 'City' after default properties: 'DisplayName', 'Id', 'DeletedDateTime', 'UserPrincipalName', 'UsageLocation', 'GivenName', 'SurName', 'AccountEnabled', 'MailNickName', 'Mail' ### Example 3: Get user by display name ```powershell -PS C:\> Get-AzADUser -DisplayName $name +Get-AzADUser -DisplayName $name ``` Get user by display name \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/New-AzADApplication.md b/src/Resources/MSGraph.Autorest/examples/New-AzADApplication.md index 8109509b9079..3e4064a3877a 100644 --- a/src/Resources/MSGraph.Autorest/examples/New-AzADApplication.md +++ b/src/Resources/MSGraph.Autorest/examples/New-AzADApplication.md @@ -1,6 +1,6 @@ ### Example 1: Create application ```powershell -PS C:\> New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount +New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount ``` Create application with signin audience 'AzureADandPersonalMicrosoftAccount', other available options are: 'AzureADMyOrg', 'AzureADMultipleOrgs', 'PersonalMicrosoftAccount' \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/New-AzADGroup.md b/src/Resources/MSGraph.Autorest/examples/New-AzADGroup.md index 240b3094a99e..f1346c92e76e 100644 --- a/src/Resources/MSGraph.Autorest/examples/New-AzADGroup.md +++ b/src/Resources/MSGraph.Autorest/examples/New-AzADGroup.md @@ -1,6 +1,6 @@ ### Example 1: Create group ```powershell -PS C:\> New-AzADGroup -DisplayName $gname -MailNickname $nickname +New-AzADGroup -DisplayName $gname -MailNickname $nickname ``` Create group \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/New-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/examples/New-AzADServicePrincipal.md index 527054a9f96d..51086ecc5ee1 100644 --- a/src/Resources/MSGraph.Autorest/examples/New-AzADServicePrincipal.md +++ b/src/Resources/MSGraph.Autorest/examples/New-AzADServicePrincipal.md @@ -1,20 +1,20 @@ ### Example 1: Create service principal without application or display name ```powershell -PS C:\> New-AzADServicePrincipal +New-AzADServicePrincipal ``` Create application with display name "azure-powershell-MM-dd-yyyy-HH-mm-ss" and new service principal associate with it ### Example 2: Create service principal with existing application ```powershell -PS C:\> New-AzADServicePrincipal -ApplicationId $appid +New-AzADServicePrincipal -ApplicationId $appid ``` Create service principal with existing application ### Example 3: Create application with display name and associated new service principal with it ```powershell -PS C:\> New-AzADServicePrincipal -DisplayName $name +New-AzADServicePrincipal -DisplayName $name ``` Create application with display name and associated new service pincipal with it diff --git a/src/Resources/MSGraph.Autorest/examples/New-AzADSpCredential.md b/src/Resources/MSGraph.Autorest/examples/New-AzADSpCredential.md index 97e3901a5a71..ccd785d41a7d 100644 --- a/src/Resources/MSGraph.Autorest/examples/New-AzADSpCredential.md +++ b/src/Resources/MSGraph.Autorest/examples/New-AzADSpCredential.md @@ -1,18 +1,18 @@ ### Example 1: Create key credentials for service principal ```powershell -PS C:\> $credential = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphKeyCredential" ` +$credential = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphKeyCredential" ` -Property @{'Key' = $cert; 'Usage' = 'Verify'; 'Type' = 'AsymmetricX509Cert' } -PS C:\> New-AzADSpCredential -ObjectId $Id -KeyCredentials $credential +New-AzADSpCredential -ObjectId $Id -KeyCredentials $credential ``` Create key credentials for service principal ### Example 2: Create password credentials for service principal ```powershell -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId | New-AzADSpCredential -StartDate $startDate -EndDate $endDate +Get-AzADServicePrincipal -ApplicationId $appId | New-AzADSpCredential -StartDate $startDate -EndDate $endDate ``` Create password credentials for service principal \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/New-AzADUser.md b/src/Resources/MSGraph.Autorest/examples/New-AzADUser.md index 022c4ab6bc1f..89c2b97cc52d 100644 --- a/src/Resources/MSGraph.Autorest/examples/New-AzADUser.md +++ b/src/Resources/MSGraph.Autorest/examples/New-AzADUser.md @@ -1,7 +1,7 @@ ### Example 1: Create user ```powershell -PS C:\> $pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} -PS C:\> New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn +$pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} +New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn ``` Create user \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Remove-AzADAppCredential.md b/src/Resources/MSGraph.Autorest/examples/Remove-AzADAppCredential.md index 8f3d990e56bc..ff76c1356202 100644 --- a/src/Resources/MSGraph.Autorest/examples/Remove-AzADAppCredential.md +++ b/src/Resources/MSGraph.Autorest/examples/Remove-AzADAppCredential.md @@ -1,13 +1,13 @@ ### Example 1: Remove credentials from application by key id ```powershell -PS C:\> Remove-AzADAppCredential -DisplayName $name -KeyId $keyid +Remove-AzADAppCredential -DisplayName $name -KeyId $keyid ``` Remove credentials from application by key id ### Example 2: Remove all credentials from application ```powershell -PS C:\> Get-AzADApplication -DisplayName $name | Remove-AzADAppCredential +Get-AzADApplication -DisplayName $name | Remove-AzADAppCredential ``` Remove all credentials from application \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Remove-AzADAppPermission.md b/src/Resources/MSGraph.Autorest/examples/Remove-AzADAppPermission.md index 287f94b23ec1..f10f585cabd9 100644 --- a/src/Resources/MSGraph.Autorest/examples/Remove-AzADAppPermission.md +++ b/src/Resources/MSGraph.Autorest/examples/Remove-AzADAppPermission.md @@ -1,6 +1,6 @@ ### Example 1: Remove API Permission ```powershell -PS C:\> Remove-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d +Remove-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d ``` Remove delegated permission "Group.Read.All" of Microsoft Graph API from AD Application (9cc74d5e-1162-4b90-8696-65f3d6a3f7d0) \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Remove-AzADApplication.md b/src/Resources/MSGraph.Autorest/examples/Remove-AzADApplication.md index 7b4842c8e6f3..d679f6570e3c 100644 --- a/src/Resources/MSGraph.Autorest/examples/Remove-AzADApplication.md +++ b/src/Resources/MSGraph.Autorest/examples/Remove-AzADApplication.md @@ -1,13 +1,13 @@ ### Example 1: Remove application by display name ```powershell -PS C:\> Remove-AzADApplication -DisplayName $name +Remove-AzADApplication -DisplayName $name ``` Remove application by display name ### Example 2: Remove application by pipeline input ```powershell -PS C:\> Get-AzADApplication -ObjectId $id | Remove-AzADApplication +Get-AzADApplication -ObjectId $id | Remove-AzADApplication ``` Remove application by pipeline input \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Remove-AzADGroup.md b/src/Resources/MSGraph.Autorest/examples/Remove-AzADGroup.md index e540279bb921..cf6577491cee 100644 --- a/src/Resources/MSGraph.Autorest/examples/Remove-AzADGroup.md +++ b/src/Resources/MSGraph.Autorest/examples/Remove-AzADGroup.md @@ -1,13 +1,13 @@ ### Example 1: Remove group by display name ```powershell -PS C:\> Remove-AzADGroup -DisplayName $name +Remove-AzADGroup -DisplayName $name ``` Remove group by display name ### Example 2: Remove group by pipeline input ```powershell -PS C:\> Get-AzADGroup -ObjectId $id | Remove-AzADGroup +Get-AzADGroup -ObjectId $id | Remove-AzADGroup ``` Remove group by pipeline input \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Remove-AzADGroupMember.md b/src/Resources/MSGraph.Autorest/examples/Remove-AzADGroupMember.md index dc119c255a0a..c4aaec7b2485 100644 --- a/src/Resources/MSGraph.Autorest/examples/Remove-AzADGroupMember.md +++ b/src/Resources/MSGraph.Autorest/examples/Remove-AzADGroupMember.md @@ -1,9 +1,9 @@ ### Example 1: Remove members from group ```powershell -PS C:\> $members = @() -PS C:\> $members += (Get-AzADUser -DisplayName $uname).Id -PS C:\> $members += (Get-AzADServicePrincipal -ApplicationId $appid).Id -PS C:\> Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member +$members = @() +$members += (Get-AzADUser -DisplayName $uname).Id +$members += (Get-AzADServicePrincipal -ApplicationId $appid).Id +Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member ``` Remove members from group \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Remove-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/examples/Remove-AzADServicePrincipal.md index e76d77ebc96b..c4cfc5bc334e 100644 --- a/src/Resources/MSGraph.Autorest/examples/Remove-AzADServicePrincipal.md +++ b/src/Resources/MSGraph.Autorest/examples/Remove-AzADServicePrincipal.md @@ -1,13 +1,13 @@ ### Example 1: Remove service principal by display name ```powershell -PS C:\> Remove-AzADServicePrincipal -DisplayName $name +Remove-AzADServicePrincipal -DisplayName $name ``` Remove service principal by display name ### Example 2: Remove service principal by pipeline input ```powershell -PS C:\> Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal +Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal ``` Remove service principal by pipeline input \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Remove-AzADSpCredential.md b/src/Resources/MSGraph.Autorest/examples/Remove-AzADSpCredential.md index c1e5ab6097d1..0c096321668c 100644 --- a/src/Resources/MSGraph.Autorest/examples/Remove-AzADSpCredential.md +++ b/src/Resources/MSGraph.Autorest/examples/Remove-AzADSpCredential.md @@ -1,13 +1,13 @@ ### Example 1: Remove service principal credentials by key id ```powershell -PS C:\> Remove-AzADSpCredential -DisplayName $name -KeyId $keyid +Remove-AzADSpCredential -DisplayName $name -KeyId $keyid ``` Remove service principal credentials by key id ### Example 2: Remove all credentials from service principal ```powershell -PS C:\> Get-AzADServicePrincipal -DisplayName $name | Remove-AzADSpCredential +Get-AzADServicePrincipal -DisplayName $name | Remove-AzADSpCredential ``` Remove all credentials from service principal \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Remove-AzADUser.md b/src/Resources/MSGraph.Autorest/examples/Remove-AzADUser.md index 5c5ba3b9c5e0..cdc19ee27e40 100644 --- a/src/Resources/MSGraph.Autorest/examples/Remove-AzADUser.md +++ b/src/Resources/MSGraph.Autorest/examples/Remove-AzADUser.md @@ -1,13 +1,13 @@ ### Example 1: Remove user by display name ```powershell -PS C:\> Remove-AzADUser -DisplayName $name +Remove-AzADUser -DisplayName $name ``` Remove user by display name ### Example 2: Remove user by pipeline input ```powershell -PS C:\> Get-AzADUser -UserPrincipalName $id | Remove-AzADUser +Get-AzADUser -UserPrincipalName $id | Remove-AzADUser ``` Remove user by pipeline input \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Update-AzADApplication.md b/src/Resources/MSGraph.Autorest/examples/Update-AzADApplication.md index 0472a202d846..690812a2e24b 100644 --- a/src/Resources/MSGraph.Autorest/examples/Update-AzADApplication.md +++ b/src/Resources/MSGraph.Autorest/examples/Update-AzADApplication.md @@ -1,13 +1,13 @@ ### Example 1: Update application by display name ```powershell -PS C:\> Update-AzADApplication -DisplayName $name -HomePage $homepage +Update-AzADApplication -DisplayName $name -HomePage $homepage ``` Update application by display name ### Example 2: Update application by pipeline input ```powershell -PS C:\> Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl +Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl ``` Update application by pipeline input \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Update-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/examples/Update-AzADServicePrincipal.md index 780c075d1248..2b80443154a7 100644 --- a/src/Resources/MSGraph.Autorest/examples/Update-AzADServicePrincipal.md +++ b/src/Resources/MSGraph.Autorest/examples/Update-AzADServicePrincipal.md @@ -1,13 +1,13 @@ ### Example 1: Update service principal and associated application by display name ```powershell -PS C:\> Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri +Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri ``` Update service principal and associated application by display name, 'IdentifierUri', 'PasswordCredential', 'KeyCredential' will be assigned to application ### Example 2: Update service principal by pipeline input ```powershell -PS C:\> Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note +Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note ``` Update service principal and associated application by display name, 'IdentifierUri', 'PasswordCredential', 'KeyCredential' will be assigned to application \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/examples/Update-AzADUser.md b/src/Resources/MSGraph.Autorest/examples/Update-AzADUser.md index 2d745bdf7696..777d72ccf9eb 100644 --- a/src/Resources/MSGraph.Autorest/examples/Update-AzADUser.md +++ b/src/Resources/MSGraph.Autorest/examples/Update-AzADUser.md @@ -1,6 +1,6 @@ ### Example 1: Update user by user principal name ```powershell -PS C:\> Update-AzADUser -UPNOrObjectId $upn -City $city +Update-AzADUser -UPNOrObjectId $upn -City $city ``` Update user by user principal name \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/exports/Add-AzADAppPermission.ps1 b/src/Resources/MSGraph.Autorest/exports/Add-AzADAppPermission.ps1 index 45836da2015a..fb6a473c8958 100644 --- a/src/Resources/MSGraph.Autorest/exports/Add-AzADAppPermission.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Add-AzADAppPermission.ps1 @@ -30,9 +30,9 @@ Delegated permissions under the `oauth2Permissions` property correspond to `Scop User needs to grant consent via Azure Portal if the permission requires admin consent because Azure PowerShell doesn't support it yet. .Example -PS C:\> Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d +Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d .Example -PS C:\> Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 1138cb37-bd11-4084-a2b7-9f71582aeddb -Type Role +Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 1138cb37-bd11-4084-a2b7-9f71582aeddb -Type Role .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/exports/Add-AzADGroupMember.ps1 b/src/Resources/MSGraph.Autorest/exports/Add-AzADGroupMember.ps1 index b6425a2458c0..db43bbd8f98c 100644 --- a/src/Resources/MSGraph.Autorest/exports/Add-AzADGroupMember.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Add-AzADGroupMember.ps1 @@ -20,11 +20,11 @@ Adds member to group. .Description Adds member to group. .Example -PS C:\> $groupid=(Get-AzADGroup -DisplayName $gname).Id -PS C:\> $members=@() -PS C:\> $members+=(Get-AzADUser -DisplayName $uname).Id -PS C:\> $members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id -PS C:\> Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members +$groupid=(Get-AzADGroup -DisplayName $gname).Id +$members=@() +$members+=(Get-AzADUser -DisplayName $uname).Id +$members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id +Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphGroup diff --git a/src/Resources/MSGraph.Autorest/exports/Get-AzADAppCredential.ps1 b/src/Resources/MSGraph.Autorest/exports/Get-AzADAppCredential.ps1 index d73d76473fa2..10ff1e239d34 100644 --- a/src/Resources/MSGraph.Autorest/exports/Get-AzADAppCredential.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Get-AzADAppCredential.ps1 @@ -20,7 +20,7 @@ Lists key credentials and password credentials for an application. .Description Lists key credentials and password credentials for an application. .Example -PS C:\> Get-AzADAppCredential -DisplayName $name +Get-AzADAppCredential -DisplayName $name .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/exports/Get-AzADAppPermission.ps1 b/src/Resources/MSGraph.Autorest/exports/Get-AzADAppPermission.ps1 index ff3a1e8e70ba..e04de155bff4 100644 --- a/src/Resources/MSGraph.Autorest/exports/Get-AzADAppPermission.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Get-AzADAppPermission.ps1 @@ -20,12 +20,7 @@ Lists API permissions the application has requested. .Description Lists API permissions the application has requested. .Example -PS C:\> Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427 - -ApiId Id Type ------ -- ---- -00000003-0000-0000-c000-000000000000 df021288-bdef-4463-88db-98f22de89214 Scope -00000003-0000-0000-c000-000000000000 5b567255-7703-4780-807c-7be8301ae99b Scope +Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427 .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.MicrosoftGraphApplicationApiPermission diff --git a/src/Resources/MSGraph.Autorest/exports/Get-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/exports/Get-AzADApplication.ps1 index 8f0782cdb3be..7cadba6e3fba 100644 --- a/src/Resources/MSGraph.Autorest/exports/Get-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Get-AzADApplication.ps1 @@ -20,13 +20,13 @@ Lists entities from applications or get entity from applications by key .Description Lists entities from applications or get entity from applications by key .Example -PS C:\> Get-AzADApplication -DisplayName $appname +Get-AzADApplication -DisplayName $appname .Example -PS C:\> Get-AzADApplication -First 10 +Get-AzADApplication -First 10 .Example -PS C:\> Get-AzADApplication -DisplayNameStartsWith $prefix +Get-AzADApplication -DisplayNameStartsWith $prefix .Example -PS C:\> Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected +Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/exports/Get-AzADGroup.ps1 b/src/Resources/MSGraph.Autorest/exports/Get-AzADGroup.ps1 index ff0f7dcd48b1..9fa1aec12760 100644 --- a/src/Resources/MSGraph.Autorest/exports/Get-AzADGroup.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Get-AzADGroup.ps1 @@ -20,11 +20,11 @@ Lists entities from groups or get entity from groups by key .Description Lists entities from groups or get entity from groups by key .Example -PS C:\> Get-AzADGroup -DisplayName $gname +Get-AzADGroup -DisplayName $gname .Example -PS C:\> Get-AzADGroup -First 10 +Get-AzADGroup -First 10 .Example -PS C:\> Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected +Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup diff --git a/src/Resources/MSGraph.Autorest/exports/Get-AzADGroupMember.ps1 b/src/Resources/MSGraph.Autorest/exports/Get-AzADGroupMember.ps1 index 8f2b1c2a1959..9564d15aed3b 100644 --- a/src/Resources/MSGraph.Autorest/exports/Get-AzADGroupMember.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Get-AzADGroupMember.ps1 @@ -20,9 +20,9 @@ Lists members from group. .Description Lists members from group. .Example -PS C:\> Get-AzADGroupMember -GroupDisplayName $name +Get-AzADGroupMember -GroupDisplayName $name .Example -PS C:\> Get-AzADGroup -DisplayName $name | Get-AzADGroupMember +Get-AzADGroup -DisplayName $name | Get-AzADGroupMember .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup diff --git a/src/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipal.ps1 index a1f1950d8bb6..57de7ab73cc7 100644 --- a/src/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipal.ps1 @@ -20,15 +20,15 @@ Lists entities from service principals or get entity from service principals by .Description Lists entities from service principals or get entity from service principals by key .Example -PS C:\> Get-AzADServicePrincipal -DisplayName $name +Get-AzADServicePrincipal -DisplayName $name .Example -PS C:\> Get-AzADServicePrincipal -DisplayNameStartsWith $prefix +Get-AzADServicePrincipal -DisplayNameStartsWith $prefix .Example -PS C:\> Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected +Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected .Example -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId +Get-AzADServicePrincipal -ApplicationId $appId .Example -PS C:\> Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal +Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/exports/Get-AzADSpCredential.ps1 b/src/Resources/MSGraph.Autorest/exports/Get-AzADSpCredential.ps1 index 76b26ff75f6c..21f88e7010f2 100644 --- a/src/Resources/MSGraph.Autorest/exports/Get-AzADSpCredential.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Get-AzADSpCredential.ps1 @@ -20,7 +20,7 @@ Lists key credentials and password credentials for an service principal. .Description Lists key credentials and password credentials for an service principal. .Example -PS C:\> Get-AzADSpCredential -DisplayName $name +Get-AzADSpCredential -DisplayName $name .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal diff --git a/src/Resources/MSGraph.Autorest/exports/Get-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/exports/Get-AzADUser.ps1 index c9401b51c4b8..3f43ae8541c6 100644 --- a/src/Resources/MSGraph.Autorest/exports/Get-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Get-AzADUser.ps1 @@ -20,11 +20,11 @@ Lists entities from users or get entity from users by key .Description Lists entities from users or get entity from users by key .Example -PS C:\> Get-AzADUser -SignedIn +Get-AzADUser -SignedIn .Example -PS C:\> Get-AzADUser -First 10 -Select 'City' -AppendSelected +Get-AzADUser -First 10 -Select 'City' -AppendSelected .Example -PS C:\> Get-AzADUser -DisplayName $name +Get-AzADUser -DisplayName $name .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser diff --git a/src/Resources/MSGraph.Autorest/exports/New-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/exports/New-AzADApplication.ps1 index b570aa7a5364..f6c345f48c69 100644 --- a/src/Resources/MSGraph.Autorest/exports/New-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/New-AzADApplication.ps1 @@ -20,7 +20,7 @@ Adds new entity to applications .Description Adds new entity to applications .Example -PS C:\> New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount +New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/exports/New-AzADGroup.ps1 b/src/Resources/MSGraph.Autorest/exports/New-AzADGroup.ps1 index 34fab970a411..87ffb3fef7a9 100644 --- a/src/Resources/MSGraph.Autorest/exports/New-AzADGroup.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/New-AzADGroup.ps1 @@ -20,7 +20,7 @@ Adds new entity to groups .Description Adds new entity to groups .Example -PS C:\> New-AzADGroup -DisplayName $gname -MailNickname $nickname +New-AzADGroup -DisplayName $gname -MailNickname $nickname .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup diff --git a/src/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipal.ps1 index 5737726b0cf5..3d71ed46ff8b 100644 --- a/src/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipal.ps1 @@ -20,11 +20,11 @@ Adds new entity to servicePrincipals .Description Adds new entity to servicePrincipals .Example -PS C:\> New-AzADServicePrincipal +New-AzADServicePrincipal .Example -PS C:\> New-AzADServicePrincipal -ApplicationId $appid +New-AzADServicePrincipal -ApplicationId $appid .Example -PS C:\> New-AzADServicePrincipal -DisplayName $name +New-AzADServicePrincipal -DisplayName $name .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -302,13 +302,6 @@ param( # Supports $filter (eq, ne, NOT, ge, le, in, startsWith), $search, and $orderBy. ${DisplayName}, - [Parameter(ParameterSetName='SimpleParameterSet')] - [Alias('AppId')] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] - [System.Guid] - # The unique identifier for the associated application (its appId property). - ${ApplicationId}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] [System.String] @@ -652,6 +645,13 @@ param( # To construct, see NOTES section for APPLICATIONOBJECT properties and create a hash table. ${ApplicationObject}, + [Parameter(ParameterSetName='ApplicationIdParameterSet')] + [Alias('AppId')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] + [System.Guid] + # The unique identifier for the associated application (its appId property). + ${ApplicationId}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -713,6 +713,7 @@ begin { DisplayNameWithKeyCredentialParameterSet = 'Az.MSGraph.custom\New-AzADServicePrincipal'; DisplayNameWithPasswordCredentialParameterSet = 'Az.MSGraph.custom\New-AzADServicePrincipal'; ApplicationObjectParameterSet = 'Az.MSGraph.custom\New-AzADServicePrincipal'; + ApplicationIdParameterSet = 'Az.MSGraph.custom\New-AzADServicePrincipal'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Resources/MSGraph.Autorest/exports/New-AzADSpCredential.ps1 b/src/Resources/MSGraph.Autorest/exports/New-AzADSpCredential.ps1 index ddf3e1d5d296..be93f78adb0d 100644 --- a/src/Resources/MSGraph.Autorest/exports/New-AzADSpCredential.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/New-AzADSpCredential.ps1 @@ -20,14 +20,14 @@ Creates key credentials or password credentials for an service principal. .Description Creates key credentials or password credentials for an service principal. .Example -PS C:\> $credential = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphKeyCredential" ` +$credential = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphKeyCredential" ` -Property @{'Key' = $cert; 'Usage' = 'Verify'; 'Type' = 'AsymmetricX509Cert' } -PS C:\> New-AzADSpCredential -ObjectId $Id -KeyCredentials $credential +New-AzADSpCredential -ObjectId $Id -KeyCredentials $credential .Example -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId | New-AzADSpCredential -StartDate $startDate -EndDate $endDate +Get-AzADServicePrincipal -ApplicationId $appId | New-AzADSpCredential -StartDate $startDate -EndDate $endDate .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal diff --git a/src/Resources/MSGraph.Autorest/exports/New-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/exports/New-AzADUser.ps1 index 5671c32dbfca..029874a4330f 100644 --- a/src/Resources/MSGraph.Autorest/exports/New-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/New-AzADUser.ps1 @@ -20,8 +20,8 @@ Adds new entity to users .Description Adds new entity to users .Example -PS C:\> $pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} -PS C:\> New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn +$pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} +New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser diff --git a/src/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 index d94c15fc744f..7e53f527656d 100644 --- a/src/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -30,9 +30,9 @@ Delegated permissions under the `oauth2Permissions` property correspond to `Scop User needs to grant consent via Azure Portal if the permission requires admin consent because Azure PowerShell doesn't support it yet. .Example -PS C:\> Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d +Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d .Example -PS C:\> Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 1138cb37-bd11-4084-a2b7-9f71582aeddb -Type Role +Add-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -ApiId 00000003-0000-0000-c000-000000000000 -PermissionId 1138cb37-bd11-4084-a2b7-9f71582aeddb -Type Role .Outputs System.Boolean @@ -169,11 +169,11 @@ Adds member to group. .Description Adds member to group. .Example -PS C:\> $groupid=(Get-AzADGroup -DisplayName $gname).Id -PS C:\> $members=@() -PS C:\> $members+=(Get-AzADUser -DisplayName $uname).Id -PS C:\> $members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id -PS C:\> Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members +$groupid=(Get-AzADGroup -DisplayName $gname).Id +$members=@() +$members+=(Get-AzADUser -DisplayName $uname).Id +$members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id +Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphGroup @@ -373,7 +373,7 @@ Lists key credentials and password credentials for an application. .Description Lists key credentials and password credentials for an application. .Example -PS C:\> Get-AzADAppCredential -DisplayName $name +Get-AzADAppCredential -DisplayName $name .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -641,13 +641,13 @@ Lists entities from applications or get entity from applications by key .Description Lists entities from applications or get entity from applications by key .Example -PS C:\> Get-AzADApplication -DisplayName $appname +Get-AzADApplication -DisplayName $appname .Example -PS C:\> Get-AzADApplication -First 10 +Get-AzADApplication -First 10 .Example -PS C:\> Get-AzADApplication -DisplayNameStartsWith $prefix +Get-AzADApplication -DisplayNameStartsWith $prefix .Example -PS C:\> Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected +Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -839,12 +839,7 @@ Lists API permissions the application has requested. .Description Lists API permissions the application has requested. .Example -PS C:\> Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427 - -ApiId Id Type ------ -- ---- -00000003-0000-0000-c000-000000000000 df021288-bdef-4463-88db-98f22de89214 Scope -00000003-0000-0000-c000-000000000000 5b567255-7703-4780-807c-7be8301ae99b Scope +Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427 .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.MicrosoftGraphApplicationApiPermission @@ -960,11 +955,11 @@ Lists entities from groups or get entity from groups by key .Description Lists entities from groups or get entity from groups by key .Example -PS C:\> Get-AzADGroup -DisplayName $gname +Get-AzADGroup -DisplayName $gname .Example -PS C:\> Get-AzADGroup -First 10 +Get-AzADGroup -First 10 .Example -PS C:\> Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected +Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup @@ -1151,9 +1146,9 @@ Lists members from group. .Description Lists members from group. .Example -PS C:\> Get-AzADGroupMember -GroupDisplayName $name +Get-AzADGroupMember -GroupDisplayName $name .Example -PS C:\> Get-AzADGroup -DisplayName $name | Get-AzADGroupMember +Get-AzADGroup -DisplayName $name | Get-AzADGroupMember .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup @@ -1371,15 +1366,15 @@ Lists entities from service principals or get entity from service principals by .Description Lists entities from service principals or get entity from service principals by key .Example -PS C:\> Get-AzADServicePrincipal -DisplayName $name +Get-AzADServicePrincipal -DisplayName $name .Example -PS C:\> Get-AzADServicePrincipal -DisplayNameStartsWith $prefix +Get-AzADServicePrincipal -DisplayNameStartsWith $prefix .Example -PS C:\> Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected +Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected .Example -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId +Get-AzADServicePrincipal -ApplicationId $appId .Example -PS C:\> Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal +Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -1714,7 +1709,7 @@ Lists key credentials and password credentials for an service principal. .Description Lists key credentials and password credentials for an service principal. .Example -PS C:\> Get-AzADSpCredential -DisplayName $name +Get-AzADSpCredential -DisplayName $name .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal @@ -1974,11 +1969,11 @@ Lists entities from users or get entity from users by key .Description Lists entities from users or get entity from users by key .Example -PS C:\> Get-AzADUser -SignedIn +Get-AzADUser -SignedIn .Example -PS C:\> Get-AzADUser -First 10 -Select 'City' -AppendSelected +Get-AzADUser -First 10 -Select 'City' -AppendSelected .Example -PS C:\> Get-AzADUser -DisplayName $name +Get-AzADUser -DisplayName $name .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser @@ -2574,7 +2569,7 @@ Adds new entity to applications .Description Adds new entity to applications .Example -PS C:\> New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount +New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -3087,7 +3082,7 @@ Adds new entity to groups .Description Adds new entity to groups .Example -PS C:\> New-AzADGroup -DisplayName $gname -MailNickname $nickname +New-AzADGroup -DisplayName $gname -MailNickname $nickname .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup @@ -3446,11 +3441,11 @@ Adds new entity to servicePrincipals .Description Adds new entity to servicePrincipals .Example -PS C:\> New-AzADServicePrincipal +New-AzADServicePrincipal .Example -PS C:\> New-AzADServicePrincipal -ApplicationId $appid +New-AzADServicePrincipal -ApplicationId $appid .Example -PS C:\> New-AzADServicePrincipal -DisplayName $name +New-AzADServicePrincipal -DisplayName $name .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -3728,13 +3723,6 @@ param( # Supports $filter (eq, ne, NOT, ge, le, in, startsWith), $search, and $orderBy. ${DisplayName}, - [Parameter(ParameterSetName='SimpleParameterSet')] - [Alias('AppId')] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] - [System.Guid] - # The unique identifier for the associated application (its appId property). - ${ApplicationId}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] [System.String] @@ -4078,6 +4066,13 @@ param( # To construct, see NOTES section for APPLICATIONOBJECT properties and create a hash table. ${ApplicationObject}, + [Parameter(ParameterSetName='ApplicationIdParameterSet')] + [Alias('AppId')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] + [System.Guid] + # The unique identifier for the associated application (its appId property). + ${ApplicationId}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -4139,6 +4134,7 @@ begin { DisplayNameWithKeyCredentialParameterSet = 'Az.MSGraph.custom\New-AzADServicePrincipal'; DisplayNameWithPasswordCredentialParameterSet = 'Az.MSGraph.custom\New-AzADServicePrincipal'; ApplicationObjectParameterSet = 'Az.MSGraph.custom\New-AzADServicePrincipal'; + ApplicationIdParameterSet = 'Az.MSGraph.custom\New-AzADServicePrincipal'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4174,14 +4170,14 @@ Creates key credentials or password credentials for an service principal. .Description Creates key credentials or password credentials for an service principal. .Example -PS C:\> $credential = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphKeyCredential" ` +$credential = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphKeyCredential" ` -Property @{'Key' = $cert; 'Usage' = 'Verify'; 'Type' = 'AsymmetricX509Cert' } -PS C:\> New-AzADSpCredential -ObjectId $Id -KeyCredentials $credential +New-AzADSpCredential -ObjectId $Id -KeyCredentials $credential .Example -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId | New-AzADSpCredential -StartDate $startDate -EndDate $endDate +Get-AzADServicePrincipal -ApplicationId $appId | New-AzADSpCredential -StartDate $startDate -EndDate $endDate .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal @@ -4523,8 +4519,8 @@ Adds new entity to users .Description Adds new entity to users .Example -PS C:\> $pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} -PS C:\> New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn +$pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} +New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser @@ -5019,9 +5015,9 @@ Removes key credentials or password credentials for an application. .Description Removes key credentials or password credentials for an application. .Example -PS C:\> Remove-AzADAppCredential -DisplayName $name -KeyId $keyid +Remove-AzADAppCredential -DisplayName $name -KeyId $keyid .Example -PS C:\> Get-AzADApplication -DisplayName $name | Remove-AzADAppCredential +Get-AzADApplication -DisplayName $name | Remove-AzADAppCredential .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -5299,9 +5295,9 @@ Deletes entity from applications .Description Deletes entity from applications .Example -PS C:\> Remove-AzADApplication -DisplayName $name +Remove-AzADApplication -DisplayName $name .Example -PS C:\> Get-AzADApplication -ObjectId $id | Remove-AzADApplication +Get-AzADApplication -ObjectId $id | Remove-AzADApplication .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -5573,7 +5569,7 @@ Removes an API permission. .Description Removes an API permission. .Example -PS C:\> Remove-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d +Remove-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d .Outputs System.Boolean @@ -5696,9 +5692,9 @@ Deletes entity from groups. .Description Deletes entity from groups. .Example -PS C:\> Remove-AzADGroup -DisplayName $name +Remove-AzADGroup -DisplayName $name .Example -PS C:\> Get-AzADGroup -ObjectId $id | Remove-AzADGroup +Get-AzADGroup -ObjectId $id | Remove-AzADGroup .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup @@ -5890,10 +5886,10 @@ HTTP Methods: GET (supported for all groups), POST (supported for security group Nullable. Supports $expand. .Example -PS C:\> $members = @() -PS C:\> $members += (Get-AzADUser -DisplayName $uname).Id -PS C:\> $members += (Get-AzADServicePrincipal -ApplicationId $appid).Id -PS C:\> Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member +$members = @() +$members += (Get-AzADUser -DisplayName $uname).Id +$members += (Get-AzADServicePrincipal -ApplicationId $appid).Id +Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphGroup @@ -6094,9 +6090,9 @@ Deletes entity from service principal. .Description Deletes entity from service principal. .Example -PS C:\> Remove-AzADServicePrincipal -DisplayName $name +Remove-AzADServicePrincipal -DisplayName $name .Example -PS C:\> Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal +Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -6512,9 +6508,9 @@ Removes key credentials or password credentials for an service principal. .Description Removes key credentials or password credentials for an service principal. .Example -PS C:\> Remove-AzADSpCredential -DisplayName $name -KeyId $keyid +Remove-AzADSpCredential -DisplayName $name -KeyId $keyid .Example -PS C:\> Get-AzADServicePrincipal -DisplayName $name | Remove-AzADSpCredential +Get-AzADServicePrincipal -DisplayName $name | Remove-AzADSpCredential .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal @@ -6784,9 +6780,9 @@ Deletes entity from users. .Description Deletes entity from users. .Example -PS C:\> Remove-AzADUser -DisplayName $name +Remove-AzADUser -DisplayName $name .Example -PS C:\> Get-AzADUser -UserPrincipalName $id | Remove-AzADUser +Get-AzADUser -UserPrincipalName $id | Remove-AzADUser .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser @@ -6991,9 +6987,9 @@ Updates entity in applications .Description Updates entity in applications .Example -PS C:\> Update-AzADApplication -DisplayName $name -HomePage $homepage +Update-AzADApplication -DisplayName $name -HomePage $homepage .Example -PS C:\> Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl +Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -7589,9 +7585,9 @@ Updates entity in service principal .Description Updates entity in service principal .Example -PS C:\> Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri +Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri .Example -PS C:\> Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note +Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal @@ -8294,7 +8290,7 @@ Updates entity in users .Description Updates entity in users .Example -PS C:\> Update-AzADUser -UPNOrObjectId $upn -City $city +Update-AzADUser -UPNOrObjectId $upn -City $city .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser diff --git a/src/Resources/MSGraph.Autorest/exports/Remove-AzADAppCredential.ps1 b/src/Resources/MSGraph.Autorest/exports/Remove-AzADAppCredential.ps1 index cb90111382bc..4a81e72f8013 100644 --- a/src/Resources/MSGraph.Autorest/exports/Remove-AzADAppCredential.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Remove-AzADAppCredential.ps1 @@ -20,9 +20,9 @@ Removes key credentials or password credentials for an application. .Description Removes key credentials or password credentials for an application. .Example -PS C:\> Remove-AzADAppCredential -DisplayName $name -KeyId $keyid +Remove-AzADAppCredential -DisplayName $name -KeyId $keyid .Example -PS C:\> Get-AzADApplication -DisplayName $name | Remove-AzADAppCredential +Get-AzADApplication -DisplayName $name | Remove-AzADAppCredential .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/exports/Remove-AzADAppPermission.ps1 b/src/Resources/MSGraph.Autorest/exports/Remove-AzADAppPermission.ps1 index 3db5f5b7b649..d7c8c542796f 100644 --- a/src/Resources/MSGraph.Autorest/exports/Remove-AzADAppPermission.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Remove-AzADAppPermission.ps1 @@ -20,7 +20,7 @@ Removes an API permission. .Description Removes an API permission. .Example -PS C:\> Remove-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d +Remove-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/exports/Remove-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/exports/Remove-AzADApplication.ps1 index cbcbfb7fc527..ef5e53ca37dc 100644 --- a/src/Resources/MSGraph.Autorest/exports/Remove-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Remove-AzADApplication.ps1 @@ -20,9 +20,9 @@ Deletes entity from applications .Description Deletes entity from applications .Example -PS C:\> Remove-AzADApplication -DisplayName $name +Remove-AzADApplication -DisplayName $name .Example -PS C:\> Get-AzADApplication -ObjectId $id | Remove-AzADApplication +Get-AzADApplication -ObjectId $id | Remove-AzADApplication .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/exports/Remove-AzADGroup.ps1 b/src/Resources/MSGraph.Autorest/exports/Remove-AzADGroup.ps1 index bbf25007fbe0..1d57679730b8 100644 --- a/src/Resources/MSGraph.Autorest/exports/Remove-AzADGroup.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Remove-AzADGroup.ps1 @@ -20,9 +20,9 @@ Deletes entity from groups. .Description Deletes entity from groups. .Example -PS C:\> Remove-AzADGroup -DisplayName $name +Remove-AzADGroup -DisplayName $name .Example -PS C:\> Get-AzADGroup -ObjectId $id | Remove-AzADGroup +Get-AzADGroup -ObjectId $id | Remove-AzADGroup .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup diff --git a/src/Resources/MSGraph.Autorest/exports/Remove-AzADGroupMember.ps1 b/src/Resources/MSGraph.Autorest/exports/Remove-AzADGroupMember.ps1 index 7359138d0336..3cc55e6488a3 100644 --- a/src/Resources/MSGraph.Autorest/exports/Remove-AzADGroupMember.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Remove-AzADGroupMember.ps1 @@ -28,10 +28,10 @@ HTTP Methods: GET (supported for all groups), POST (supported for security group Nullable. Supports $expand. .Example -PS C:\> $members = @() -PS C:\> $members += (Get-AzADUser -DisplayName $uname).Id -PS C:\> $members += (Get-AzADServicePrincipal -ApplicationId $appid).Id -PS C:\> Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member +$members = @() +$members += (Get-AzADUser -DisplayName $uname).Id +$members += (Get-AzADServicePrincipal -ApplicationId $appid).Id +Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphGroup diff --git a/src/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipal.ps1 index 3f558e7d0092..daa592271de5 100644 --- a/src/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipal.ps1 @@ -20,9 +20,9 @@ Deletes entity from service principal. .Description Deletes entity from service principal. .Example -PS C:\> Remove-AzADServicePrincipal -DisplayName $name +Remove-AzADServicePrincipal -DisplayName $name .Example -PS C:\> Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal +Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/exports/Remove-AzADSpCredential.ps1 b/src/Resources/MSGraph.Autorest/exports/Remove-AzADSpCredential.ps1 index c604a1d34493..e68f20af6f88 100644 --- a/src/Resources/MSGraph.Autorest/exports/Remove-AzADSpCredential.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Remove-AzADSpCredential.ps1 @@ -20,9 +20,9 @@ Removes key credentials or password credentials for an service principal. .Description Removes key credentials or password credentials for an service principal. .Example -PS C:\> Remove-AzADSpCredential -DisplayName $name -KeyId $keyid +Remove-AzADSpCredential -DisplayName $name -KeyId $keyid .Example -PS C:\> Get-AzADServicePrincipal -DisplayName $name | Remove-AzADSpCredential +Get-AzADServicePrincipal -DisplayName $name | Remove-AzADSpCredential .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal diff --git a/src/Resources/MSGraph.Autorest/exports/Remove-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/exports/Remove-AzADUser.ps1 index 0e23b2019dc2..19c1f7344587 100644 --- a/src/Resources/MSGraph.Autorest/exports/Remove-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Remove-AzADUser.ps1 @@ -20,9 +20,9 @@ Deletes entity from users. .Description Deletes entity from users. .Example -PS C:\> Remove-AzADUser -DisplayName $name +Remove-AzADUser -DisplayName $name .Example -PS C:\> Get-AzADUser -UserPrincipalName $id | Remove-AzADUser +Get-AzADUser -UserPrincipalName $id | Remove-AzADUser .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser diff --git a/src/Resources/MSGraph.Autorest/exports/Update-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/exports/Update-AzADApplication.ps1 index 0f88de57113f..5fbd46fc1cab 100644 --- a/src/Resources/MSGraph.Autorest/exports/Update-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Update-AzADApplication.ps1 @@ -20,9 +20,9 @@ Updates entity in applications .Description Updates entity in applications .Example -PS C:\> Update-AzADApplication -DisplayName $name -HomePage $homepage +Update-AzADApplication -DisplayName $name -HomePage $homepage .Example -PS C:\> Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl +Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipal.ps1 index ad1f3782165b..d405f7f304f6 100644 --- a/src/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipal.ps1 @@ -20,9 +20,9 @@ Updates entity in service principal .Description Updates entity in service principal .Example -PS C:\> Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri +Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri .Example -PS C:\> Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note +Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal diff --git a/src/Resources/MSGraph.Autorest/exports/Update-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/exports/Update-AzADUser.ps1 index 3a071e0e35de..4265caed1243 100644 --- a/src/Resources/MSGraph.Autorest/exports/Update-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/exports/Update-AzADUser.ps1 @@ -20,7 +20,7 @@ Updates entity in users .Description Updates entity in users .Example -PS C:\> Update-AzADUser -UPNOrObjectId $upn -City $city +Update-AzADUser -UPNOrObjectId $upn -City $city .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser diff --git a/src/Resources/MSGraph.Autorest/generate-info.json b/src/Resources/MSGraph.Autorest/generate-info.json index bd7c59fa58cb..b7611e09f45e 100644 --- a/src/Resources/MSGraph.Autorest/generate-info.json +++ b/src/Resources/MSGraph.Autorest/generate-info.json @@ -1,8 +1,8 @@ { - "autorest_modelerfour": "4.15.414", + "swagger_commit": "c277c1bc2a40d5b5d2b1792e611291e708246d0e", "node": "v14.15.5", - "autorest_core": "3.7.6", - "autorest_powershell": "3.0.476", - "swagger_commit": "9f48feaf684784644513d11ddb7bd0ac2e32f48e", - "autorest": "`-- (empty)" + "autorest_powershell": "3.0.480", + "autorest": "`-- (empty)", + "autorest_modelerfour": "4.15.414", + "autorest_core": "3.8.2" } diff --git a/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs index fcd787312c59..22f1d827a4a2 100644 --- a/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ b/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -52,6 +52,17 @@ public override string ToString() internal class HelpExampleOutput { + private string ExampleTemplate = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + Environment.NewLine; + + private string ExampleTemplateWithOutput = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + "{6}" + Environment.NewLine + "{7}" + Environment.NewLine + Environment.NewLine + + "{8}" + Environment.NewLine + Environment.NewLine; + public MarkdownExampleHelpInfo ExampleInfo { get; } public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) @@ -59,17 +70,26 @@ public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) ExampleInfo = exampleInfo; } - public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name} -{ExampleCodeHeader} -{ExampleInfo.Code} -{ExampleCodeFooter} - -{ExampleInfo.Description.ToDescriptionFormat()} - -"; + public override string ToString() + { + if (string.IsNullOrEmpty(ExampleInfo.Output)) + { + return string.Format(ExampleTemplate, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleInfo.Description.ToDescriptionFormat()); + } + else + { + return string.Format(ExampleTemplateWithOutput, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleOutputHeader, ExampleInfo.Output, ExampleOutputFooter, + ExampleInfo.Description.ToDescriptionFormat()); ; + } + } } - - + internal class HelpParameterOutput { public MarkdownParameterHelpInfo ParameterInfo { get; } @@ -161,6 +181,8 @@ public static string ToDescriptionFormat(this string text, bool escapeAngleBrack public const string ExampleNameHeader = "### "; public const string ExampleCodeHeader = "```powershell"; public const string ExampleCodeFooter = "```"; + public const string ExampleOutputHeader = "```output"; + public const string ExampleOutputFooter = "```"; public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); diff --git a/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index b36264906627..94e4d6c1c758 100644 --- a/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -109,18 +109,21 @@ internal class PsHelpExampleInfo { public string Title { get; } public string Code { get; } + public string Output { get; } public string Remarks { get; } public PsHelpExampleInfo(PSObject exampleObject) { Title = exampleObject.GetProperty("title"); Code = exampleObject.GetProperty("code"); + Output = exampleObject.GetProperty("output"); Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); } public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) { Title = markdownExample.Name; Code = markdownExample.Code; + Output = markdownExample.Output; Remarks = markdownExample.Description; } diff --git a/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs index 378be9ccc556..9a7216ee348e 100644 --- a/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs +++ b/src/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -91,12 +91,17 @@ private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) var code = codeStartIndex.HasValue && codeEndIndex.HasValue ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) : String.Empty; - var descriptionStartIndex = (codeEndIndex ?? 0) + 1; + var outputStartIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var outputEndIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i > outputStartIndex); + var output = outputStartIndex.HasValue && outputEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(outputStartIndex.Value + 1).Take(outputEndIndex.Value - (outputStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (outputEndIndex ?? (codeEndIndex ?? 0)) + 1; descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; var descriptionEndIndex = eg.Length - 1; descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); - return new MarkdownExampleHelpInfo(name, code, description); + return new MarkdownExampleHelpInfo(name, code, output, description); }).ToArray(); } } @@ -154,12 +159,14 @@ internal class MarkdownExampleHelpInfo { public string Name { get; } public string Code { get; } + public string Output { get; } public string Description { get; } - public MarkdownExampleHelpInfo(string name, string code, string description) + public MarkdownExampleHelpInfo(string name, string code, string output, string description) { Name = name; Code = code; + Output = output; Description = description; } } @@ -213,12 +220,12 @@ public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, Param internal static class MarkdownTypesExtensions { - public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks); + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks); public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = { - new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"), - new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}") + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), }; public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = diff --git a/src/Resources/MSGraph.Autorest/internal/Add-AzADApplicationKey.ps1 b/src/Resources/MSGraph.Autorest/internal/Add-AzADApplicationKey.ps1 index 56ab9195b68b..e19ae5bfd9af 100644 --- a/src/Resources/MSGraph.Autorest/internal/Add-AzADApplicationKey.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Add-AzADApplicationKey.ps1 @@ -20,13 +20,9 @@ Invoke action addKey .Description Invoke action addKey .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPaths17CrvdcApplicationsApplicationIdMicrosoftGraphAddkeyPostRequestbodyContentApplicationJsonSchema diff --git a/src/Resources/MSGraph.Autorest/internal/Add-AzADApplicationPassword.ps1 b/src/Resources/MSGraph.Autorest/internal/Add-AzADApplicationPassword.ps1 index fc85cc8825aa..179cfeda3df4 100644 --- a/src/Resources/MSGraph.Autorest/internal/Add-AzADApplicationPassword.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Add-AzADApplicationPassword.ps1 @@ -20,13 +20,9 @@ Invoke action addPassword .Description Invoke action addPassword .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPaths141Ryo0ApplicationsApplicationIdMicrosoftGraphAddpasswordPostRequestbodyContentApplicationJsonSchema diff --git a/src/Resources/MSGraph.Autorest/internal/Add-AzADServicePrincipalKey.ps1 b/src/Resources/MSGraph.Autorest/internal/Add-AzADServicePrincipalKey.ps1 index 69c177c30480..27245da66187 100644 --- a/src/Resources/MSGraph.Autorest/internal/Add-AzADServicePrincipalKey.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Add-AzADServicePrincipalKey.ps1 @@ -20,13 +20,9 @@ Invoke action addKey .Description Invoke action addKey .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPathsN3Fx9GServiceprincipalsServiceprincipalIdMicrosoftGraphAddkeyPostRequestbodyContentApplicationJsonSchema diff --git a/src/Resources/MSGraph.Autorest/internal/Add-AzADServicePrincipalPassword.ps1 b/src/Resources/MSGraph.Autorest/internal/Add-AzADServicePrincipalPassword.ps1 index 889b5eb103fd..7644f39f1d17 100644 --- a/src/Resources/MSGraph.Autorest/internal/Add-AzADServicePrincipalPassword.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Add-AzADServicePrincipalPassword.ps1 @@ -20,13 +20,9 @@ Invoke action addPassword .Description Invoke action addPassword .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPathsIeboplServiceprincipalsServiceprincipalIdMicrosoftGraphAddpasswordPostRequestbodyContentApplicationJsonSchema diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1 index 0419ec0bdf0d..bf733f4c8070 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1 @@ -22,13 +22,13 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Get-AzADApplication -DisplayName $appname +Get-AzADApplication -DisplayName $appname .Example -PS C:\> Get-AzADApplication -First 10 +Get-AzADApplication -First 10 .Example -PS C:\> Get-AzADApplication -DisplayNameStartsWith $prefix +Get-AzADApplication -DisplayNameStartsWith $prefix .Example -PS C:\> Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected +Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1 index acf65f0bb433..eb9865797954 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1 @@ -22,11 +22,11 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Get-AzADGroup -DisplayName $gname +Get-AzADGroup -DisplayName $gname .Example -PS C:\> Get-AzADGroup -First 10 +Get-AzADGroup -First 10 .Example -PS C:\> Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected +Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADGroupMember.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADGroupMember.ps1 index 03e590702d44..a8d2abd9db6a 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADGroupMember.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADGroupMember.ps1 @@ -26,9 +26,9 @@ HTTP Methods: GET (supported for all groups), POST (supported for security group Nullable. Supports $expand. .Example -PS C:\> Get-AzADGroupMember -GroupDisplayName $name +Get-AzADGroupMember -GroupDisplayName $name .Example -PS C:\> Get-AzADGroup -DisplayName $name | Get-AzADGroupMember +Get-AzADGroup -DisplayName $name | Get-AzADGroupMember .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphDirectoryObject diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1 index f37163045a83..7deb4b925168 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1 @@ -22,15 +22,15 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Get-AzADServicePrincipal -DisplayName $name +Get-AzADServicePrincipal -DisplayName $name .Example -PS C:\> Get-AzADServicePrincipal -DisplayNameStartsWith $prefix +Get-AzADServicePrincipal -DisplayNameStartsWith $prefix .Example -PS C:\> Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected +Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected .Example -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId +Get-AzADServicePrincipal -ApplicationId $appId .Example -PS C:\> Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal +Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1 index 323fe220bbb2..8b507426342c 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1 @@ -20,11 +20,11 @@ Represents an Azure Active Directory user object. .Description Represents an Azure Active Directory user object. .Example -PS C:\> Get-AzADUser -SignedIn +Get-AzADUser -SignedIn .Example -PS C:\> Get-AzADUser -First 10 -Select 'City' -AppendSelected +Get-AzADUser -First 10 -Select 'City' -AppendSelected .Example -PS C:\> Get-AzADUser -DisplayName $name +Get-AzADUser -DisplayName $name .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADUserSigned.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADUserSigned.ps1 index 6166d2936718..18850954daf3 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADUserSigned.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADUserSigned.ps1 @@ -20,13 +20,9 @@ Represents current signed-in user object. .Description Represents current signed-in user object. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser diff --git a/src/Resources/MSGraph.Autorest/internal/New-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/internal/New-AzADApplication.ps1 index fa18ee06ba63..4374eaf6951d 100644 --- a/src/Resources/MSGraph.Autorest/internal/New-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/New-AzADApplication.ps1 @@ -20,7 +20,7 @@ Add new entity to applications .Description Add new entity to applications .Example -PS C:\> New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount +New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication diff --git a/src/Resources/MSGraph.Autorest/internal/New-AzADGroup.ps1 b/src/Resources/MSGraph.Autorest/internal/New-AzADGroup.ps1 index 0316631620bc..63e404fd563d 100644 --- a/src/Resources/MSGraph.Autorest/internal/New-AzADGroup.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/New-AzADGroup.ps1 @@ -20,7 +20,7 @@ Add new entity to groups .Description Add new entity to groups .Example -PS C:\> New-AzADGroup -DisplayName $gname -MailNickname $nickname +New-AzADGroup -DisplayName $gname -MailNickname $nickname .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup diff --git a/src/Resources/MSGraph.Autorest/internal/New-AzADGroupRefMember.ps1 b/src/Resources/MSGraph.Autorest/internal/New-AzADGroupRefMember.ps1 index a9523b051c32..641f93f08611 100644 --- a/src/Resources/MSGraph.Autorest/internal/New-AzADGroupRefMember.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/New-AzADGroupRefMember.ps1 @@ -26,13 +26,9 @@ HTTP Methods: GET (supported for all groups), POST (supported for security group Nullable. Supports $expand. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs System.Collections.Hashtable diff --git a/src/Resources/MSGraph.Autorest/internal/New-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/internal/New-AzADServicePrincipal.ps1 index f03fcc5dcfe0..0a980d3ae894 100644 --- a/src/Resources/MSGraph.Autorest/internal/New-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/New-AzADServicePrincipal.ps1 @@ -20,11 +20,11 @@ Add new entity to servicePrincipals .Description Add new entity to servicePrincipals .Example -PS C:\> New-AzADServicePrincipal +New-AzADServicePrincipal .Example -PS C:\> New-AzADServicePrincipal -ApplicationId $appid +New-AzADServicePrincipal -ApplicationId $appid .Example -PS C:\> New-AzADServicePrincipal -DisplayName $name +New-AzADServicePrincipal -DisplayName $name .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal diff --git a/src/Resources/MSGraph.Autorest/internal/New-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/internal/New-AzADUser.ps1 index 6cfd713f1d6e..d7f4a38b3539 100644 --- a/src/Resources/MSGraph.Autorest/internal/New-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/New-AzADUser.ps1 @@ -20,8 +20,8 @@ Add new entity to users .Description Add new entity to users .Example -PS C:\> $pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} -PS C:\> New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn +$pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} +New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser diff --git a/src/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 index ce085af05541..e315dff7bc0b 100644 --- a/src/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -20,13 +20,9 @@ Invoke action addKey .Description Invoke action addKey .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPaths17CrvdcApplicationsApplicationIdMicrosoftGraphAddkeyPostRequestbodyContentApplicationJsonSchema @@ -214,13 +210,9 @@ Invoke action addPassword .Description Invoke action addPassword .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPaths141Ryo0ApplicationsApplicationIdMicrosoftGraphAddpasswordPostRequestbodyContentApplicationJsonSchema @@ -373,13 +365,9 @@ Invoke action addKey .Description Invoke action addKey .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPathsN3Fx9GServiceprincipalsServiceprincipalIdMicrosoftGraphAddkeyPostRequestbodyContentApplicationJsonSchema @@ -567,13 +555,9 @@ Invoke action addPassword .Description Invoke action addPassword .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPathsIeboplServiceprincipalsServiceprincipalIdMicrosoftGraphAddpasswordPostRequestbodyContentApplicationJsonSchema @@ -728,13 +712,13 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Get-AzADApplication -DisplayName $appname +Get-AzADApplication -DisplayName $appname .Example -PS C:\> Get-AzADApplication -First 10 +Get-AzADApplication -First 10 .Example -PS C:\> Get-AzADApplication -DisplayNameStartsWith $prefix +Get-AzADApplication -DisplayNameStartsWith $prefix .Example -PS C:\> Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected +Get-AzADapplication -ObjectId $id -Select Tags -AppendSelected .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -908,9 +892,9 @@ HTTP Methods: GET (supported for all groups), POST (supported for security group Nullable. Supports $expand. .Example -PS C:\> Get-AzADGroupMember -GroupDisplayName $name +Get-AzADGroupMember -GroupDisplayName $name .Example -PS C:\> Get-AzADGroup -DisplayName $name | Get-AzADGroupMember +Get-AzADGroup -DisplayName $name | Get-AzADGroupMember .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphDirectoryObject @@ -1078,11 +1062,11 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Get-AzADGroup -DisplayName $gname +Get-AzADGroup -DisplayName $gname .Example -PS C:\> Get-AzADGroup -First 10 +Get-AzADGroup -First 10 .Example -PS C:\> Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected +Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup @@ -1252,15 +1236,15 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Get-AzADServicePrincipal -DisplayName $name +Get-AzADServicePrincipal -DisplayName $name .Example -PS C:\> Get-AzADServicePrincipal -DisplayNameStartsWith $prefix +Get-AzADServicePrincipal -DisplayNameStartsWith $prefix .Example -PS C:\> Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected +Get-AzADServicePrincipal -First 10 -Select Tags -AppendSelected .Example -PS C:\> Get-AzADServicePrincipal -ApplicationId $appId +Get-AzADServicePrincipal -ApplicationId $appId .Example -PS C:\> Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal +Get-AzADApplication -DisplayName $name | Get-AzADServicePrincipal .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal @@ -1428,13 +1412,9 @@ Represents current signed-in user object. .Description Represents current signed-in user object. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser @@ -1550,11 +1530,11 @@ Represents an Azure Active Directory user object. .Description Represents an Azure Active Directory user object. .Example -PS C:\> Get-AzADUser -SignedIn +Get-AzADUser -SignedIn .Example -PS C:\> Get-AzADUser -First 10 -Select 'City' -AppendSelected +Get-AzADUser -First 10 -Select 'City' -AppendSelected .Example -PS C:\> Get-AzADUser -DisplayName $name +Get-AzADUser -DisplayName $name .Outputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser @@ -1722,7 +1702,7 @@ Add new entity to applications .Description Add new entity to applications .Example -PS C:\> New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount +New-AzADApplication -SigninAudience AzureADandPersonalMicrosoftAccount .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphApplication @@ -2356,13 +2336,9 @@ HTTP Methods: GET (supported for all groups), POST (supported for security group Nullable. Supports $expand. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs System.Collections.Hashtable @@ -2492,7 +2468,7 @@ Add new entity to groups .Description Add new entity to groups .Example -PS C:\> New-AzADGroup -DisplayName $gname -MailNickname $nickname +New-AzADGroup -DisplayName $gname -MailNickname $nickname .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphGroup @@ -2861,11 +2837,11 @@ Add new entity to servicePrincipals .Description Add new entity to servicePrincipals .Example -PS C:\> New-AzADServicePrincipal +New-AzADServicePrincipal .Example -PS C:\> New-AzADServicePrincipal -ApplicationId $appid +New-AzADServicePrincipal -ApplicationId $appid .Example -PS C:\> New-AzADServicePrincipal -DisplayName $name +New-AzADServicePrincipal -DisplayName $name .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal @@ -3548,8 +3524,8 @@ Add new entity to users .Description Add new entity to users .Example -PS C:\> $pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} -PS C:\> New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn +$pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password} +New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphUser @@ -4096,13 +4072,9 @@ Invoke action removeKey .Description Invoke action removeKey .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPathsHxlydaApplicationsApplicationIdMicrosoftGraphRemovekeyPostRequestbodyContentApplicationJsonSchema @@ -4253,13 +4225,9 @@ Invoke action removePassword .Description Invoke action removePassword .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPathsHv033BApplicationsApplicationIdMicrosoftGraphRemovepasswordPostRequestbodyContentApplicationJsonSchema @@ -4405,9 +4373,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Remove-AzADApplication -DisplayName $name +Remove-AzADApplication -DisplayName $name .Example -PS C:\> Get-AzADApplication -ObjectId $id | Remove-AzADApplication +Get-AzADApplication -ObjectId $id | Remove-AzADApplication .Outputs System.Boolean @@ -4534,13 +4502,9 @@ HTTP Methods: GET (supported for all groups), POST (supported for security group Nullable. Supports $expand. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs System.Boolean @@ -4662,9 +4626,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Remove-AzADGroup -DisplayName $name +Remove-AzADGroup -DisplayName $name .Example -PS C:\> Get-AzADGroup -ObjectId $id | Remove-AzADGroup +Get-AzADGroup -ObjectId $id | Remove-AzADGroup .Outputs System.Boolean @@ -4785,13 +4749,9 @@ Invoke action removeKey .Description Invoke action removeKey .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPaths1UhuhlbServiceprincipalsServiceprincipalIdMicrosoftGraphRemovekeyPostRequestbodyContentApplicationJsonSchema @@ -4942,13 +4902,9 @@ Invoke action removePassword .Description Invoke action removePassword .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPaths1Idoj4GServiceprincipalsServiceprincipalIdMicrosoftGraphRemovepasswordPostRequestbodyContentApplicationJsonSchema @@ -5094,9 +5050,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Remove-AzADServicePrincipal -DisplayName $name +Remove-AzADServicePrincipal -DisplayName $name .Example -PS C:\> Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal +Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal .Outputs System.Boolean @@ -5217,9 +5173,9 @@ Represents an Azure Active Directory user object. .Description Represents an Azure Active Directory user object. .Example -PS C:\> Remove-AzADUser -DisplayName $name +Remove-AzADUser -DisplayName $name .Example -PS C:\> Get-AzADUser -UserPrincipalName $id | Remove-AzADUser +Get-AzADUser -UserPrincipalName $id | Remove-AzADUser .Outputs System.Boolean @@ -5342,9 +5298,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Update-AzADApplication -DisplayName $name -HomePage $homepage +Update-AzADApplication -DisplayName $name -HomePage $homepage .Example -PS C:\> Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl +Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl .Outputs System.Boolean @@ -5848,13 +5804,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs System.Boolean @@ -6185,9 +6137,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri +Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri .Example -PS C:\> Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note +Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note .Outputs System.Boolean @@ -6753,7 +6705,7 @@ Represents an Azure Active Directory user object. .Description Represents an Azure Active Directory user object. .Example -PS C:\> Update-AzADUser -UPNOrObjectId $upn -City $city +Update-AzADUser -UPNOrObjectId $upn -City $city .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/internal/README.md b/src/Resources/MSGraph.Autorest/internal/README.md index 72458a706f37..47dedf690c10 100644 --- a/src/Resources/MSGraph.Autorest/internal/README.md +++ b/src/Resources/MSGraph.Autorest/internal/README.md @@ -1,5 +1,5 @@ # Internal -This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. +This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. ## Info - Modifiable: no @@ -11,4 +11,4 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that The `Az.MSGraph.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.MSGraph`. Instead, this sub-module is imported by the `..\custom\Az.MSGraph.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.MSGraph.internal\Get-Example` would call an internal cmdlet named `Get-Example`. ## Purpose -This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.MSGraph`. \ No newline at end of file +This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.MSGraph`. diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1 index a3fe5435a4ea..e14c54c20678 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1 @@ -22,9 +22,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Remove-AzADApplication -DisplayName $name +Remove-AzADApplication -DisplayName $name .Example -PS C:\> Get-AzADApplication -ObjectId $id | Remove-AzADApplication +Get-AzADApplication -ObjectId $id | Remove-AzADApplication .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplicationKey.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplicationKey.ps1 index 1d7294aed5c1..022ed662e2c3 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplicationKey.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplicationKey.ps1 @@ -20,13 +20,9 @@ Invoke action removeKey .Description Invoke action removeKey .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPathsHxlydaApplicationsApplicationIdMicrosoftGraphRemovekeyPostRequestbodyContentApplicationJsonSchema diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplicationPassword.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplicationPassword.ps1 index 402d789abc5a..0bd345d153be 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplicationPassword.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplicationPassword.ps1 @@ -20,13 +20,9 @@ Invoke action removePassword .Description Invoke action removePassword .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPathsHv033BApplicationsApplicationIdMicrosoftGraphRemovepasswordPostRequestbodyContentApplicationJsonSchema diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1 index 75e582941181..b10970904468 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1 @@ -22,9 +22,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Remove-AzADGroup -DisplayName $name +Remove-AzADGroup -DisplayName $name .Example -PS C:\> Get-AzADGroup -ObjectId $id | Remove-AzADGroup +Get-AzADGroup -ObjectId $id | Remove-AzADGroup .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroupRefMember.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroupRefMember.ps1 index 8370852b2bd3..9d17c354e1da 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroupRefMember.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroupRefMember.ps1 @@ -26,13 +26,9 @@ HTTP Methods: GET (supported for all groups), POST (supported for security group Nullable. Supports $expand. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1 index fa2c694c9d7d..38d2d049f692 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1 @@ -22,9 +22,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Remove-AzADServicePrincipal -DisplayName $name +Remove-AzADServicePrincipal -DisplayName $name .Example -PS C:\> Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal +Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipalKey.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipalKey.ps1 index 777c74bff298..2844167c8bc9 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipalKey.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipalKey.ps1 @@ -20,13 +20,9 @@ Invoke action removeKey .Description Invoke action removeKey .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPaths1UhuhlbServiceprincipalsServiceprincipalIdMicrosoftGraphRemovekeyPostRequestbodyContentApplicationJsonSchema diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipalPassword.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipalPassword.ps1 index bc6d88535f50..22e4f3348d5f 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipalPassword.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipalPassword.ps1 @@ -20,13 +20,9 @@ Invoke action removePassword .Description Invoke action removePassword .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IPaths1Idoj4GServiceprincipalsServiceprincipalIdMicrosoftGraphRemovepasswordPostRequestbodyContentApplicationJsonSchema diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1 index 98fbe7b550ec..d7ae1626c77d 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1 @@ -20,9 +20,9 @@ Represents an Azure Active Directory user object. .Description Represents an Azure Active Directory user object. .Example -PS C:\> Remove-AzADUser -DisplayName $name +Remove-AzADUser -DisplayName $name .Example -PS C:\> Get-AzADUser -UserPrincipalName $id | Remove-AzADUser +Get-AzADUser -UserPrincipalName $id | Remove-AzADUser .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1 index 8fb0a8c288b8..f77aeada8f98 100644 --- a/src/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1 @@ -22,9 +22,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Update-AzADApplication -DisplayName $name -HomePage $homepage +Update-AzADApplication -DisplayName $name -HomePage $homepage .Example -PS C:\> Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl +Get-AzADApplication -ObjectId $id | Update-AzADApplication -ReplyUrl $replyurl .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/internal/Update-AzADGroup.ps1 b/src/Resources/MSGraph.Autorest/internal/Update-AzADGroup.ps1 index 9a8940359e90..9aa978f5c997 100644 --- a/src/Resources/MSGraph.Autorest/internal/Update-AzADGroup.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Update-AzADGroup.ps1 @@ -22,13 +22,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1 index 5486334b7dbf..7e5076723ec2 100644 --- a/src/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1 @@ -22,9 +22,9 @@ The directoryObject type is the base type for many other directory entity types. Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. .Example -PS C:\> Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri +Update-AzADServicePrincipal -DisplayName $name -IdentifierUri $uri .Example -PS C:\> Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note +Get-AzADServicePrincipal -ObjectId $id | Update-AzADServicePrincipal -Note $note .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1 index 2f97e2f87953..4df9005b0836 100644 --- a/src/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1 @@ -20,7 +20,7 @@ Represents an Azure Active Directory user object. .Description Represents an Azure Active Directory user object. .Example -PS C:\> Update-AzADUser -UPNOrObjectId $upn -City $city +Update-AzADUser -UPNOrObjectId $upn -City $city .Outputs System.Boolean diff --git a/src/Resources/MSGraph.Autorest/test/New-AzADServicePrincipal.Tests.ps1 b/src/Resources/MSGraph.Autorest/test/New-AzADServicePrincipal.Tests.ps1 index ba30724d0cc5..bc96652a34c4 100644 --- a/src/Resources/MSGraph.Autorest/test/New-AzADServicePrincipal.Tests.ps1 +++ b/src/Resources/MSGraph.Autorest/test/New-AzADServicePrincipal.Tests.ps1 @@ -34,4 +34,8 @@ Describe 'New-AzADServicePrincipal' { It 'ApplicationObjectParameterSet' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + + It 'ApplicationIdParameterSet' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } } diff --git a/src/Resources/Resources/Az.Resources.psd1 b/src/Resources/Resources/Az.Resources.psd1 index ec3d807a9629..508485a2aef6 100644 --- a/src/Resources/Resources/Az.Resources.psd1 +++ b/src/Resources/Resources/Az.Resources.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2/24/2022 +# Generated on: 3/25/2022 # @{ @@ -66,7 +66,7 @@ RequiredAssemblies = 'Microsoft.Azure.Management.Authorization.dll', 'Microsoft.Extensions.Options.dll', 'Microsoft.Extensions.Primitives.dll', 'System.Runtime.CompilerServices.Unsafe.dll', 'AutoMapper.dll', - 'MSGraph.Autorest\bin\Az.MSGraph.private.dll', + 'MSGraph.Autorest\bin\Az.MSGraph.private.dll', 'Authorization.Autorest\bin\Az.Authorization.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. @@ -78,14 +78,14 @@ RequiredAssemblies = 'Microsoft.Azure.Management.Authorization.dll', # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'Resources.format.ps1xml', 'ResourceManager.format.ps1xml', 'ResourceManager.generated.format.ps1xml', 'Tags.format.ps1xml', - 'MSGraph.Autorest\Az.MSGraph.format.ps1xml', + 'MSGraph.Autorest\Az.MSGraph.format.ps1xml', 'Authorization.Autorest\Az.Authorization.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Resources.dll', 'Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.dll', 'Microsoft.Azure.PowerShell.Cmdlets.Tags.dll', - 'MSGraph.Autorest\Az.MSGraph.psm1', + 'MSGraph.Autorest\Az.MSGraph.psm1', 'Authorization.Autorest\Az.Authorization.psm1') # Functions 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 functions to export. @@ -100,15 +100,21 @@ FunctionsToExport = 'Add-AzADAppPermission', 'Add-AzADGroupMember', 'Remove-AzADGroupMember', 'Remove-AzADServicePrincipal', 'Remove-AzADSpCredential', 'Remove-AzADUser', 'Update-AzADApplication', 'Update-AzADServicePrincipal', - 'Update-AzADUser', - 'Get-AzRoleAssignmentSchedule', 'Get-AzRoleAssignmentScheduleInstance', - 'Get-AzRoleAssignmentScheduleRequest', 'Get-AzRoleEligibilitySchedule', - 'Get-AzRoleEligibilityScheduleInstance', 'Get-AzRoleEligibilityScheduleRequest', + 'Update-AzADUser', 'Get-AzRoleAssignmentSchedule', + 'Get-AzRoleAssignmentScheduleInstance', + 'Get-AzRoleAssignmentScheduleRequest', + 'Get-AzRoleEligibilitySchedule', + 'Get-AzRoleEligibilityScheduleInstance', + 'Get-AzRoleEligibilityScheduleRequest', 'Get-AzRoleEligibleChildResource', 'Get-AzRoleManagementPolicy', - 'Get-AzRoleManagementPolicyAssignment', 'New-AzRoleAssignmentScheduleRequest', - 'New-AzRoleEligibilityScheduleRequest', 'New-AzRoleManagementPolicyAssignment', - 'Remove-AzRoleManagementPolicy', 'Remove-AzRoleManagementPolicyAssignment', - 'Stop-AzRoleAssignmentScheduleRequest', 'Stop-AzRoleEligibilityScheduleRequest', + 'Get-AzRoleManagementPolicyAssignment', + 'New-AzRoleAssignmentScheduleRequest', + 'New-AzRoleEligibilityScheduleRequest', + 'New-AzRoleManagementPolicyAssignment', + 'Remove-AzRoleManagementPolicy', + 'Remove-AzRoleManagementPolicyAssignment', + 'Stop-AzRoleAssignmentScheduleRequest', + 'Stop-AzRoleEligibilityScheduleRequest', 'Update-AzRoleManagementPolicy' # 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. @@ -170,12 +176,11 @@ CmdletsToExport = 'Get-AzProviderOperation', 'Remove-AzRoleAssignment', 'Get-AzManagementGroupDeploymentWhatIfResult', 'Get-AzTenantDeploymentWhatIfResult', 'Get-AzTemplateSpec', 'New-AzTemplateSpec', 'Set-AzTemplateSpec', 'Export-AzTemplateSpec', - 'Remove-AzTemplateSpec', 'Publish-AzBicepModule', - 'Get-AzResourceManagementPrivateLink', - 'Remove-AzResourceManagementPrivateLink', - 'New-AzResourceManagementPrivateLink', - 'New-AzPrivateLinkAssociation', - 'Get-AzPrivateLinkAssociation', + 'Remove-AzTemplateSpec', 'Publish-AzBicepModule', + 'Get-AzResourceManagementPrivateLink', + 'Remove-AzResourceManagementPrivateLink', + 'New-AzResourceManagementPrivateLink', + 'New-AzPrivateLinkAssociation', 'Get-AzPrivateLinkAssociation', 'Remove-AzPrivateLinkAssociation' # Variables to export from this module @@ -209,7 +214,9 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Provider','ResourceGroup','Deployment','ActiveDirectory','Authorization','Management','ManagementGroups','Tags' + Tags = 'Azure', 'ResourceManager', 'ARM', 'Provider', 'ResourceGroup', + 'Deployment', 'ActiveDirectory', 'Authorization', 'Management', + 'ManagementGroups', 'Tags' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -239,7 +246,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Resources/Resources/ChangeLog.md b/src/Resources/Resources/ChangeLog.md index 176a27860282..400d7cffd759 100644 --- a/src/Resources/Resources/ChangeLog.md +++ b/src/Resources/Resources/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Removed `-ApplicationId` from `New-AzADServicePrincipal` `SimpleParameterSet` [#17256] * Added `New-AzResourceManagementPrivateLink`, and `New-AzPrivateLinkAssociation` cmdlets * Added authorization related cmdlets: - `Get-AzRoleAssignmentSchedule` diff --git a/src/Resources/Resources/help/Az.Resources.md b/src/Resources/Resources/help/Az.Resources.md index d6b3c3519e9e..2c8d0b47f2cf 100644 --- a/src/Resources/Resources/help/Az.Resources.md +++ b/src/Resources/Resources/help/Az.Resources.md @@ -110,6 +110,9 @@ Gets policy exemptions. ### [Get-AzPolicySetDefinition](Get-AzPolicySetDefinition.md) Gets policy set definitions. +### [Get-AzPrivateLinkAssociation](Get-AzPrivateLinkAssociation.md) +Gets all the Azure Resource Management Private Link Association(s). + ### [Get-AzProviderFeature](Get-AzProviderFeature.md) Gets information about Azure provider features. @@ -137,6 +140,9 @@ Gets a template What-If result for a deployment at resource group scope. ### [Get-AzResourceLock](Get-AzResourceLock.md) Gets a resource lock. +### [Get-AzResourceManagementPrivateLink](Get-AzResourceManagementPrivateLink.md) +Gets Azure Resource Management Private Link(s) + ### [Get-AzResourceProvider](Get-AzResourceProvider.md) Gets a resource provider. @@ -155,9 +161,36 @@ The cmdlet may call below Microsoft Graph API according to input parameters: Please notice that this cmdlet will mark `ObjectType` as `Unknown` in output if the object of role assignment is not found or current account has insufficient privileges to get object type. +### [Get-AzRoleAssignmentSchedule](Get-AzRoleAssignmentSchedule.md) +Get the specified role assignment schedule for a resource scope + +### [Get-AzRoleAssignmentScheduleInstance](Get-AzRoleAssignmentScheduleInstance.md) +Gets the specified role assignment schedule instance. + +### [Get-AzRoleAssignmentScheduleRequest](Get-AzRoleAssignmentScheduleRequest.md) +Get the specified role assignment schedule request. + ### [Get-AzRoleDefinition](Get-AzRoleDefinition.md) Lists all Azure RBAC roles that are available for assignment. +### [Get-AzRoleEligibilitySchedule](Get-AzRoleEligibilitySchedule.md) +Get the specified role eligibility schedule for a resource scope + +### [Get-AzRoleEligibilityScheduleInstance](Get-AzRoleEligibilityScheduleInstance.md) +Gets the specified role eligibility schedule instance. + +### [Get-AzRoleEligibilityScheduleRequest](Get-AzRoleEligibilityScheduleRequest.md) +Get the specified role eligibility schedule request. + +### [Get-AzRoleEligibleChildResource](Get-AzRoleEligibleChildResource.md) +Get the child resources of a resource on which user has eligible access + +### [Get-AzRoleManagementPolicy](Get-AzRoleManagementPolicy.md) +Get the specified role management policy for a resource scope + +### [Get-AzRoleManagementPolicyAssignment](Get-AzRoleManagementPolicyAssignment.md) +Get the specified role management policy assignment for a resource scope + ### [Get-AzTag](Get-AzTag.md) Gets predefined Azure tags | Gets the entire set of tags on a resource or subscription. @@ -227,6 +260,9 @@ Creates a policy exemption. ### [New-AzPolicySetDefinition](New-AzPolicySetDefinition.md) Creates a policy set definition. +### [New-AzPrivateLinkAssociation](New-AzPrivateLinkAssociation.md) +Creates the Azure Resource Management Private Link Association. + ### [New-AzResource](New-AzResource.md) Creates a resource. @@ -239,6 +275,9 @@ Adds an Azure deployment to a resource group. ### [New-AzResourceLock](New-AzResourceLock.md) Creates a resource lock. +### [New-AzResourceManagementPrivateLink](New-AzResourceManagementPrivateLink.md) +Create Azure Resource Management Private Link + ### [New-AzRoleAssignment](New-AzRoleAssignment.md) Assigns the specified RBAC role to the specified principal, at the specified scope. @@ -251,6 +290,9 @@ The cmdlet may call below Microsoft Graph API according to input parameters: Please notice that this cmdlet will mark `ObjectType` as `Unknown` in output if the object of role assignment is not found or current account has insufficient privileges to get object type. +### [New-AzRoleAssignmentScheduleRequest](New-AzRoleAssignmentScheduleRequest.md) +Creates a role assignment schedule request. + ### [New-AzRoleDefinition](New-AzRoleDefinition.md) Creates a custom role in Azure RBAC. Provide either a JSON role definition file or a PSRoleDefinition object as input. @@ -258,6 +300,12 @@ First, use the Get-AzRoleDefinition command to generate a baseline role definiti Then, modify its properties as required. Finally, use this command to create a custom role using role definition. +### [New-AzRoleEligibilityScheduleRequest](New-AzRoleEligibilityScheduleRequest.md) +Creates a role eligibility schedule request. + +### [New-AzRoleManagementPolicyAssignment](New-AzRoleManagementPolicyAssignment.md) +Create a role management policy assignment + ### [New-AzTag](New-AzTag.md) Creates a predefined Azure tag or adds values to an existing tag | Creates or updates the entire set of tags on a resource or subscription. @@ -340,6 +388,9 @@ Removes a policy exemption. ### [Remove-AzPolicySetDefinition](Remove-AzPolicySetDefinition.md) Removes a policy set definition. +### [Remove-AzPrivateLinkAssociation](Remove-AzPrivateLinkAssociation.md) +Delete a specific azure private link association. + ### [Remove-AzResource](Remove-AzResource.md) Removes a resource. @@ -352,6 +403,9 @@ Removes a resource group deployment and any associated operations. ### [Remove-AzResourceLock](Remove-AzResourceLock.md) Removes a resource lock. +### [Remove-AzResourceManagementPrivateLink](Remove-AzResourceManagementPrivateLink.md) +Deletes the Resource Manangement Private Link. + ### [Remove-AzRoleAssignment](Remove-AzRoleAssignment.md) Removes a role assignment to the specified principal who is assigned to a particular role at a particular scope. @@ -370,6 +424,12 @@ Deletes a custom role in Azure RBAC. The role to be deleted is specified using the Id property of the role. Delete will fail if there are existing role assignments made to the custom role. +### [Remove-AzRoleManagementPolicy](Remove-AzRoleManagementPolicy.md) +Delete a role management policy + +### [Remove-AzRoleManagementPolicyAssignment](Remove-AzRoleManagementPolicyAssignment.md) +Delete a role management policy assignment + ### [Remove-AzTag](Remove-AzTag.md) Deletes predefined Azure tags or values | Deletes the entire set of tags on a resource or subscription. @@ -453,6 +513,12 @@ Cancel a running deployment at a management group ### [Stop-AzResourceGroupDeployment](Stop-AzResourceGroupDeployment.md) Cancels a resource group deployment. +### [Stop-AzRoleAssignmentScheduleRequest](Stop-AzRoleAssignmentScheduleRequest.md) +Cancels a pending role assignment schedule request. + +### [Stop-AzRoleEligibilityScheduleRequest](Stop-AzRoleEligibilityScheduleRequest.md) +Cancels a pending role eligibility schedule request. + ### [Stop-AzTenantDeployment](Stop-AzTenantDeployment.md) Cancel a running deployment at tenant scope @@ -489,57 +555,9 @@ Updates entity in users ### [Update-AzManagementGroup](Update-AzManagementGroup.md) Updates a Management Group -### [Update-AzTag](Update-AzTag.md) -Selectively updates the set of tags on a resource or subscription. - -### [Get-AzRoleAssignmentSchedule](Get-AzRoleAssignmentSchedule.md) -Get the specified role assignment schedule for a resource scope - -### [Get-AzRoleAssignmentScheduleInstance](Get-AzRoleAssignmentScheduleInstance.md) -Gets the specified role assignment schedule instance. - -### [Get-AzRoleAssignmentScheduleRequest](Get-AzRoleAssignmentScheduleRequest.md) -Get the specified role assignment schedule request. - -### [Get-AzRoleEligibilitySchedule](Get-AzRoleEligibilitySchedule.md) -Get the specified role eligibility schedule for a resource scope - -### [Get-AzRoleEligibilityScheduleInstance](Get-AzRoleEligibilityScheduleInstance.md) -Gets the specified role eligibility schedule instance. - -### [Get-AzRoleEligibilityScheduleRequest](Get-AzRoleEligibilityScheduleRequest.md) -Get the specified role eligibility schedule request. - -### [Get-AzRoleEligibleChildResource](Get-AzRoleEligibleChildResource.md) -Get the child resources of a resource on which user has eligible access - -### [Get-AzRoleManagementPolicy](Get-AzRoleManagementPolicy.md) -Get the specified role management policy for a resource scope - -### [Get-AzRoleManagementPolicyAssignment](Get-AzRoleManagementPolicyAssignment.md) -Get the specified role management policy assignment for a resource scope - -### [New-AzRoleAssignmentScheduleRequest](New-AzRoleAssignmentScheduleRequest.md) -Creates a role assignment schedule request. - -### [New-AzRoleEligibilityScheduleRequest](New-AzRoleEligibilityScheduleRequest.md) -Creates a role eligibility schedule request. - -### [New-AzRoleManagementPolicyAssignment](New-AzRoleManagementPolicyAssignment.md) -Create a role management policy assignment - -### [Remove-AzRoleManagementPolicy](Remove-AzRoleManagementPolicy.md) -Delete a role management policy - -### [Remove-AzRoleManagementPolicyAssignment](Remove-AzRoleManagementPolicyAssignment.md) -Delete a role management policy assignment - -### [Stop-AzRoleAssignmentScheduleRequest](Stop-AzRoleAssignmentScheduleRequest.md) -Cancels a pending role assignment schedule request. - -### [Stop-AzRoleEligibilityScheduleRequest](Stop-AzRoleEligibilityScheduleRequest.md) -Cancels a pending role eligibility schedule request. - ### [Update-AzRoleManagementPolicy](Update-AzRoleManagementPolicy.md) Update a role management policy +### [Update-AzTag](Update-AzTag.md) +Selectively updates the set of tags on a resource or subscription. + diff --git a/src/Resources/Resources/help/Get-AzADAppPermission.md b/src/Resources/Resources/help/Get-AzADAppPermission.md index 94b9c96bee62..f1a7de40423f 100644 --- a/src/Resources/Resources/help/Get-AzADAppPermission.md +++ b/src/Resources/Resources/help/Get-AzADAppPermission.md @@ -31,6 +31,7 @@ Lists API permissions the application has requested. ```powershell Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427 ``` + ```output ApiId Id Type ----- -- ---- diff --git a/src/Resources/Resources/help/Get-AzADGroup.md b/src/Resources/Resources/help/Get-AzADGroup.md index 8fb55df43fe0..ddd71c86c569 100644 --- a/src/Resources/Resources/help/Get-AzADGroup.md +++ b/src/Resources/Resources/help/Get-AzADGroup.md @@ -64,13 +64,6 @@ Get-AzADGroup -ObjectId $id -Select groupTypes -AppendSelected Get group by object id and append property 'groupTypes' after default properties: 'DisplayName', 'Id', 'DeletedDateTime', 'SecurityEnabled', 'MailEnabled', 'MailNickname', 'Description' -### Example 4: Get group by search -```powershell -Get-AzADGroup -Search "displayName:trainees" -ConsistencyLevel eventual -``` - -Search for groups with the word trainees in the displayName. Filter does not support contains, use Search like this instead. Setting ConsistencyLevel to eventual is required to make Search work. - ## PARAMETERS ### -AppendSelected diff --git a/src/Resources/Resources/help/Get-AzADUser.md b/src/Resources/Resources/help/Get-AzADUser.md index f1d3aa321d83..1d7400c22728 100644 --- a/src/Resources/Resources/help/Get-AzADUser.md +++ b/src/Resources/Resources/help/Get-AzADUser.md @@ -81,13 +81,6 @@ Get-AzADUser -DisplayName $name Get user by display name -### Example 4: Get user by search -```powershell -Get-AzADUser -Search "jobTitle:trainee" -ConsistencyLevel eventual -``` - -Search for users with the word trainees in the jobTitle. Filter does not support contains, use Search like this instead. Setting ConsistencyLevel to eventual is required to make Search work. - ## PARAMETERS ### -AppendSelected diff --git a/src/Resources/Resources/help/Get-AzDenyAssignment.md b/src/Resources/Resources/help/Get-AzDenyAssignment.md index 7780f1e4bd5c..38e97bcba171 100644 --- a/src/Resources/Resources/help/Get-AzDenyAssignment.md +++ b/src/Resources/Resources/help/Get-AzDenyAssignment.md @@ -159,6 +159,7 @@ List all deny assignments in the subscription ```powershell Get-AzDenyAssignment ``` + ```output Id : /subscriptions/4004a9fd-d58e-48dc-aeb2-4a4aec58606f/providers/Microsoft.Authorization/denyAssignments/22704996-fbd0-4ab1-8625-722d897825d2 DenyAssignmentName : Test deny assignment 1 @@ -210,6 +211,7 @@ Gets all deny assignments made to user john.doe@contoso.com at the scope testRG ```powershell Get-AzDenyAssignment -ResourceGroupName testRG -SignInName john.doe@contoso.com ``` + ```output Id : /subscriptions/4004a9fd-d58e-48dc-aeb2-4a4aec58606f/providers/Microsoft.Authorization/denyAssignments/22704996-fbd0-4ab1-8625-722d897825d2 DenyAssignmentName : Test deny assignment 1 @@ -257,6 +259,7 @@ Gets all deny assignments of the specified service principal ```powershell Get-AzDenyAssignment -ServicePrincipalName 'http://testapp1.com' ``` + ```output Id : /subscriptions/4004a9fd-d58e-48dc-aeb2-4a4aec58606f/resourcegroups/testRG/providers/Microsoft.Authorization/denyAssignments/43af7d0c-0bf8-407f-96c0-96a29d076431 DenyAssignmentName : Test deny assignment 1 @@ -304,6 +307,7 @@ Gets deny assignments at the 'site1' website scope. ```powershell Get-AzDenyAssignment -Scope '/subscriptions/96231a05-34ce-4eb4-aa6a-70759cbb5e83/resourcegroups/testRG/providers/Microsoft.Web/sites/site1' ``` + ```output Id : /subscriptions/4004a9fd-d58e-48dc-aeb2-4a4aec58606f/resourcegroups/testRG/providers/Microsoft.Authorization/denyAssignments/43af7d0c-0bf8-407f-96c0-96a29d076431 DenyAssignmentName : Test deny assignment 1 diff --git a/src/Resources/Resources/help/Get-AzLocation.md b/src/Resources/Resources/help/Get-AzLocation.md index 95e11db031f6..9060f3079d3e 100644 --- a/src/Resources/Resources/help/Get-AzLocation.md +++ b/src/Resources/Resources/help/Get-AzLocation.md @@ -33,6 +33,7 @@ This command gets all locations and the supported resource providers for each lo ```powershell Get-AzLocation | Where-Object {$_.Providers -contains "Microsoft.AppConfiguration"} ``` + ```output Location : eastasia DisplayName : East Asia diff --git a/src/Resources/Resources/help/Get-AzManagementGroup.md b/src/Resources/Resources/help/Get-AzManagementGroup.md index a0b8580a4d2f..15fff8224fa8 100644 --- a/src/Resources/Resources/help/Get-AzManagementGroup.md +++ b/src/Resources/Resources/help/Get-AzManagementGroup.md @@ -32,6 +32,7 @@ The Get-AzManagementGroup cmdlet Gets all or a specific Management Group. ```powershell Get-AzManagementGroup ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups @@ -50,6 +51,7 @@ DisplayName : TestGroupChildDisplayName ```powershell Get-AzManagementGroup -GroupName TestGroup ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups diff --git a/src/Resources/Resources/help/Get-AzPolicyAlias.md b/src/Resources/Resources/help/Get-AzPolicyAlias.md index 06185b827bfe..1b6d1301140f 100644 --- a/src/Resources/Resources/help/Get-AzPolicyAlias.md +++ b/src/Resources/Resources/help/Get-AzPolicyAlias.md @@ -32,6 +32,7 @@ A given match value matches if the target string contains it using case insensit ```powershell Get-AzPolicyAlias ``` + ```output Namespace ResourceType Aliases --------- ------------ ------- @@ -44,8 +45,6 @@ Microsoft.Authorization roleDefinitions {Mi Microsoft.Web hostingEnvironments {Microsoft.Web/hostingEnvironments/clusterSettings[*].name, Microsoft.W... Microsoft.Web sites/config {Microsoft.Web/sites/config/httpLoggingEnabled, Microsoft.Web/sites/con... Microsoft.GuestConfiguration guestConfigurationAssignments {Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceS... - - ``` Lists all provider resource types that have an alias. @@ -54,6 +53,7 @@ Lists all provider resource types that have an alias. ```powershell Get-AzPolicyAlias -ListAvailable ``` + ```output Namespace ResourceType Aliases --------- ------------ ------- @@ -65,7 +65,6 @@ Microsoft.AnalysisServices servers Microsoft.AnalysisServices locations {} ... ... ... - ``` Lists all provider resource types, including those without aliases. @@ -74,6 +73,7 @@ Lists all provider resource types, including those without aliases. ```powershell Get-AzPolicyAlias -NamespaceMatch 'compute' ``` + ```output Namespace ResourceType Aliases --------- ------------ ------- @@ -82,8 +82,6 @@ Microsoft.Compute virtualMachines/extensions {Microsoft.Compute/virtualM Microsoft.Compute virtualMachineScaleSets {Microsoft.Compute/VirtualMachineScaleSets/sku.name, Microsoft.Compute/VirtualMachineScaleSets/... Microsoft.Compute virtualMachineScaleSets/extensions {Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState, Microsoft.Compute/virt... Microsoft.Compute disks {Microsoft.Compute/imagePublisher, Microsoft.Compute/imageOffer, Microsoft.Compute/imageSku, Mi... - - ``` Lists all provider resource types whose namespace matches 'compute' and contain an alias. @@ -92,6 +90,7 @@ Lists all provider resource types whose namespace matches 'compute' and contain ```powershell Get-AzPolicyAlias -ResourceTypeMatch 'virtual' ``` + ```output Namespace ResourceType Aliases --------- ------------ ------- @@ -104,8 +103,6 @@ Microsoft.Network virtualNetworkGateways {Microsoft.Network/virt Microsoft.Network virtualNetworks/subnets {Microsoft.Network/virtualNetworks/subnets/routeTable.id, Microsoft.Network/virtualNetworks... Microsoft.Network virtualNetworks/virtualNetworkPeerings {Microsoft.Network/virtualNetworks/virtualNetworkPeerings/remoteVirtualNetwork.id} Microsoft.Sql servers/virtualNetworkRules {Microsoft.Sql/servers/virtualNetworkRules/virtualNetworkSubnetId, Microsoft.Sql/servers/vi... - - ``` Lists all provider resource types whose resource type matches 'virtual' and contain an alias. @@ -114,6 +111,7 @@ Lists all provider resource types whose resource type matches 'virtual' and cont ```powershell Get-AzPolicyAlias -ResourceTypeMatch 'virtual' -ListAvailable ``` + ```output Namespace ResourceType Aliases --------- ------------ ------- @@ -126,8 +124,6 @@ Microsoft.Network virtualNetworkGateways Microsoft.Network locations/virtualNetworkAvailableEndpointServices {} ... ... ... - - ``` Lists all provider resource types whose resource type matches 'virtual', including those without aliases. @@ -136,6 +132,7 @@ Lists all provider resource types whose resource type matches 'virtual', includi ```powershell Get-AzPolicyAlias -NamespaceMatch 'compute' -ResourceTypeMatch 'virtual' ``` + ```output Namespace ResourceType Aliases --------- ------------ ------- @@ -143,8 +140,6 @@ Microsoft.Compute virtualMachines {Microsoft.Compute/licenseT Microsoft.Compute virtualMachines/extensions {Microsoft.Compute/virtualMachines/extensions/provisioningState, Microsoft.Compute/virtualMachi... Microsoft.Compute virtualMachineScaleSets {Microsoft.Compute/VirtualMachineScaleSets/sku.name, Microsoft.Compute/VirtualMachineScaleSets/... Microsoft.Compute virtualMachineScaleSets/extensions {Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState, Microsoft.Compute/virt... - - ``` Lists all provider resource types whose namespace matches 'compute' and resource type matches 'virtual' and contain an alias. @@ -154,6 +149,7 @@ Note: -NamespaceMatch and -ResourceTypeMatch provide exclusive matches, whereas ```powershell Get-AzPolicyAlias -AliasMatch 'virtual' ``` + ```output Namespace ResourceType Aliases --------- ------------ ------- @@ -170,8 +166,6 @@ Microsoft.Network virtualNetworks/subnets {Microsoft.Network/v Microsoft.Network virtualNetworks/virtualNetworkPeerings {Microsoft.Network/virtualNetworks/virtualNetworkPeerings/remoteVirtualNetwork.id} Microsoft.Sql servers/virtualNetworkRules {Microsoft.Sql/servers/virtualNetworkRules/virtualNetworkSubnetId, Microsoft.Sql/servers... Microsoft.Storage storageAccounts {Microsoft.Storage/storageAccounts/accountType, Microsoft.Storage/storageAccounts/sku.na... - - ``` Lists all provider resource types that contain an alias matching 'virtual'. @@ -180,6 +174,7 @@ Lists all provider resource types that contain an alias matching 'virtual'. ```powershell Get-AzPolicyAlias -AliasMatch 'virtual' -PathMatch 'network' ``` + ```output Namespace ResourceType Aliases --------- ------------ ------- @@ -198,8 +193,6 @@ Microsoft.Network virtualNetworks/subnets {Microsoft.Network/v Microsoft.Network virtualNetworks/virtualNetworkPeerings {Microsoft.Network/virtualNetworks/virtualNetworkPeerings/remoteVirtualNetwork.id} Microsoft.Sql servers/virtualNetworkRules {Microsoft.Sql/servers/virtualNetworkRules/virtualNetworkSubnetId, Microsoft.Sql/servers... Microsoft.Storage storageAccounts {Microsoft.Storage/storageAccounts/accountType, Microsoft.Storage/storageAccounts/sku.na... - - ``` Lists all provider resource types that contain an alias matching 'virtual' or an alias with a path matching 'network'. @@ -208,6 +201,7 @@ Lists all provider resource types that contain an alias matching 'virtual' or an ```powershell Get-AzPolicyAlias -ApiVersionMatch 'alpha' ``` + ```output Namespace ResourceType Aliases --------- ------------ ------- @@ -216,8 +210,6 @@ Microsoft.Cache Redis/firewallrules {Microsoft.Cache/Redis/firewallrules/star Microsoft.Security alerts {Microsoft.Security/alerts/state} Microsoft.Security pricings {Microsoft.Security/pricings/pricingTier} Microsoft.Security complianceResults {Microsoft.Security/complianceResults/resourceStatus} - - ``` Lists all provider resource types with alpha api version or containing an alias with an alpha api version. diff --git a/src/Resources/Resources/help/Get-AzPrivateLinkAssociation.md b/src/Resources/Resources/help/Get-AzPrivateLinkAssociation.md index 18c51516c3b4..d8ee35124681 100644 --- a/src/Resources/Resources/help/Get-AzPrivateLinkAssociation.md +++ b/src/Resources/Resources/help/Get-AzPrivateLinkAssociation.md @@ -13,8 +13,8 @@ Gets all the Azure Resource Management Private Link Association(s). ## SYNTAX ``` -Get-AzPrivateLinkAssociation [-ManagementGroupId] [-Name] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Get-AzPrivateLinkAssociation [-ManagementGroupId] [[-Name] ] + [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -114,37 +114,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Resources/Resources/help/Get-AzResource.md b/src/Resources/Resources/help/Get-AzResource.md index a8e3f76121c5..4c383d00afba 100644 --- a/src/Resources/Resources/help/Get-AzResource.md +++ b/src/Resources/Resources/help/Get-AzResource.md @@ -45,6 +45,7 @@ The **Get-AzResource** cmdlet gets Azure resources. ```powershell Get-AzResource | ft ``` + ```output Name ResourceGroupName ResourceType Location ---- ----------------- ------------ -------- @@ -66,6 +67,7 @@ This command gets all of the resources in the current subscription. ```powershell Get-AzResource -ResourceGroupName testRG | ft ``` + ```output Name ResourceGroupName ResourceType Location ---- ----------------- ------------ -------- @@ -84,6 +86,7 @@ This command gets all of the resources in the resource group "testRG". ```powershell Get-AzResource -ResourceGroupName other* | ft ``` + ```output Name ResourceGroupName ResourceType Location ---- ----------------- ------------ -------- @@ -99,6 +102,7 @@ This command gets all of the resources whose resource group they belong in being ```powershell Get-AzResource -Name testVM | fl ``` + ```output Name : testVM ResourceGroupName : testRG @@ -120,6 +124,7 @@ This command gets all of the resources whose resource name is "testVM". ```powershell Get-AzResource -Name test* | ft ``` + ```output Name ResourceGroupName ResourceType Location ---- ----------------- ------------ -------- @@ -135,6 +140,7 @@ This command gets all of the resources whose resource name begins with "test". ```powershell Get-AzResource -ResourceType Microsoft.Compute/virtualMachines | ft ``` + ```output Name ResourceGroupName ResourceType Location ---- ----------------- ------------ -------- @@ -149,6 +155,7 @@ This command gets all of the resources in the current subscriptions that are vir ```powershell Get-AzResource -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testVM ``` + ```output Name : testVM ResourceGroupName : testRG diff --git a/src/Resources/Resources/help/Get-AzResourceManagementPrivateLink.md b/src/Resources/Resources/help/Get-AzResourceManagementPrivateLink.md index 338ef4f90a5e..6754645794b7 100644 --- a/src/Resources/Resources/help/Get-AzResourceManagementPrivateLink.md +++ b/src/Resources/Resources/help/Get-AzResourceManagementPrivateLink.md @@ -13,14 +13,13 @@ Gets Azure Resource Management Private Link(s) ## SYNTAX ``` -Get-AzResourceManagementPrivateLink [-ResourceGroupName] [-Name] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Get-AzResourceManagementPrivateLink [[-ResourceGroupName] ] [[-Name] ] + [-DefaultProfile ] [] ``` ## DESCRIPTION The Get-AzResourceManagementPrivateLink cmdlet gets a specific resource management private link. - ## EXAMPLES ### Example 1 @@ -129,37 +128,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Resources/Resources/help/Get-AzResourceProvider.md b/src/Resources/Resources/help/Get-AzResourceProvider.md index 0eb82ec29a03..e3b0b894ecd9 100644 --- a/src/Resources/Resources/help/Get-AzResourceProvider.md +++ b/src/Resources/Resources/help/Get-AzResourceProvider.md @@ -35,6 +35,7 @@ The **Get-AzResourceProvider** cmdlet gets an Azure resource provider. ```powershell Get-AzResourceProvider ``` + ```output ProviderNamespace : Microsoft.AppConfiguration RegistrationState : Registered @@ -100,6 +101,7 @@ This command gets all the resource providers from the subscription. ```powershell Get-AzResourceProvider -ProviderNamespace Microsoft.Compute ``` + ```output ProviderNamespace : Microsoft.Compute RegistrationState : Registered @@ -145,6 +147,7 @@ This command Gets all the resource providers under "Microsoft.Compute". ```powershell Get-AzResourceProvider -ProviderNamespace Microsoft.Compute,Microsoft.Network ``` + ```output ProviderNamespace : Microsoft.Compute RegistrationState : Registered diff --git a/src/Resources/Resources/help/Get-AzRoleAssignmentSchedule.md b/src/Resources/Resources/help/Get-AzRoleAssignmentSchedule.md index 9ab994eca505..41e1cd35063b 100644 --- a/src/Resources/Resources/help/Get-AzRoleAssignmentSchedule.md +++ b/src/Resources/Resources/help/Get-AzRoleAssignmentSchedule.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/get-azroleassignmentschedule schema: 2.0.0 @@ -60,7 +60,7 @@ Name Type 4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorizatio… a1f32976-b8f4-4606-a91d-af097a2473a2 Microsoft.Authorization/roleAssignmentSchedules /providers/Microsoft.Management/managementGroups/MG-3 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… 4f9bdc29-3bb9-4ad7-9c1d-3f3f5ba3e1d9 Microsoft.Authorization/roleAssignmentSchedules /providers/Microsoft.Management/managementGroups/MG-2 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… -529e4bba-621c-4309-a4b2-73e3364d4dd3 Microsoft.Authorization/roleAssignmentSchedules /providers/Microsoft.Management/managementGroups/MG-1 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… +529e4bba-621c-4309-a4b2-73e3364d4dd3 Microsoft.Authorization/roleAssignmentSchedules /providers/Microsoft.Management/managementGroups/MG-1 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… ``` Returns all `roleAssignmentSchedules` for the `scope` which are assigned to the calling user. @@ -76,7 +76,7 @@ Name Type 314aa57e-064d-46c3-964e-a0d20989c1a2 Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… 496794ce-4465-4621-83aa-0b73b3c6fe17 Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… 6461530a-4d10-400e-9eb0-ff7cb73c4ffd Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… -d8daef6c-75da-42eb-9291-7cbc466d5b4b Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… +d8daef6c-75da-42eb-9291-7cbc466d5b4b Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… ``` Supported filters: @@ -103,7 +103,7 @@ PS C:\> Get-AzRoleAssignmentSchedule -Scope $scope -Name "4cd7e26b-8eca-425c-969 Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/… +4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/… ``` Use the `Id` property to get `scope` and `name` @@ -180,7 +180,7 @@ The scope of the role assignment schedule. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -223,4 +223,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleInstance.md b/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleInstance.md index 28d31546b008..816ecc5fc892 100644 --- a/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleInstance.md +++ b/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleInstance.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/get-azroleassignmentscheduleinstance schema: 2.0.0 @@ -61,7 +61,7 @@ Name Type 4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorizatio… a1f32976-b8f4-4606-a91d-af097a2473a2 Microsoft.Authorization/roleAssignmentScheduleInstances /providers/Microsoft.Management/managementGroups/MG-3 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… 4f9bdc29-3bb9-4ad7-9c1d-3f3f5ba3e1d9 Microsoft.Authorization/roleAssignmentScheduleInstances /providers/Microsoft.Management/managementGroups/MG-2 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… -529e4bba-621c-4309-a4b2-73e3364d4dd3 Microsoft.Authorization/roleAssignmentScheduleInstances /providers/Microsoft.Management/managementGroups/MG-1 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… +529e4bba-621c-4309-a4b2-73e3364d4dd3 Microsoft.Authorization/roleAssignmentScheduleInstances /providers/Microsoft.Management/managementGroups/MG-1 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… ``` Returns all `roleAssignmentScheduleInstances` for the `scope` which are assigned to the calling user. @@ -77,7 +77,7 @@ Name Type 314aa57e-064d-46c3-964e-a0d20989c1a2 Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… 496794ce-4465-4621-83aa-0b73b3c6fe17 Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… 6461530a-4d10-400e-9eb0-ff7cb73c4ffd Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… -d8daef6c-75da-42eb-9291-7cbc466d5b4b Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… +d8daef6c-75da-42eb-9291-7cbc466d5b4b Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… ``` Supported filters: @@ -104,7 +104,7 @@ PS C:\> Get-AzRoleAssignmentScheduleInstance -Scope $scope -Name "4cd7e26b-8eca- Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/… +4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/… ``` Use the `Id` property to get `scope` and `name` @@ -181,7 +181,7 @@ The scope of the role assignments schedules. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -224,4 +224,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleRequest.md b/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleRequest.md index d41eeb698d2c..93cf034bbc89 100644 --- a/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleRequest.md +++ b/src/Resources/Resources/help/Get-AzRoleAssignmentScheduleRequest.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/get-azroleassignmentschedulerequest schema: 2.0.0 @@ -60,7 +60,6 @@ Name Type 2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… 31910719-4f82-443c-9e7a-6bfe4b918e0c Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… 4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… - ``` Returns all `roleAssignmentScheduleRequests` for the `scope` which are assigned to the calling user. @@ -75,7 +74,6 @@ Name Type 2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… 31910719-4f82-443c-9e7a-6bfe4b918e0c Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… 4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… - ``` Returns all `roleAssignmentScheduleRequests` for the `scope` on which the calling user is an approver. @@ -87,7 +85,7 @@ PS C:\> Get-AzRoleAssignmentScheduleRequest -Scope $scope -Name "2cc018c2-27f8-4 Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authoriz… +2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authoriz… ``` Use the `Id` property to get `scope` and `name` @@ -165,7 +163,7 @@ The scope of the role assignment schedule request. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -208,4 +206,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Get-AzRoleEligibilitySchedule.md b/src/Resources/Resources/help/Get-AzRoleEligibilitySchedule.md index 41c010d8445c..373b4f658ceb 100644 --- a/src/Resources/Resources/help/Get-AzRoleEligibilitySchedule.md +++ b/src/Resources/Resources/help/Get-AzRoleEligibilitySchedule.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/get-azroleeligibilityschedule schema: 2.0.0 @@ -60,7 +60,7 @@ Name Type 4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorizatio… a1f32976-b8f4-4606-a91d-af097a2473a2 Microsoft.Authorization/roleEligibilitySchedules /providers/Microsoft.Management/managementGroups/MG-3 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… 4f9bdc29-3bb9-4ad7-9c1d-3f3f5ba3e1d9 Microsoft.Authorization/roleEligibilitySchedules /providers/Microsoft.Management/managementGroups/MG-2 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… -529e4bba-621c-4309-a4b2-73e3364d4dd3 Microsoft.Authorization/roleEligibilitySchedules /providers/Microsoft.Management/managementGroups/MG-1 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… +529e4bba-621c-4309-a4b2-73e3364d4dd3 Microsoft.Authorization/roleEligibilitySchedules /providers/Microsoft.Management/managementGroups/MG-1 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… ``` Returns all `roleEligibilitySchedules` for the `scope` which are assigned to the calling user. @@ -76,7 +76,7 @@ Name Type 314aa57e-064d-46c3-964e-a0d20989c1a2 Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… 496794ce-4465-4621-83aa-0b73b3c6fe17 Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… 6461530a-4d10-400e-9eb0-ff7cb73c4ffd Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… -d8daef6c-75da-42eb-9291-7cbc466d5b4b Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… +d8daef6c-75da-42eb-9291-7cbc466d5b4b Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… ``` Supported filters: @@ -103,11 +103,9 @@ Get-AzRoleEligibilitySchedule -Scope $scope -Name "4cd7e26b-8eca-425c-969d-ec708 Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/… +4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/… ``` - - ## PARAMETERS ### -DefaultProfile @@ -180,7 +178,7 @@ The scope of the role eligibility schedule. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -223,4 +221,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleInstance.md b/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleInstance.md index 9a4cefcd5bcb..cfe59dbf393f 100644 --- a/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleInstance.md +++ b/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleInstance.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/get-azroleeligibilityscheduleinstance schema: 2.0.0 @@ -61,7 +61,7 @@ Name Type 4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilityScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorizatio… a1f32976-b8f4-4606-a91d-af097a2473a2 Microsoft.Authorization/roleEligibilityScheduleInstances /providers/Microsoft.Management/managementGroups/MG-3 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… 4f9bdc29-3bb9-4ad7-9c1d-3f3f5ba3e1d9 Microsoft.Authorization/roleEligibilityScheduleInstances /providers/Microsoft.Management/managementGroups/MG-2 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… -529e4bba-621c-4309-a4b2-73e3364d4dd3 Microsoft.Authorization/roleEligibilityScheduleInstances /providers/Microsoft.Management/managementGroups/MG-1 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… +529e4bba-621c-4309-a4b2-73e3364d4dd3 Microsoft.Authorization/roleEligibilityScheduleInstances /providers/Microsoft.Management/managementGroups/MG-1 /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb… ``` Returns all `roleEligibilityScheduleInstances` for the `scope` which are assigned to the calling user. @@ -77,7 +77,7 @@ Name Type 314aa57e-064d-46c3-964e-a0d20989c1a2 Microsoft.Authorization/roleEligibilityScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… 496794ce-4465-4621-83aa-0b73b3c6fe17 Microsoft.Authorization/roleEligibilityScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… 6461530a-4d10-400e-9eb0-ff7cb73c4ffd Microsoft.Authorization/roleEligibilityScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… -d8daef6c-75da-42eb-9291-7cbc466d5b4b Microsoft.Authorization/roleEligibilityScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… +d8daef6c-75da-42eb-9291-7cbc466d5b4b Microsoft.Authorization/roleEligibilityScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/… ``` Supported filters: @@ -104,7 +104,7 @@ Get-AzRoleEligibilityScheduleInstance -Scope $scope -Name "4cd7e26b-8eca-425c-96 Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilityScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/… +4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilityScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/… ``` Use the `Id` property to get `scope` and `name` @@ -181,7 +181,7 @@ The scope of the role eligibility schedules. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -224,4 +224,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleRequest.md b/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleRequest.md index 88fdf3e3afa4..a6815fd3e5cd 100644 --- a/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleRequest.md +++ b/src/Resources/Resources/help/Get-AzRoleEligibilityScheduleRequest.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/get-azroleeligibilityschedulerequest schema: 2.0.0 @@ -60,7 +60,6 @@ Name Type 2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… 31910719-4f82-443c-9e7a-6bfe4b918e0c Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… 4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… - ``` Returns all `roleEligibilityScheduleRequests` for the `scope` which are assigned to the calling user. @@ -75,7 +74,6 @@ Name Type 2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… 31910719-4f82-443c-9e7a-6bfe4b918e0c Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… 4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov… - ``` Returns all `roleEligibilitySchedules` for the `scope` on which the calling user is an approver. @@ -87,7 +85,7 @@ PS C:\> Get-AzRoleEligibilityScheduleRequest -Scope $scope -Name "2cc018c2-27f8- Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authoriz… +2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authoriz… ``` Use the `Id` property to get `scope` and `name` @@ -165,7 +163,7 @@ The scope of the role eligibility schedule request. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -208,4 +206,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Get-AzRoleEligibleChildResource.md b/src/Resources/Resources/help/Get-AzRoleEligibleChildResource.md index e98b0dc0eb98..8e564330dff0 100644 --- a/src/Resources/Resources/help/Get-AzRoleEligibleChildResource.md +++ b/src/Resources/Resources/help/Get-AzRoleEligibleChildResource.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/get-azroleeligiblechildresource schema: 2.0.0 @@ -158,4 +158,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Get-AzRoleManagementPolicy.md b/src/Resources/Resources/help/Get-AzRoleManagementPolicy.md index 630a1819670c..199f8018bd22 100644 --- a/src/Resources/Resources/help/Get-AzRoleManagementPolicy.md +++ b/src/Resources/Resources/help/Get-AzRoleManagementPolicy.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/get-azrolemanagementpolicy schema: 2.0.0 @@ -113,7 +113,7 @@ The scope of the role management policy. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -156,4 +156,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Get-AzRoleManagementPolicyAssignment.md b/src/Resources/Resources/help/Get-AzRoleManagementPolicyAssignment.md index 1710749900d5..a5d92e0f45e9 100644 --- a/src/Resources/Resources/help/Get-AzRoleManagementPolicyAssignment.md +++ b/src/Resources/Resources/help/Get-AzRoleManagementPolicyAssignment.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/get-azrolemanagementpolicyassignment schema: 2.0.0 @@ -44,7 +44,7 @@ Name Type 588b80cc-f50c-4616-acc9-0003872624db_00493d72-78f6-4148-b6c5-d3ce8e4799dd Microsoft.Authorization/roleManagementPolicyAssignment /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f… 8dbbf139-4d46-4ad4-a56b-004156c117d2_056cd41c-7e88-42e1-933e-88ba6a50c9c3 Microsoft.Authorization/roleManagementPolicyAssignment /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f… 1c8bc687-402c-4e62-b38b-009d6fc244d3_b97fb8bc-a8b2-4522-a38b-dd33c7e65ead Microsoft.Authorization/roleManagementPolicyAssignment /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f… -5d582357-e60a-4322-a299-00ab23713a07_70bbe301-9835-447d-afdd-19eb3167307c Microsoft.Authorization/roleManagementPolicyAssignment /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f… +5d582357-e60a-4322-a299-00ab23713a07_70bbe301-9835-447d-afdd-19eb3167307c Microsoft.Authorization/roleManagementPolicyAssignment /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f… ``` Returns all `roleManagementPolicyAssignment` for the `scope` @@ -115,7 +115,7 @@ The scope of the role management policy. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -158,4 +158,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Get-AzTag.md b/src/Resources/Resources/help/Get-AzTag.md index 1aee9c10b416..45f46dad55cd 100644 --- a/src/Resources/Resources/help/Get-AzTag.md +++ b/src/Resources/Resources/help/Get-AzTag.md @@ -43,6 +43,7 @@ To search resource groups for a specific tag name or name and value, use the *Ta ```powershell Get-AzTag ``` + ```output Name Count ======== ===== @@ -59,6 +60,7 @@ The Count property shows how many times the tag has been applied to resources an ```powershell Get-AzTag -Name "Department" ``` + ```output Name: Department Count: 5 @@ -78,6 +80,7 @@ The Count property shows how many times the tag and each of its values has been ```powershell Get-AzTag -Detailed ``` + ```output Name: Department Count: 5 @@ -114,6 +117,7 @@ Using the *Detailed* parameter is the equivalent of using the *Name* parameter f ```powershell Get-AzTag -ResourceId /subscriptions/{subId} ``` + ```output Id : {Id} Name : {Name} @@ -132,6 +136,7 @@ This command gets the entire set of tags on the subscription with {subId}. ```powershell Get-AzTag -ResourceId /subscriptions/{subId}/resourcegroups/{rg}/providers/Microsoft.Sql/servers/Server1 ``` + ```output Id : {Id} Name : {Name} diff --git a/src/Resources/Resources/help/Invoke-AzResourceAction.md b/src/Resources/Resources/help/Invoke-AzResourceAction.md index 97834f2b0bfe..9b4ab8d0c012 100644 --- a/src/Resources/Resources/help/Invoke-AzResourceAction.md +++ b/src/Resources/Resources/help/Invoke-AzResourceAction.md @@ -47,6 +47,7 @@ To get a list of supported actions, use the Azure Resource Explorer tool. ```powershell Invoke-AzResourceAction -ResourceId /subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachines/testVM -Action start ``` + ```output Confirm Are you sure you want to invoke the 'start' action on the following resource: /subscriptions/{subId}/resourceGroups/testGroup/providers/Microsoft.Compute/virtualMachines/testVM @@ -69,6 +70,7 @@ The command specifies the *Force* parameter, therefore, it does not prompt you f ```powershell Invoke-AzResourceAction -ResourceId /subscriptions/{subId}/providers/Microsoft.Network -action register -Force ``` + ```output id : /subscriptions/{subId}/providers/Microsoft.Network namespace : Microsoft.Network diff --git a/src/Resources/Resources/help/New-AzADServicePrincipal.md b/src/Resources/Resources/help/New-AzADServicePrincipal.md index 1e5108b8a4d0..4127ff1ab04a 100644 --- a/src/Resources/Resources/help/New-AzADServicePrincipal.md +++ b/src/Resources/Resources/help/New-AzADServicePrincipal.md @@ -14,8 +14,8 @@ Adds new entity to servicePrincipals ### SimpleParameterSet (Default) ``` -New-AzADServicePrincipal [-DisplayName ] [-ApplicationId ] [-Role ] [-Scope ] - [-Homepage ] [-ReplyUrl ] [-StartDate ] [-EndDate ] [-AccountEnabled] +New-AzADServicePrincipal [-DisplayName ] [-Role ] [-Scope ] [-Homepage ] + [-ReplyUrl ] [-StartDate ] [-EndDate ] [-AccountEnabled] [-AddIn ] [-AlternativeName ] [-AppDescription ] [-AppOwnerOrganizationId ] [-AppRole ] [-AppRoleAssignedTo ] @@ -130,6 +130,29 @@ New-AzADServicePrincipal [-Role ] [-Scope ] [-Homepage ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### ApplicationIdParameterSet +``` +New-AzADServicePrincipal [-Role ] [-Scope ] [-Homepage ] [-ReplyUrl ] + [-AccountEnabled] [-AddIn ] [-AlternativeName ] [-AppDescription ] + [-AppOwnerOrganizationId ] [-AppRole ] + [-AppRoleAssignedTo ] + [-AppRoleAssignment ] [-AppRoleAssignmentRequired] + [-ClaimsMappingPolicy ] + [-DelegatedPermissionClassification ] + [-DeletedDateTime ] [-Description ] [-DisabledByMicrosoftStatus ] + [-Endpoint ] + [-HomeRealmDiscoveryPolicy ] + [-Info ] [-LoginUrl ] [-LogoutUrl ] [-Note ] + [-NotificationEmailAddress ] [-Oauth2PermissionScope ] + [-PreferredSingleSignOnMode ] [-PreferredTokenSigningKeyThumbprint ] + [-SamlSingleSignOnSetting ] [-ServicePrincipalName ] + [-ServicePrincipalType ] [-Tag ] [-TokenEncryptionKeyId ] + [-TokenIssuancePolicy ] + [-TokenLifetimePolicy ] + [-TransitiveMemberOf ] [-ApplicationId ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Adds new entity to servicePrincipals @@ -228,7 +251,7 @@ The unique identifier for the associated application (its appId property). ```yaml Type: System.Guid -Parameter Sets: SimpleParameterSet +Parameter Sets: ApplicationIdParameterSet Aliases: AppId Required: False diff --git a/src/Resources/Resources/help/New-AzManagementGroup.md b/src/Resources/Resources/help/New-AzManagementGroup.md index 34bc34aa4141..4e0f3c27498b 100644 --- a/src/Resources/Resources/help/New-AzManagementGroup.md +++ b/src/Resources/Resources/help/New-AzManagementGroup.md @@ -33,6 +33,7 @@ The **New-AzManagementGroup** cmdlet creates a management group. ```powershell New-AzManagementGroup -GroupName "TestGroup" ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups @@ -52,6 +53,7 @@ Creation of a new group with `DisplayName` and `ParentId` set to `null`. The `Di ```powershell New-AzManagementGroup -GroupName "TestGroup" -DisplayName "TestGroupDisplayName" ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups @@ -71,6 +73,7 @@ In this case, the parent of the group will be the tenant and the `DisplayName` w ```powershell New-AzManagementGroup -GroupName "TestGroup" -DisplayName "TestGroupDisplayName" -ParentId "/providers/Microsoft.Management/managementGroups/TestGroupParent" ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups @@ -89,6 +92,7 @@ ParentDisplayName : TestGroupParent $parentObject = Get-AzManagementGroup -GroupName "TestGroupParent" New-AzManagementGroup -GroupName "TestGroup" -ParentObject $parentObject ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups diff --git a/src/Resources/Resources/help/New-AzPolicyAssignment.md b/src/Resources/Resources/help/New-AzPolicyAssignment.md index 0c1b09aab026..4f3696976dc4 100644 --- a/src/Resources/Resources/help/New-AzPolicyAssignment.md +++ b/src/Resources/Resources/help/New-AzPolicyAssignment.md @@ -128,8 +128,6 @@ $Policy = Get-AzPolicyDefinition -BuiltIn | Where-Object {$_.Properties.DisplayN New-AzPolicyAssignment -Name 'RestrictLocationPolicyAssignment' -PolicyDefinition $Policy -Scope $ResourceGroup.ResourceId -PolicyParameter .\AllowedLocations.json ``` - - The first command gets a resource group named ResourceGroup11 by using the Get-AzResourceGroup cmdlet and stores it in the $ResourceGroup variable. The second command gets the built-in policy definition for allowed locations by using the Get-AzPolicyDefinition cmdlet and stores it in the $Policy variable. The final command assigns the policy in $Policy at the resource group identified by the **ResourceId** property of $ResourceGroup using the policy parameter file AllowedLocations.json from the local working directory. diff --git a/src/Resources/Resources/help/New-AzPolicyDefinition.md b/src/Resources/Resources/help/New-AzPolicyDefinition.md index 8c9f79d3e6a3..f3f91d4c3b5f 100644 --- a/src/Resources/Resources/help/New-AzPolicyDefinition.md +++ b/src/Resources/Resources/help/New-AzPolicyDefinition.md @@ -63,7 +63,6 @@ Note: Values provided on the command line (e.g. parameters, metadata) override c ### Example 2: Create a parameterized policy definition using inline parameters - ```powershell <#{ "if": { @@ -91,8 +90,8 @@ The command specifies the policy as a string in valid JSON format. ```powershell New-AzPolicyDefinition -Name 'VMPolicyDefinition' -Metadata '{"category":"Virtual Machine"}' -Policy '{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachines"},"then":{"effect":"deny"}}' ``` -```output +```output Name : VMPolicyDefinition ResourceId : /subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Authorization/policyDefinitions/VMPolicyDefinition ResourceName : VMPolicyDefinition @@ -109,8 +108,8 @@ The command specifies the policy as a string in valid JSON format. ```powershell New-AzPolicyDefinition -Name 'TagsPolicyDefinition' -Policy '{"if":{"value":"[less(length(field(''tags'')), 3)]","equals":true},"then":{"effect":"deny"}}' -Mode Indexed ``` -```output +```output Name : TagsPolicyDefinition ResourceId : /subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Authorization/policyDefinitions/TagsPolicyDefinition ResourceName : TagsPolicyDefinition diff --git a/src/Resources/Resources/help/New-AzPrivateLinkAssociation.md b/src/Resources/Resources/help/New-AzPrivateLinkAssociation.md index dbac7d60c691..74f5a65c38eb 100644 --- a/src/Resources/Resources/help/New-AzPrivateLinkAssociation.md +++ b/src/Resources/Resources/help/New-AzPrivateLinkAssociation.md @@ -46,7 +46,7 @@ Creates the specific private link associations at the managment group scope. The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: IAzureContextContainer +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -61,7 +61,7 @@ Accept wildcard characters: False The management group Id. ```yaml -Type: String +Type: System.String Parameter Sets: (All) Aliases: @@ -76,7 +76,7 @@ Accept wildcard characters: False The private link association Id. ```yaml -Type: String +Type: System.String Parameter Sets: (All) Aliases: PrivateLinkAssociationId @@ -91,7 +91,7 @@ Accept wildcard characters: False The name of the private link. ```yaml -Type: String +Type: System.String Parameter Sets: (All) Aliases: @@ -106,7 +106,7 @@ Accept wildcard characters: False The public network access is enabled/disabled. ```yaml -Type: String +Type: System.String Parameter Sets: (All) Aliases: @@ -121,7 +121,7 @@ Accept wildcard characters: False Prompts you for confirmation before running the cmdlet. ```yaml -Type: SwitchParameter +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf @@ -137,7 +137,7 @@ Shows what would happen if the cmdlet runs. The cmdlet is not run. ```yaml -Type: SwitchParameter +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi diff --git a/src/Resources/Resources/help/New-AzResourceManagementPrivateLink.md b/src/Resources/Resources/help/New-AzResourceManagementPrivateLink.md index a43f3d7b34c7..360ba577e003 100644 --- a/src/Resources/Resources/help/New-AzResourceManagementPrivateLink.md +++ b/src/Resources/Resources/help/New-AzResourceManagementPrivateLink.md @@ -43,7 +43,7 @@ Create the resource management private link. The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: IAzureContextContainer +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -58,7 +58,7 @@ Accept wildcard characters: False The private link location. ```yaml -Type: String +Type: System.String Parameter Sets: (All) Aliases: @@ -73,7 +73,7 @@ Accept wildcard characters: False The name of the private link. ```yaml -Type: String +Type: System.String Parameter Sets: (All) Aliases: PrivateLinkName @@ -88,7 +88,7 @@ Accept wildcard characters: False The name of the resource group. ```yaml -Type: String +Type: System.String Parameter Sets: (All) Aliases: @@ -103,7 +103,7 @@ Accept wildcard characters: False Prompts you for confirmation before running the cmdlet. ```yaml -Type: SwitchParameter +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf @@ -119,7 +119,7 @@ Shows what would happen if the cmdlet runs. The cmdlet is not run. ```yaml -Type: SwitchParameter +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi diff --git a/src/Resources/Resources/help/New-AzRoleAssignmentScheduleRequest.md b/src/Resources/Resources/help/New-AzRoleAssignmentScheduleRequest.md index 5ec3d6764dae..49c92aa9789c 100644 --- a/src/Resources/Resources/help/New-AzRoleAssignmentScheduleRequest.md +++ b/src/Resources/Resources/help/New-AzRoleAssignmentScheduleRequest.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/new-azroleassignmentschedulerequest schema: 2.0.0 @@ -19,7 +19,7 @@ New-AzRoleAssignmentScheduleRequest -Name -Scope [-Condition < [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] [-TargetRoleAssignmentScheduleId ] [-TargetRoleAssignmentScheduleInstanceId ] [-TicketNumber ] [-TicketSystem ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -36,7 +36,7 @@ PS C:\> New-AzRoleAssignmentScheduleRequest -Name $guid -Scope $scope -Expiratio Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… ``` Creates a request to provision an active assignment of `roleDefinition` on the `scope` for the specified `principal` @@ -50,7 +50,7 @@ PS C:\> New-AzRoleAssignmentScheduleRequest -Name $guid -Scope $scope -Expiratio Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -13f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… +13f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… ``` Creates a request to remove an active assignment of `roleDefinition` on the `scope` for the specified `principal` @@ -64,7 +64,7 @@ PS C:\> New-AzRoleAssignmentScheduleRequest -Name $guid -Scope $scope -Expiratio Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… ``` Creates a request to activate an eligible assignment of `roleDefinition` on the `scope` for the specified `principal` @@ -78,7 +78,7 @@ PS C:\> New-AzRoleAssignmentScheduleRequest -Name $guid -Scope $scope -Expiratio Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… ``` Creates a request to deactivate an eligible assignment of `roleDefinition` on the `scope` for the specified `principal` @@ -407,4 +407,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/Resources/Resources/help/New-AzRoleEligibilityScheduleRequest.md b/src/Resources/Resources/help/New-AzRoleEligibilityScheduleRequest.md index d9362baa48eb..6cbbf0704384 100644 --- a/src/Resources/Resources/help/New-AzRoleEligibilityScheduleRequest.md +++ b/src/Resources/Resources/help/New-AzRoleEligibilityScheduleRequest.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/new-azroleeligibilityschedulerequest schema: 2.0.0 @@ -18,7 +18,7 @@ New-AzRoleEligibilityScheduleRequest -Name -Scope [-Condition [-ExpirationType ] [-Justification ] [-PrincipalId ] [-RequestType ] [-RoleDefinitionId ] [-ScheduleInfoStartDateTime ] [-TargetRoleEligibilityScheduleId ] [-TargetRoleEligibilityScheduleInstanceId ] - [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [-TicketNumber ] [-TicketSystem ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -36,7 +36,7 @@ PS C:\> New-AzRoleEligibilityScheduleRequest -Name $guid -Scope $scope -Expirati Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… ``` Creates a request to provision an eligible assignment of `roleDefinition` on the `scope` for the specified `principal` @@ -50,7 +50,7 @@ PS C:\> New-AzRoleEligibilityScheduleRequest -Name $guid -Scope $scope -Expirati Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -13f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… +13f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleEligibilityScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authori… ``` Creates a request to remove an eligible assignment of `roleDefinition` on the `scope` for the specified `principal` @@ -364,4 +364,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/Resources/Resources/help/New-AzRoleManagementPolicyAssignment.md b/src/Resources/Resources/help/New-AzRoleManagementPolicyAssignment.md index 9369c06a116d..0696622171b5 100644 --- a/src/Resources/Resources/help/New-AzRoleManagementPolicyAssignment.md +++ b/src/Resources/Resources/help/New-AzRoleManagementPolicyAssignment.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/new-azrolemanagementpolicyassignment schema: 2.0.0 @@ -14,7 +14,7 @@ Create a role management policy assignment ``` New-AzRoleManagementPolicyAssignment -Name -Scope [-PolicyId ] - [-RoleDefinitionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-RoleDefinitionId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -154,4 +154,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/Resources/Resources/help/New-AzTag.md b/src/Resources/Resources/help/New-AzTag.md index 4dcd0ee24e57..7a304add9619 100644 --- a/src/Resources/Resources/help/New-AzTag.md +++ b/src/Resources/Resources/help/New-AzTag.md @@ -52,8 +52,8 @@ This operation allows adding or replacing the entire set of tags on the specifie ```powershell New-AzTag -Name "FY2015" ``` + ```output - Name ValuesTable Count Values ---- ----------- ----- ------ FY2015 0 {} @@ -68,6 +68,7 @@ You can also specify a value when you apply the tag to the resource or resource ```powershell New-AzTag -Name "Department" -Value "Finance" ``` + ```output Name: Department Count: 0 @@ -157,6 +158,7 @@ The commands in this example create and use a predefined tag. $Tags = @{"tagKey1"="tagValue1"; "tagKey2"="tagValue2"} New-AzTag -ResourceId /subscriptions/{subId} -Tag $Tags ``` + ```output Id : {Id} Name : {Name} @@ -176,6 +178,7 @@ This command creates or updates the entire set of tags on the subscription with $Tags = @{"Dept"="Finance"; "Status"="Normal"} New-AzTag -ResourceId /subscriptions/{subId}/resourcegroups/{rg}/providers/Microsoft.Sql/servers/Server1 -Tag $Tags ``` + ```output Id : {Id} Name : {Name} diff --git a/src/Resources/Resources/help/Remove-AzPrivateLinkAssociation.md b/src/Resources/Resources/help/Remove-AzPrivateLinkAssociation.md index 0aad84af2875..363127e46374 100644 --- a/src/Resources/Resources/help/Remove-AzPrivateLinkAssociation.md +++ b/src/Resources/Resources/help/Remove-AzPrivateLinkAssociation.md @@ -12,10 +12,16 @@ Delete a specific azure private link association. ## SYNTAX +### DeletePLAOperation (Default) ``` -Remove-AzPrivateLinkAssociation [-ManagementGroupId] - [-Name] [-PassThru] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Remove-AzPrivateLinkAssociation [-ManagementGroupId] [-Name] [-PassThru] [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### PrivateLinkAssociationObject +``` +Remove-AzPrivateLinkAssociation [-PassThru] [-Force] -InputObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -57,48 +63,63 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ManagementGroupId -The management group Id. +### -Force +Do not ask for confirmation. ```yaml -Type: System.String +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: -Required: True -Position: 0 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -The private link association Id. +### -InputObject +The private link association object. + +```yaml +Type: Microsoft.Azure.Commands.Resources.Models.PrivateLinks.PSResourceManagementPrivateLinkAssociation +Parameter Sets: PrivateLinkAssociationObject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ManagementGroupId +The management group Id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: DeletePLAOperation Aliases: Required: True -Position: 1 +Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -The private link association object. +### -Name +The private link association Id. ```yaml -Type: Microsoft.Azure.Commands.Resources.Models.PrivateLinks.PSResourceManagementPrivateLinkAssociation -Parameter Sets: ManagementGroupObject -Aliases: +Type: System.String +Parameter Sets: DeletePLAOperation +Aliases: PrivateLinkAssociationId Required: True -Position: Named +Position: 1 Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Resources/Resources/help/Remove-AzResourceGroupDeployment.md b/src/Resources/Resources/help/Remove-AzResourceGroupDeployment.md index 15bf19f1017e..4533fc5b356e 100644 --- a/src/Resources/Resources/help/Remove-AzResourceGroupDeployment.md +++ b/src/Resources/Resources/help/Remove-AzResourceGroupDeployment.md @@ -36,6 +36,7 @@ The **Remove-AzResourceGroupDeployment** cmdlet removes an Azure resource group ```powershell Remove-AzResourceGroupDeployment -ResourceId /subscriptions/{subId}/resourceGroups/testGroup/providers/Microsoft.Resources/deployments/testDeployment1 ``` + ```output True ``` @@ -48,6 +49,7 @@ Successful removal returns true. ```powershell Remove-AzResourceGroupDeployment -ResourceGroupName testGroup -Name testDeployment1 ``` + ```output True ``` diff --git a/src/Resources/Resources/help/Remove-AzResourceManagementPrivateLink.md b/src/Resources/Resources/help/Remove-AzResourceManagementPrivateLink.md index a208c8833180..b93f173e6120 100644 --- a/src/Resources/Resources/help/Remove-AzResourceManagementPrivateLink.md +++ b/src/Resources/Resources/help/Remove-AzResourceManagementPrivateLink.md @@ -12,8 +12,15 @@ Deletes the Resource Manangement Private Link. ## SYNTAX +### DeleteOperation (Default) ``` -Remove-AzResourceManagementPrivateLink [-ResourceGroupName] [-Name] [-PassThru] +Remove-AzResourceManagementPrivateLink [-ResourceGroupName] [-Name] [-PassThru] [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### PrivateLinkObject +``` +Remove-AzResourceManagementPrivateLink [-PassThru] [-Force] -InputObject [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -54,48 +61,48 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -The name of the private link. +### -Force +Do not ask for confirmation. ```yaml -Type: System.String +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: -Required: True -Position: 1 +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -The name of the resource group. +### -InputObject +The private link association object. ```yaml -Type: System.String -Parameter Sets: (All) +Type: Microsoft.Azure.Commands.Resources.Models.PrivateLinks.PSResourceManagementPrivateLink +Parameter Sets: PrivateLinkObject Aliases: Required: True -Position: 0 +Position: Named Default value: None -Accept pipeline input: False +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -InputObject -The private link association object. +### -Name +The name of the private link. ```yaml -Type: Microsoft.Azure.Commands.Resources.Models.PrivateLinks.PSResourceManagementPrivateLink -Parameter Sets: ManagementGroupObject -Aliases: +Type: System.String +Parameter Sets: DeleteOperation +Aliases: PrivateLinkName Required: True -Position: Named +Position: 1 Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -114,6 +121,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: DeleteOperation +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Resources/Resources/help/Remove-AzRoleManagementPolicy.md b/src/Resources/Resources/help/Remove-AzRoleManagementPolicy.md index 37efe88cf494..fbca1dc4024d 100644 --- a/src/Resources/Resources/help/Remove-AzRoleManagementPolicy.md +++ b/src/Resources/Resources/help/Remove-AzRoleManagementPolicy.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/remove-azrolemanagementpolicy schema: 2.0.0 @@ -14,14 +14,14 @@ Delete a role management policy ### Delete (Default) ``` -Remove-AzRoleManagementPolicy -Name -Scope [-DefaultProfile ] [-PassThru] - [-Confirm] [-WhatIf] [] +Remove-AzRoleManagementPolicy -Name -Scope [-DefaultProfile ] [-PassThru] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzRoleManagementPolicy -InputObject [-DefaultProfile ] [-PassThru] - [-Confirm] [-WhatIf] [] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -181,4 +181,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Remove-AzRoleManagementPolicyAssignment.md b/src/Resources/Resources/help/Remove-AzRoleManagementPolicyAssignment.md index bcd7050af8db..b15f0aedf6b9 100644 --- a/src/Resources/Resources/help/Remove-AzRoleManagementPolicyAssignment.md +++ b/src/Resources/Resources/help/Remove-AzRoleManagementPolicyAssignment.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/remove-azrolemanagementpolicyassignment schema: 2.0.0 @@ -14,14 +14,14 @@ Delete a role management policy assignment ### Delete (Default) ``` -Remove-AzRoleManagementPolicyAssignment -Name -Scope [-DefaultProfile ] - [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzRoleManagementPolicyAssignment -Name -Scope [-DefaultProfile ] [-PassThru] + [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzRoleManagementPolicyAssignment -InputObject [-DefaultProfile ] - [-PassThru] [-Confirm] [-WhatIf] [] + [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -181,4 +181,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Remove-AzTag.md b/src/Resources/Resources/help/Remove-AzTag.md index 1d57a89c325b..17da7eb69099 100644 --- a/src/Resources/Resources/help/Remove-AzTag.md +++ b/src/Resources/Resources/help/Remove-AzTag.md @@ -51,6 +51,7 @@ If the tag has been applied to any resources or resource groups, the command fai ```powershell Remove-AzTag -Name "Department" -Value "HumanResources" -PassThru ``` + ```output Name: Department Count: 14 @@ -80,6 +81,7 @@ This command deletes the entire set of tags on the subscription with {subId}. It ```powershell Remove-AzTag -ResourceId /subscriptions/{subId}/resourcegroups/{rg}/providers/Microsoft.Sql/servers/Server1 -PassThru ``` + ```output Id : {Id} Name : {Name} diff --git a/src/Resources/Resources/help/Set-AzPolicyDefinition.md b/src/Resources/Resources/help/Set-AzPolicyDefinition.md index 615ec4754384..7bd8183fd6ff 100644 --- a/src/Resources/Resources/help/Set-AzPolicyDefinition.md +++ b/src/Resources/Resources/help/Set-AzPolicyDefinition.md @@ -75,8 +75,8 @@ set its mode property to 'All'. ```powershell Set-AzPolicyDefinition -Name 'VMPolicyDefinition' -Metadata '{"category":"Virtual Machine"}' ``` -```output +```output Name : VMPolicyDefinition ResourceId : /subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Authorization/policyDefinitions/VMPolicyDefinition ResourceName : VMPolicyDefinition diff --git a/src/Resources/Resources/help/Set-AzPolicySetDefinition.md b/src/Resources/Resources/help/Set-AzPolicySetDefinition.md index 7e16db9d32c4..10b84d0ae1d3 100644 --- a/src/Resources/Resources/help/Set-AzPolicySetDefinition.md +++ b/src/Resources/Resources/help/Set-AzPolicySetDefinition.md @@ -59,7 +59,7 @@ The **Set-AzPolicySetDefinition** cmdlet modifies a policy definition. ### Example 1: Update the description of a policy set definition ```powershell - $PolicySetDefinition = Get-AzPolicySetDefinition -ResourceId '/subscriptions/mySub/Microsoft.Authorization/policySetDefinitions/myPSSetDefinition' +$PolicySetDefinition = Get-AzPolicySetDefinition -ResourceId '/subscriptions/mySub/Microsoft.Authorization/policySetDefinitions/myPSSetDefinition' Set-AzPolicySetDefinition -Id $PolicySetDefinition.ResourceId -Description 'Updated policy to not allow virtual machine creation' ``` @@ -71,8 +71,8 @@ The second command updates the description of the policy set definition identifi ```powershell Set-AzPolicySetDefinition -Name 'VMPolicySetDefinition' -Metadata '{"category":"Virtual Machine"}' ``` -```output +```output Name : VMPolicySetDefinition ResourceId : /subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Authorization/policySetDefinitions/VMPolicySetDefinition ResourceName : VMPolicySetDefinition diff --git a/src/Resources/Resources/help/Set-AzResource.md b/src/Resources/Resources/help/Set-AzResource.md index 85c1a966701b..f9b5ed693e1f 100644 --- a/src/Resources/Resources/help/Set-AzResource.md +++ b/src/Resources/Resources/help/Set-AzResource.md @@ -70,6 +70,7 @@ $Resource = Get-AzResource -ResourceGroupName testrg $Resource | ForEach-Object { $_.Tags.Add("testkey", "testval") } $Resource | Set-AzResource -Force ``` + ```output Name : kv-test ResourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/kv-test diff --git a/src/Resources/Resources/help/Set-AzRoleAssignment.md b/src/Resources/Resources/help/Set-AzRoleAssignment.md index c4715228f093..7c33c9b656dc 100644 --- a/src/Resources/Resources/help/Set-AzRoleAssignment.md +++ b/src/Resources/Resources/help/Set-AzRoleAssignment.md @@ -55,8 +55,9 @@ $ConditionVersion = "2.0" Set-AzRoleAssignment -InputObject $roleAssignment -PassThru ``` + ```output - RoleAssignmentId : /providers/Microsoft.Management/managementGroups/1273adef-00a3 +RoleAssignmentId : /providers/Microsoft.Management/managementGroups/1273adef-00a3 -4086-a51a-dbcce1857d36/providers/Microsoft.Authorization/role Assignments/926c2a76-be19-4281-94de-38777629b9dc Scope : /subscriptions/4e5329a6-39ce-4e13-b12e-11b30f015986/resourceGroups/contoso_rg @@ -78,8 +79,9 @@ Update an existing role assignment by modifying an object ```powershell Set-AzRoleAssignment -InputFile "C:\RoleAssignments\example.json" -PassThru ``` + ```output - RoleAssignmentId : /providers/Microsoft.Management/managementGroups/1273adef-00a3 +RoleAssignmentId : /providers/Microsoft.Management/managementGroups/1273adef-00a3 -4086-a51a-dbcce1857d36/providers/Microsoft.Authorization/role Assignments/926c2a76-be19-4281-94de-38777629b9dc Scope : /subscriptions/4e5329a6-39ce-4e13-b12e-11b30f015986/resourceGroups/contoso_rg diff --git a/src/Resources/Resources/help/Stop-AzRoleAssignmentScheduleRequest.md b/src/Resources/Resources/help/Stop-AzRoleAssignmentScheduleRequest.md index 1e76dc4d0450..837aabfc10e0 100644 --- a/src/Resources/Resources/help/Stop-AzRoleAssignmentScheduleRequest.md +++ b/src/Resources/Resources/help/Stop-AzRoleAssignmentScheduleRequest.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/stop-azroleassignmentschedulerequest schema: 2.0.0 @@ -15,13 +15,13 @@ Cancels a pending role assignment schedule request. ### Cancel (Default) ``` Stop-AzRoleAssignmentScheduleRequest -Name -Scope [-DefaultProfile ] [-PassThru] - [-Confirm] [-WhatIf] [] + [-WhatIf] [-Confirm] [] ``` ### CancelViaIdentity ``` Stop-AzRoleAssignmentScheduleRequest -InputObject [-DefaultProfile ] - [-PassThru] [-Confirm] [-WhatIf] [] + [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -34,7 +34,6 @@ Cancels a pending role assignment schedule request. PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/" PS C:\> $name = "47f8978c-5d8d-4fbf-b4b6-2f43eeb43ec6" PS C:\> Stop-AzRoleAssignmentScheduleRequest -Scope $scope -Name $name - ``` You can use this operation to cancel a `roleAssignmentScheduleRequest` which has not been provisioned yet. @@ -181,4 +180,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Stop-AzRoleEligibilityScheduleRequest.md b/src/Resources/Resources/help/Stop-AzRoleEligibilityScheduleRequest.md index 0ac7c2e3ada0..466e4b9f8939 100644 --- a/src/Resources/Resources/help/Stop-AzRoleEligibilityScheduleRequest.md +++ b/src/Resources/Resources/help/Stop-AzRoleEligibilityScheduleRequest.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/stop-azroleeligibilityschedulerequest schema: 2.0.0 @@ -15,13 +15,13 @@ Cancels a pending role eligibility schedule request. ### Cancel (Default) ``` Stop-AzRoleEligibilityScheduleRequest -Name -Scope [-DefaultProfile ] [-PassThru] - [-Confirm] [-WhatIf] [] + [-WhatIf] [-Confirm] [] ``` ### CancelViaIdentity ``` Stop-AzRoleEligibilityScheduleRequest -InputObject [-DefaultProfile ] - [-PassThru] [-Confirm] [-WhatIf] [] + [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -34,7 +34,6 @@ Cancels a pending role eligibility schedule request. PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/" PS C:\> $name = "47f8978c-5d8d-4fbf-b4b6-2f43eeb43ec6" PS C:\> Stop-AzRoleEligibilitytScheduleRequest -Scope $scope -Name $name - ``` You can use this operation to cancel a `roleEligibilityScheduleRequest` which has not been provisioned yet. @@ -181,4 +180,3 @@ INPUTOBJECT : Identity Parameter - `[Scope ]`: The scope of the role management policy. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Update-AzManagementGroup.md b/src/Resources/Resources/help/Update-AzManagementGroup.md index cb66de816b04..b2a514184107 100644 --- a/src/Resources/Resources/help/Update-AzManagementGroup.md +++ b/src/Resources/Resources/help/Update-AzManagementGroup.md @@ -46,6 +46,7 @@ The **Update-AzManagementGroup** cmdlet updates the **ParentId** or **DisplayNam ```powershell Update-AzManagementGroup -Group "TestGroup" -DisplayName "New Display Name" ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups @@ -63,6 +64,7 @@ ParentDisplayName : 6b2064b9-34bd-46e6-9092-52f2dd5f7fc0 ```powershell Update-AzManagementGroup -Group "TestGroup" -ParentId "/providers/Microsoft.Management/managementGroups/TestGroupParent" ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups @@ -80,6 +82,7 @@ ParentDisplayName : TestGroupParent ```powershell Get-AzManagementGroup -GroupName "TestGroup" | Update-AzManagementGroup -DisplayName "TestDisplayName" -ParentId "/providers/Microsoft.Management/managementGroups/TestGroupParent" ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups @@ -98,6 +101,7 @@ ParentDisplayName : TestGroupParent $parentObject = Get-AzManagementGroup -GroupName "TestGroupParent" Update-AzManagementGroup -GroupName "TestGroup" -ParentObject $parentObject ``` + ```output Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups diff --git a/src/Resources/Resources/help/Update-AzRoleManagementPolicy.md b/src/Resources/Resources/help/Update-AzRoleManagementPolicy.md index ec0311962f26..29d085c95302 100644 --- a/src/Resources/Resources/help/Update-AzRoleManagementPolicy.md +++ b/src/Resources/Resources/help/Update-AzRoleManagementPolicy.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Resources-help.xml Module Name: Az.Resources online version: https://docs.microsoft.com/powershell/module/az.resources/update-azrolemanagementpolicy schema: 2.0.0 @@ -15,15 +15,15 @@ Update a role management policy ### UpdateExpanded (Default) ``` Update-AzRoleManagementPolicy -Name -Scope [-Description ] [-DisplayName ] - [-IsOrganizationDefault] [-Rule ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] + [-IsOrganizationDefault] [-Rule ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzRoleManagementPolicy -InputObject [-Description ] [-DisplayName ] [-IsOrganizationDefault] [-Rule ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -52,7 +52,6 @@ PS C:\> Update-AzRoleManagementPolicy -Scope $scope -Name "33b520ea-3544-4abc-85 Name Type Scope ---- ---- ----- 33b520ea-3544-4abc-8565-3588deb8e68e Microsoft.Authorization/roleManagementPolicies /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d - ``` Each individual `Rule` on a policy can be update independently. @@ -93,7 +92,6 @@ PS C:\> Update-AzRoleManagementPolicy -Scope $scope -Name "33b520ea-3544-4abc-85 Name Type Scope ---- ---- ----- 33b520ea-3544-4abc-8565-3588deb8e68e Microsoft.Authorization/roleManagementPolicies /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d - ``` Multiple `Rule` can be updated together. @@ -296,4 +294,3 @@ RULE : The rule applied to the policy. - `[TargetOperation ]`: The type of operation. ## RELATED LINKS - diff --git a/src/Resources/Resources/help/Update-AzTag.md b/src/Resources/Resources/help/Update-AzTag.md index b82f795fd464..c2910a339810 100644 --- a/src/Resources/Resources/help/Update-AzTag.md +++ b/src/Resources/Resources/help/Update-AzTag.md @@ -32,6 +32,7 @@ This operation allows replacing, merging or selectively deleting tags on the spe $mergedTags = @{"key1"="value1"; "key3"="value3";} Update-AzTag -ResourceId /subscriptions/{subId} -Tag $mergedTags -Operation Merge ``` + ```output Id : {Id} Name : {Name} @@ -52,6 +53,7 @@ This command Merges the set of tags on the subscription with {subId}. $replacedTags = @{"key1"="value1"; "key3"="value3";} Update-AzTag -ResourceId /subscriptions/{subId} -Tag $replacedTags -Operation Replace ``` + ```output Id : {Id} Name : {Name} @@ -71,6 +73,7 @@ This command Replaces the set of tags on the subscription with {subId}. $deletedTags = @{"key1"="value1"} Update-AzTag -ResourceId /subscriptions/{subId} -Tag $deletedTags -Operation Delete ``` + ```output Id : {Id} Name : {Name}