Comments (9)
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.
@BigStan82
Thanks for your feedback! We will investigate and update as appropriate.
from entra-docs.
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.
@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.
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.
@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.
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.
from entra-docs.
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)
- parameter InviteRedirectUrl is required for command New-MgInvitation HOT 3
- Step #7 in Register passkey in Authenticator app on android device is incorrect HOT 2
- Dynamic membership rules documentation error: Property 'objectid' cannot be applied to object 'Group' HOT 3
- Simulate Workload Identities Risk Learning Period HOT 2
- Inconsistent IDs in Example 7 of "Assign custom admin roles using the Microsoft Graph API in Microsoft Entra ID" Document HOT 4
- Inconsistent statement for SAML/WS-Fed identity provider configuration of required claims HOT 2
- previousDayDateTime24hrs included example but not explained HOT 5
- AppID is ambiguous on External ID Custom Authentication Extension instructions HOT 1
- Possibly incorrect description for AADSTS50074 on "Microsoft Entra authentication and authorization error codes" page HOT 4
- Update Segment docs to add flag to the Tenant URL HOT 3
- Invalid JSON examples HOT 1
- Entra Permissions Management Region Availability HOT 4
- Clarify operational requirements when assigning entitlement packages to users HOT 4
- Entra Connector Times out HOT 9
- Supported MFA options in External Microsoft Entra Tenants HOT 3
- Private DNS option missing in Entra Private access HOT 6
- Some service plans are missing in some Microsoft Teams Rooms licenses. HOT 6
- Documentation issue with workday-writeback-tutorial.md HOT 3
- There is no process to revert the SCIM Provisioning Mode to "Manual" HOT 1
- Permissions for Verified ID and LCW are missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entra-docs.