Skip to content

Commit f7d09bb

Browse files
Fix Az.Resources Syntax Errors in generation (#17770)
1 parent 50cf513 commit f7d09bb

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/Resources/MSGraph.Autorest/docs/Add-AzADGroupMember.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $groupid=(Get-AzADGroup -DisplayName $gname).Id
5959
$members=@()
6060
$members+=(Get-AzADUser -DisplayName $uname).Id
6161
$members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id
62-
Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members
62+
Add-AzADGroupMember -TargetGroupObjectId $groupid -MemberObjectId $members
6363
```
6464

6565
Add members to group

src/Resources/MSGraph.Autorest/docs/New-AzADUser.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Adds new entity to users
3535

3636
### Example 1: Create user
3737
```powershell
38-
$pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password}
39-
New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn
38+
$pp = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password}
39+
New-AzADUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn
4040
```
4141

4242
Create user

src/Resources/MSGraph.Autorest/docs/Remove-AzADGroupMember.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Supports $expand.
7171
$members = @()
7272
$members += (Get-AzADUser -DisplayName $uname).Id
7373
$members += (Get-AzADServicePrincipal -ApplicationId $appid).Id
74-
Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member
74+
Get-AzADGroupMember -GroupDisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member
7575
```
7676

7777
Remove members from group

src/Resources/MSGraph.Autorest/docs/Remove-AzADServicePrincipal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Remove service principal by display name
6262

6363
### Example 2: Remove service principal by pipeline input
6464
```powershell
65-
Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal
65+
Get-AzADServicePrincipal -ApplicationId $id | Remove-AzADServicePrincipal
6666
```
6767

6868
Remove service principal by pipeline input

src/Resources/MSGraph.Autorest/examples/Add-AzADGroupMember.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $groupid=(Get-AzADGroup -DisplayName $gname).Id
44
$members=@()
55
$members+=(Get-AzADUser -DisplayName $uname).Id
66
$members+=(Get-AzADServicePrincipal -ApplicationId $appid).Id
7-
Add-AzADGroupMember -TargetGroupObjectId $groupid MemberObjectId $members
7+
Add-AzADGroupMember -TargetGroupObjectId $groupid -MemberObjectId $members
88
```
99

1010
Add members to group
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Example 1: Create user
22
```powershell
3-
$pp=New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password}
4-
New-MgUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn
3+
$pp = New-Object -TypeName "Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile" -Property @{Password=$password}
4+
New-AzADUser -DisplayName $uname -PasswordProfile $pp -AccountEnabled -MailNickname $nickname -UserPrincipalName $upn
55
```
66

77
Create user

src/Resources/MSGraph.Autorest/examples/Remove-AzADGroupMember.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$members = @()
44
$members += (Get-AzADUser -DisplayName $uname).Id
55
$members += (Get-AzADServicePrincipal -ApplicationId $appid).Id
6-
Get-AzADGroupMember -DisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member
6+
Get-AzADGroupMember -GroupDisplayName $gname | Remove-AzADGroupMember -MemberObjectId $member
77
```
88

99
Remove members from group

src/Resources/MSGraph.Autorest/examples/Remove-AzADServicePrincipal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Remove service principal by display name
77

88
### Example 2: Remove service principal by pipeline input
99
```powershell
10-
Get-AzADServicePrincipal -Application $id | Remove-AzADServicePrincipal
10+
Get-AzADServicePrincipal -ApplicationId $id | Remove-AzADServicePrincipal
1111
```
1212

1313
Remove service principal by pipeline input

0 commit comments

Comments
 (0)