diff --git a/azps-15.4.0/Az.Resources/Remove-AzADAppPermission.md b/azps-15.4.0/Az.Resources/Remove-AzADAppPermission.md index 685726e2f5..9f2348776c 100644 --- a/azps-15.4.0/Az.Resources/Remove-AzADAppPermission.md +++ b/azps-15.4.0/Az.Resources/Remove-AzADAppPermission.md @@ -33,10 +33,10 @@ Removes an API permission. ### Example 1: Remove API Permission ```powershell -Remove-AzADAppPermission -ObjectId 9cc74d5e-1162-4b90-8696-65f3d6a3f7d0 -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d +Remove-AzADAppPermission -ObjectId aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb -PermissionId 5f8c59db-677d-491f-a6b8-5f174b11ec1d ``` -Remove delegated permission "Group.Read.All" of Microsoft Graph API from AD Application (9cc74d5e-1162-4b90-8696-65f3d6a3f7d0) +Remove delegated permission "Group.Read.All" of Microsoft Graph API from AD Application (aaaabbbb-0000-cccc-1111-dddd2222eeee) ## PARAMETERS diff --git a/azps-15.4.0/Az.Resources/Remove-AzADServicePrincipalAppRoleAssignment.md b/azps-15.4.0/Az.Resources/Remove-AzADServicePrincipalAppRoleAssignment.md index 07f807a340..ddf93d5a51 100644 --- a/azps-15.4.0/Az.Resources/Remove-AzADServicePrincipalAppRoleAssignment.md +++ b/azps-15.4.0/Az.Resources/Remove-AzADServicePrincipalAppRoleAssignment.md @@ -27,7 +27,7 @@ Delete navigation property appRoleAssignments for servicePrincipals ### Example 1: Remove an app role from service principal ```powershell -Remove-AzADServicePrincipalAppRoleAssignment -AppRoleAssignmentId Zbm-cUeDXUmlicIc3eenIlTWN1A5UVFMigS0D3ED-dk -ServicePrincipalId 71beb965-8347-495d-a589-c21cdde7a722 +Remove-AzADServicePrincipalAppRoleAssignment -AppRoleAssignmentId Zbm-cUeDXUmlicIc3eenIlTWN1A5UVFMigS0D3ED-dk -ServicePrincipalId aaaaaaaa-bbbb-cccc-1111-222222222222 ``` Remove an app role from service principal. diff --git a/azps-15.4.0/Az.Resources/Remove-AzManagementGroupSubscription.md b/azps-15.4.0/Az.Resources/Remove-AzManagementGroupSubscription.md index 9a40a933fe..4bf884f9d1 100644 --- a/azps-15.4.0/Az.Resources/Remove-AzManagementGroupSubscription.md +++ b/azps-15.4.0/Az.Resources/Remove-AzManagementGroupSubscription.md @@ -27,7 +27,7 @@ The **Remove-AzManagementGroupSubscription** cmdlet removes a Subscription from ### Example 1: Remove Subscription from a Management Group ```powershell -Remove-AzManagementGroupSubscription -GroupName "TestGroup" -SubscriptionId 2120692d-35c3-44c8-81f5-631fa7351726 +Remove-AzManagementGroupSubscription -GroupName "TestGroup" -SubscriptionId aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e ``` ## PARAMETERS diff --git a/azps-15.4.0/Az.Resources/Remove-AzRoleAssignment.md b/azps-15.4.0/Az.Resources/Remove-AzRoleAssignment.md index 7086c0fcf9..7374e21cb2 100644 --- a/azps-15.4.0/Az.Resources/Remove-AzRoleAssignment.md +++ b/azps-15.4.0/Az.Resources/Remove-AzRoleAssignment.md @@ -139,7 +139,7 @@ Removes a role assignment for john.doe@contoso.com who is assigned to the Reader ### Example 2 ```powershell -Remove-AzRoleAssignment -ObjectId 00001111-aaaa-2222-bbbb-3333cccc4444 -RoleDefinitionName Reader +Remove-AzRoleAssignment -ObjectId aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb -RoleDefinitionName Reader ``` Removes the role assignment to the group principal identified by the ObjectId and assigned to the Reader role. diff --git a/azps-15.4.0/Az.Resources/Set-AzRoleAssignment.md b/azps-15.4.0/Az.Resources/Set-AzRoleAssignment.md index a3f5e15b16..6bcd9a4272 100644 --- a/azps-15.4.0/Az.Resources/Set-AzRoleAssignment.md +++ b/azps-15.4.0/Az.Resources/Set-AzRoleAssignment.md @@ -52,7 +52,7 @@ $ConditionVersion = "2.0" $Description = "This is a new role assignment for John" $Condition = "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers/blobs:Path] StringEqualsIgnoreCase 'foo_storage_container'" - $roleAssignment = Get-AzRoleAssignment -Scope "/subscriptions/00001111-aaaa-2222-bbbb-3333cccc4444/resourceGroups/contoso_rg" -PrincipalId "0c0f6cdc-90dd-4664-83c0-a0d986c4c604" + $roleAssignment = Get-AzRoleAssignment -Scope "/subscriptions/00001111-aaaa-2222-bbbb-3333cccc4444/resourceGroups/contoso_rg" -PrincipalId "aaaaaaaa-bbbb-cccc-1111-222222222222" $roleAssignment.Description = $Description $roleAssignment.Condition = $Condition $roleAssignment.ConditionVersion = $ConditionVersion @@ -69,7 +69,7 @@ RoleAssignmentId : /providers/Microsoft.Management/managementGroups/1273adef-0 SignInName : John.Doe@Contoso.com RoleDefinitionName : Owner RoleDefinitionId : 8e3af657-a8ff-443c-a75c-2fe8c4bcb635 - ObjectId : 0c0f6cdc-90dd-4664-83c0-a0d986c4c604 + ObjectId : aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb ObjectType : User CanDelegate : False Description : This is a new role assignment for John @@ -93,7 +93,7 @@ RoleAssignmentId : /providers/Microsoft.Management/managementGroups/1273adef-0 SignInName : John.Doe@Contoso.com RoleDefinitionName : Owner RoleDefinitionId : 8e3af657-a8ff-443c-a75c-2fe8c4bcb635 - ObjectId : 0c0f6cdc-90dd-4664-83c0-a0d986c4c604 + ObjectId : aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb ObjectType : User CanDelegate : False Description : This is a new role assignment for John diff --git a/azps-15.4.0/Az.Resources/Update-AzADServicePrincipalAppRoleAssignment.md b/azps-15.4.0/Az.Resources/Update-AzADServicePrincipalAppRoleAssignment.md index 50f8ed14c5..5d38a80493 100644 --- a/azps-15.4.0/Az.Resources/Update-AzADServicePrincipalAppRoleAssignment.md +++ b/azps-15.4.0/Az.Resources/Update-AzADServicePrincipalAppRoleAssignment.md @@ -49,7 +49,7 @@ Update the navigation property appRoleAssignments in servicePrincipals ### Example 1: Update the AppRoleId ```powershell -Update-AzADServicePrincipalAppRoleAssignment -AppRoleAssignmentId Zbm-cUeDXUmlicIc3eenIoFW9pZ_gRBIudKgu0gaMIw -ServicePrincipalId 71beb965-8347-495d-a589-c21cdde7a722 -AppRoleId 649ae968-bdf9-4f22-bb2c-2aa1b4af0a83 +Update-AzADServicePrincipalAppRoleAssignment -AppRoleAssignmentId Zbm-cUeDXUmlicIc3eenIoFW9pZ_gRBIudKgu0gaMIw -ServicePrincipalId aaaaaaaa-bbbb-cccc-1111-222222222222 -AppRoleId bbbbbbbb-cccc-dddd-2222-333333333333 ``` Update the assigned App role id. diff --git a/azps-15.4.0/Az.Resources/Update-AzManagementGroup.md b/azps-15.4.0/Az.Resources/Update-AzManagementGroup.md index c6e7fc407d..1ad699795e 100644 --- a/azps-15.4.0/Az.Resources/Update-AzManagementGroup.md +++ b/azps-15.4.0/Az.Resources/Update-AzManagementGroup.md @@ -56,7 +56,7 @@ Update-AzManagementGroup -GroupName "TestGroup" -DisplayName "New Display Name" Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups Name : TestGroup -TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444 +TenantId : aaaabbbb-0000-cccc-1111-dddd2222eeee DisplayName : New Display Name UpdatedTime : 2/1/2018 12:03:37 PM UpdatedBy : 64360beb-ffb4-43a8-9314-01aa34db95a9 @@ -74,7 +74,7 @@ Update-AzManagementGroup -GroupName "TestGroup" -ParentId "/providers/Microsoft. Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups Name : TestGroup -TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444 +TenantId : aaaabbbb-0000-cccc-1111-dddd2222eeee DisplayName : TestGroup UpdatedTime : 2/1/2018 12:03:37 PM UpdatedBy : 64360beb-ffb4-43a8-9314-01aa34db95a9 @@ -92,7 +92,7 @@ Get-AzManagementGroup -GroupName "TestGroup" | Update-AzManagementGroup -Display Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups Name : TestGroup -TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444 +TenantId : aaaabbbb-0000-cccc-1111-dddd2222eeee DisplayName : TestDisplayName UpdatedTime : 2/1/2018 12:03:37 PM UpdatedBy : 64360beb-ffb4-43a8-9314-01aa34db95a9 @@ -111,7 +111,7 @@ Update-AzManagementGroup -GroupName "TestGroup" -ParentObject $parentObject Id : /providers/Microsoft.Management/managementGroups/TestGroup Type : /providers/Microsoft.Management/managementGroups Name : TestGroup -TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444 +TenantId : aaaabbbb-0000-cccc-1111-dddd2222eeee DisplayName : TestGroupDisplayName UpdatedTime : 2/1/2018 11:16:12 AM UpdatedBy : 00001111-aaaa-2222-bbbb-3333cccc4444 diff --git a/azps-15.4.0/Az.Resources/Update-AzManagementGroupHierarchySetting.md b/azps-15.4.0/Az.Resources/Update-AzManagementGroupHierarchySetting.md index 20ae56a22c..9aa3134028 100644 --- a/azps-15.4.0/Az.Resources/Update-AzManagementGroupHierarchySetting.md +++ b/azps-15.4.0/Az.Resources/Update-AzManagementGroupHierarchySetting.md @@ -42,7 +42,7 @@ Update-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869b Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default Type : Microsoft.Management/managementGroups/settings Name : default -TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444 +TenantId : aaaabbbb-0000-cccc-1111-dddd2222eeee RequireAuthorizationForGroupCreation : true DefaultManagementGroup : ``` @@ -56,7 +56,7 @@ Update-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869b Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default Type : Microsoft.Management/managementGroups/settings Name : default -TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444 +TenantId : aaaabbbb-0000-cccc-1111-dddd2222eeee RequireAuthorizationForGroupCreation : false DefaultManagementGroup : TestGroup ``` @@ -70,7 +70,7 @@ Update-AzManagementGroupHierarchySetting -GroupName c7a87cda-9a66-4920-b0f8-869b Id : /providers/Microsoft.Management/managementGroups/c7a87cda-9a66-4920-b0f8-869baa04efe0/settings/default Type : Microsoft.Management/managementGroups/settings Name : default -TenantId : 00001111-aaaa-2222-bbbb-3333cccc4444 +TenantId : aaaabbbb-0000-cccc-1111-dddd2222eeee RequireAuthorizationForGroupCreation : true DefaultManagementGroup : TestGroup ``` diff --git a/azps-15.4.0/Az.Resources/Update-AzRoleAssignmentScheduleRequest.md b/azps-15.4.0/Az.Resources/Update-AzRoleAssignmentScheduleRequest.md index b02594dc53..cf396ad42e 100644 --- a/azps-15.4.0/Az.Resources/Update-AzRoleAssignmentScheduleRequest.md +++ b/azps-15.4.0/Az.Resources/Update-AzRoleAssignmentScheduleRequest.md @@ -45,14 +45,14 @@ Update a role assignment schedule request. ```powershell $guid = "12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca" $startTime = Get-Date -Format o -$scope = "/subscriptions/11111111-2222-3333-4444-123456789101/" -Update-AzRoleAssignmentScheduleRequest -Name $guid -Scope $scope -ExpirationDuration PT1H -ExpirationType AfterDuration -PrincipalId 5a4bdd72-ab3e-4d8e-ab0f-8dd8917481a2 -RequestType AdminAssign -RoleDefinitionId subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7 -ScheduleInfoStartDateTime $startTime +$scope = "/subscriptions/bbbbbbbb-cccc-dddd-2222-333333333333/" +Update-AzRoleAssignmentScheduleRequest -Name $guid -Scope $scope -ExpirationDuration PT1H -ExpirationType AfterDuration -PrincipalId aaaaaaaa-bbbb-cccc-1111-222222222222 -RequestType AdminAssign -RoleDefinitionId subscriptions/bbbbbbbb-cccc-dddd-2222-333333333333/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7 -ScheduleInfoStartDateTime $startTime ``` ```output Name Type Scope RoleDefinitionId ---- ---- ----- ---------------- -12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/11111111-2222-3333-4444-123456789101 /subscriptions/11111111-2222-3333-4444-123456789101/providers/Microsoft.Authori… +12f8978c-5d8d-4fbf-b4b6-2f43eeb43eca Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/bbbbbbbb-cccc-dddd-2222-333333333333 /subscriptions/bbbbbbbb-cccc-dddd-2222-333333333333/providers/Microsoft.Authori… ``` Updates a request to provision an active assignment of `roleDefinition` on the `scope` for the specified `principal`