diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md index 073e6613d93c1..bd330a7ae27cf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md @@ -85,13 +85,13 @@ First, you need to the determine the ID of the role you wish to assign, along wi ```C# Snippet:PrepCreateRoleAssignment Response> roles = definitionsClient.ListRoleDefinitions(); -SynapseRoleDefinition role = roles.Value.Single(role => role.Name == "Workspace Admin"); +SynapseRoleDefinition role = roles.Value.Single(role => role.Name == "Synapse Administrator"); Guid roleId = role.Id.Value; string assignedScope = "workspaces/"; // Replace the string below with the ID you'd like to assign the role. -Guid principalId = Guid.Parse(""); +Guid principalId = /*"*/ Guid.NewGuid(); // Replace the string below with the ID of the assignment you'd like to use. string assignmentId = ""; diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md index f50dc3c0c799a..a3ddec4638690 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md @@ -20,13 +20,13 @@ First, you need to the determine the ID of the role you wish to assign, along wi ```C# Snippet:PrepCreateRoleAssignment Response> roles = definitionsClient.ListRoleDefinitions(); -SynapseRoleDefinition role = roles.Value.Single(role => role.Name == "Workspace Admin"); +SynapseRoleDefinition role = roles.Value.Single(role => role.Name == "Synapse Administrator"); Guid roleId = role.Id.Value; string assignedScope = "workspaces/"; // Replace the string below with the ID you'd like to assign the role. -Guid principalId = Guid.Parse(""); +Guid principalId = /*"*/ Guid.NewGuid(); // Replace the string below with the ID of the assignment you'd like to use. string assignmentId = ""; diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/samples/Sample1_HelloWorld.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/samples/Sample1_HelloWorld.cs index da9dd475443ad..02dbcdd4ff0dd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/samples/Sample1_HelloWorld.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/samples/Sample1_HelloWorld.cs @@ -33,15 +33,14 @@ public void AddAndRemoveRoleAssignmentSync() #region Snippet:PrepCreateRoleAssignment Response> roles = definitionsClient.ListRoleDefinitions(); - SynapseRoleDefinition role = roles.Value.Single(role => role.Name == "Workspace Admin"); + SynapseRoleDefinition role = roles.Value.Single(role => role.Name == "Synapse Administrator"); Guid roleId = role.Id.Value; string assignedScope = "workspaces/"; /*@@*/assignedScope = "workspaces/workspacechhamosynapse"; // Replace the string below with the ID you'd like to assign the role. - Guid principalId = Guid.Parse(""); - /*@@*/principalId = Guid.NewGuid(); + Guid principalId = /*"*/ Guid.NewGuid(); // Replace the string below with the ID of the assignment you'd like to use. string assignmentId = "";