Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-MgApplicationOwnerByRef 2.17.0 missing DirectoryObjectId parameter #2674

Closed
TahaBenseddik opened this issue Apr 10, 2024 · 2 comments
Closed

Comments

@TahaBenseddik
Copy link

Describe the bug

The parameter -DirectoryObjectId is not available with the command Remove-MgApplicationOwnerByRef in the module Microsoft.Graph.Applications 2.17.0.

To Reproduce
Steps to reproduce the behavior:

  1. Execute Install-Module -Name Microsoft.Graph.Applications -Force
  2. Execute Remove-MgApplicationOwnerByRef -ApplicationId $appId -DirectoryObjectId $OwnerId

Expected behavior

The parameter -DirectoryObjectId is supposed to be available with the command Remove-MgGroupMemberByRef in the module Microsoft.Graph.Applications 2.17.0.

Module Version

VERBOSE: InstallPackage' - name='Microsoft.Graph.Applications', version='2.17.0',destination='C:\Users\VssAdministrator\AppData\Local\Temp\1326736563'
VERBOSE: DownloadPackage' - name='Microsoft.Graph.Applications', version='2.17.0',destination='C:\Users\VssAdministrator\AppData\Local\Temp\1326736563\Microsoft.Graph.Applications.2.17.0\Microsoft.Graph.Applications.2.17.0.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Applications/2.17.0'

Environment Data

Key   : PSVersion
Value : 7.4.1

Key   : PSEdition
Value : Core

Key   : GitCommitId
Value : 7.4.1

Key   : OS
Value : Microsoft Windows 10.0.20348

Key   : Platform
Value : Win32NT

Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0…}

Key   : PSRemotingProtocolVersion
Value : 2.3

Key   : SerializationVersion
Value : 1.1.0.1

Key   : WSManStackVersion
Value : 3.0

Screenshots

image

Additional context

The code is ran on a microsoft hosted agent from Azure DevOps

==============================================================================
Task         : Azure PowerShell
Description  : Run a PowerShell script within an Azure environment
Version      : 5.237.9
Author       : Microsoft Corporation
Help         : https://aka.ms/azurepowershelltroubleshooting

@ricmestre
Copy link

As it happened on #2670 most likely it was replaced by cmdlet Remove-MgApplicationOwnerDirectoryObjectByRef

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants