Git Product home page Git Product logo

Comments (9)

BigStan82 avatar BigStan82 commented on July 25, 2024 1

Seeing the same errors as well.

I have fixed mine, by just continuing reading the next paragraph.

"1. Issue a Get-MgBetaDirectorySetting | FL cmdlet and check the ID. If several ID values are present, use the one where you see the EnableMIPLabels property on the Values settings.
2. Issue the Update-MgBetaDirectorySetting cmdlet, using the ID that you retrieved."

And instead of $grpUnifiedSetting.Id I used the ID value.

Hope this helps!

from entra-docs.

RamanathanChinnappan-MSFT avatar RamanathanChinnappan-MSFT commented on July 25, 2024

@BigStan82
Thanks for your feedback! We will investigate and update as appropriate.

from entra-docs.

ManoharLakkoju-MSFT avatar ManoharLakkoju-MSFT commented on July 25, 2024

Hi @BigStan82
It seems like the error is related to the data type of the $grpUnifiedSetting.Id parameter. The Update-MgBetaDirectorySetting cmdlet expects a string value for the -DirectorySettingId parameter, but it is possible that the value of $grpUnifiedSetting.Id is not a string.

To resolve this issue, you can try converting the value of $grpUnifiedSetting.Id to a string before passing it to the Update-MgBetaDirectorySetting cmdlet. You can do this by using the ToString() method, like this:

Update-MgBetaDirectorySetting -DirectorySettingId $grpUnifiedSetting.Id.ToString() -BodyParameter $params

This should convert the value of $grpUnifiedSetting.Id to a string and allow the cmdlet to run successfully.

I hope this helps! Let me know if you have any further questions or concerns.

from entra-docs.

ManoharLakkoju-MSFT avatar ManoharLakkoju-MSFT commented on July 25, 2024

@BigStan82
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation

from entra-docs.

BigStan82 avatar BigStan82 commented on July 25, 2024

Thanks for quick response. When I use .ToString() it returns this error:
Update-MgBetaDirectorySetting_Update: The format of the specified identifier is invalid.

Status: 400 (BadRequest)
ErrorCode: Request_BadRequest
Date: 2023-12-11T09:29:44

Headers:
Cache-Control : no-cache
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : f6db2ec8-b575-4fc5-b949-69c761173888
client-request-id : f38d2060-5138-43a5-abee-38bb1f27c58a
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Switzerland North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"ZRH2EPF000000ED"}}
x-ms-resource-unit : 1
Date : Mon, 11 Dec 2023 09:29:43 GM

from entra-docs.

ManoharLakkoju-MSFT avatar ManoharLakkoju-MSFT commented on July 25, 2024

@BigStan82
I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request).
Thank you for your time and patience throughout this issue.

from entra-docs.

johntroupmagnixaero avatar johntroupmagnixaero commented on July 25, 2024

Thanks for quick response. When I use .ToString() it returns this error: Update-MgBetaDirectorySetting_Update: The format of the specified identifier is invalid.

Status: 400 (BadRequest) ErrorCode: Request_BadRequest Date: 2023-12-11T09:29:44

Headers: Cache-Control : no-cache Transfer-Encoding : chunked Vary : Accept-Encoding Strict-Transport-Security : max-age=31536000 request-id : f6db2ec8-b575-4fc5-b949-69c761173888 client-request-id : f38d2060-5138-43a5-abee-38bb1f27c58a x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Switzerland North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"ZRH2EPF000000ED"}} x-ms-resource-unit : 1 Date : Mon, 11 Dec 2023 09:29:43 GM

Seeing the same errors as well.

from entra-docs.

johntroupmagnixaero avatar johntroupmagnixaero commented on July 25, 2024

from entra-docs.

InfiniteSpektrum avatar InfiniteSpektrum commented on July 25, 2024

It's strange that the default code from Microsoft from the documentation does not work as expected.

I fixed my code like this:

$grpUnifiedSetting = Get-MgBetaDirectorySetting -Search DisplayName:"Group.Unified"
foreach ($grp in $grpUnifiedSetting) {
if ($grp.Displayname -eq "Group.Unified") {
$id = $grp.Id
}
}
$params = @{
Values = @(
@{
Name = "EnableMIPLabels"
Value = "True"
}
)
}
Update-MgBetaDirectorySetting -DirectorySettingId $id -BodyParameter $params

from entra-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.