From 2a626d2a92a6cbdc64c531a4fac0f166c7975f97 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Wed, 22 Jun 2022 15:17:22 +0800 Subject: [PATCH 1/7] make changes to use ms graph --- .../synapse/manual/_client_factory.py | 13 +- .../manual/operations/accesscontrol.py | 18 +- .../recordings/test_access_control.yaml | 518 ++++++++---------- .../tests/latest/test_synapse_scenario.py | 4 +- 4 files changed, 241 insertions(+), 312 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/synapse/manual/_client_factory.py b/src/azure-cli/azure/cli/command_modules/synapse/manual/_client_factory.py index 9f267047591..6eb61a7bdb0 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/manual/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/manual/_client_factory.py @@ -152,16 +152,9 @@ def cf_synapse_role_definitions(cli_ctx, workspace_name): def cf_graph_client_factory(cli_ctx, **_): - from azure.cli.core._profile import Profile - from azure.cli.core.commands.client_factory import configure_common_settings - from azure.graphrbac import GraphRbacManagementClient - profile = Profile(cli_ctx=cli_ctx) - cred, _, tenant_id = profile.get_login_credentials( - resource=cli_ctx.cloud.endpoints.active_directory_graph_resource_id) - client = GraphRbacManagementClient(cred, tenant_id, - base_url=cli_ctx.cloud.endpoints.active_directory_graph_resource_id) - configure_common_settings(cli_ctx, client) - return client + from azure.cli.command_modules.role import graph_client_factory + graph_client = graph_client_factory(cli_ctx) + return graph_client def cf_synapse_client_artifacts_factory(cli_ctx, workspace_name): diff --git a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py index 56364c6636a..7a8a1d93195 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py @@ -6,7 +6,7 @@ from knack.util import CLIError from azure.cli.core.azclierror import InvalidArgumentValueError, ArgumentUsageError from azure.cli.core.util import is_guid -from azure.graphrbac.models import GraphErrorException +from azure.cli.command_modules.role._msgrpah import GraphError from msrestazure.azure_exceptions import CloudError from .._client_factory import cf_synapse_role_assignments, cf_synapse_role_definitions, cf_graph_client_factory from ..constant import ITEM_NAME_MAPPING @@ -121,12 +121,12 @@ def _resolve_object_id(cmd, assignee, fallback_to_object_id=False): client = cf_graph_client_factory(cmd.cli_ctx) result = None try: - result = list(client.users.list(filter="userPrincipalName eq '{0}' or mail eq '{0}' or displayName eq '{0}'" - .format(assignee))) + result = list(client.user_list(filter="userPrincipalName eq '{0}' or mail eq '{0}' or displayName eq '{0}'" + .format(assignee))) if not result: - result = list(client.service_principals.list(filter="displayName eq '{}'".format(assignee))) + result = list(client.service_principal_list(filter="displayName eq '{}'".format(assignee))) if not result: - result = list(client.groups.list(filter="mail eq '{}'".format(assignee))) + result = list(client.group_list(filter="mail eq '{}'".format(assignee))) if not result and is_guid(assignee): # assume an object id, let us verify it result = _get_object_stubs(client, [assignee]) @@ -141,20 +141,18 @@ def _resolve_object_id(cmd, assignee, fallback_to_object_id=False): "Please using --assignee-object-id GUID to specify assignee accurately" .format(assignee=assignee)) - return result[0].object_id - except (CloudError, GraphErrorException): + return result[0]["id"] + except (CloudError, GraphError): if fallback_to_object_id and is_guid(assignee): return assignee raise def _get_object_stubs(graph_client, assignees): - from azure.graphrbac.models import GetObjectsParameters result = [] assignees = list(assignees) # callers could pass in a set for i in range(0, len(assignees), 1000): - params = GetObjectsParameters(include_directory_object_references=True, object_ids=assignees[i:i + 1000]) - result += list(graph_client.objects.get_objects_by_object_ids(params)) + result += list(graph_client.directory_object_get_by_ids(assignees[i:i + 1000])) return result diff --git a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml index 14b72bc3a48..f836cecd6bd 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml +++ b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/rbacScopes?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/rbacScopes?api-version=2020-08-01-preview response: body: string: '["workspaces/{workspaceName}","workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}","workspaces/{workspaceName}/scopePools/{scopePoolName}","workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}","workspaces/{workspaceName}/credentials/{credentialName}","workspaces/{workspaceName}/linkedServices/{linkedServiceName}"]' @@ -21,7 +21,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:12 GMT + - Wed, 22 Jun 2022 07:07:15 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -39,9 +39,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -49,7 +49,7 @@ interactions: Includes create, read, update and delete access to all published code artifacts.\_ Includes Compute Operator, Linked Data Manager, and Credential User permissions on the workspace system identity credential.\_ Includes granting access.\_ - Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/idw/read\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Linked Data Manager\",\"description\":\"Creation and management of managed private endpoints, linked services, and credentials.\u200B\",\"id\":\"dd665582-e433-40ca-b183-1b1b33e73375\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Contributor\",\"description\":\"Full Synapse access to serverless SQL pools, @@ -57,17 +57,17 @@ interactions: and delete access to all published code artifacts and their outputs, including credentials and linked services.\_ Includes compute operator permissions. Does not include permission to use credentials and run pipelines. Does not - include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact Publisher\",\"description\":\"Create, read, update, and delete access to published code artifacts and their outputs. Does not include permission - to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact User\",\"description\":\"Read access to published code artifacts and their outputs. Can create new artifacts but cannot publish changes or run code without additional permissions.\u200B\",\"id\":\"53faaa0e-40b6-40c8-a2ff-e38f2d388875\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Compute Operator\",\"description\":\"Submit Spark jobs and notebooks and view logs.\_ Includes canceling Spark jobs submitted by any user. Requires additional credential use permissions on the workspace system identity to run pipelines, - view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Credential User\",\"description\":\"Runtime and configuration-time use of secrets within credentials and linked services in activities like pipeline runs. To run pipelines, this role is required, scoped to the workspace system @@ -86,14 +86,18 @@ interactions: pools.\_ Create, read, update, and delete access to published SQL scripts, credentials and linked services.\_ Includes read access to all other published code artifacts.\_ Does not include permission to use credentials and run pipelines. - Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" + Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Monitoring Operator\",\"description\":\"Grants read access to published code, + including logs and outputs for notebooks and pipelines. Includes ability to + list and view details of serverless SQL pools, Apache Spark pools, Data Explorer + pools, and Integration runtimes.\",\"id\":\"8f9b2195-5b12-4a7c-af30-8f1f46197650\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" headers: content-length: - - '13874' + - '15767' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:13 GMT + - Wed, 22 Jun 2022 07:07:15 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -111,9 +115,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -121,7 +125,7 @@ interactions: Includes create, read, update and delete access to all published code artifacts.\_ Includes Compute Operator, Linked Data Manager, and Credential User permissions on the workspace system identity credential.\_ Includes granting access.\_ - Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/idw/read\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Linked Data Manager\",\"description\":\"Creation and management of managed private endpoints, linked services, and credentials.\u200B\",\"id\":\"dd665582-e433-40ca-b183-1b1b33e73375\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Contributor\",\"description\":\"Full Synapse access to serverless SQL pools, @@ -129,17 +133,17 @@ interactions: and delete access to all published code artifacts and their outputs, including credentials and linked services.\_ Includes compute operator permissions. Does not include permission to use credentials and run pipelines. Does not - include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact Publisher\",\"description\":\"Create, read, update, and delete access to published code artifacts and their outputs. Does not include permission - to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact User\",\"description\":\"Read access to published code artifacts and their outputs. Can create new artifacts but cannot publish changes or run code without additional permissions.\u200B\",\"id\":\"53faaa0e-40b6-40c8-a2ff-e38f2d388875\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Compute Operator\",\"description\":\"Submit Spark jobs and notebooks and view logs.\_ Includes canceling Spark jobs submitted by any user. Requires additional credential use permissions on the workspace system identity to run pipelines, - view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Credential User\",\"description\":\"Runtime and configuration-time use of secrets within credentials and linked services in activities like pipeline runs. To run pipelines, this role is required, scoped to the workspace system @@ -158,14 +162,18 @@ interactions: pools.\_ Create, read, update, and delete access to published SQL scripts, credentials and linked services.\_ Includes read access to all other published code artifacts.\_ Does not include permission to use credentials and run pipelines. - Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" + Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Monitoring Operator\",\"description\":\"Grants read access to published code, + including logs and outputs for notebooks and pipelines. Includes ability to + list and view details of serverless SQL pools, Apache Spark pools, Data Explorer + pools, and Integration runtimes.\",\"id\":\"8f9b2195-5b12-4a7c-af30-8f1f46197650\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" headers: content-length: - - '13874' + - '15767' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:14 GMT + - Wed, 22 Jun 2022 07:07:16 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -183,9 +191,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleDefinitions/7572bffe-f453-4b66-912a-46cc5ef38fda?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions/7572bffe-f453-4b66-912a-46cc5ef38fda?api-version=2020-08-01-preview response: body: string: "{\"name\":\"Synapse Contributor\",\"description\":\"Full Synapse access @@ -193,14 +201,14 @@ interactions: create, read, update, and delete access to all published code artifacts and their outputs, including credentials and linked services.\_ Includes compute operator permissions. Does not include permission to use credentials and run - pipelines. Does not include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"}" + pipelines. Does not include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"}" headers: content-length: - - '2542' + - '2877' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:14 GMT + - Wed, 22 Jun 2022 07:07:17 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -218,9 +226,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -228,7 +236,7 @@ interactions: Includes create, read, update and delete access to all published code artifacts.\_ Includes Compute Operator, Linked Data Manager, and Credential User permissions on the workspace system identity credential.\_ Includes granting access.\_ - Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/idw/read\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Linked Data Manager\",\"description\":\"Creation and management of managed private endpoints, linked services, and credentials.\u200B\",\"id\":\"dd665582-e433-40ca-b183-1b1b33e73375\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Contributor\",\"description\":\"Full Synapse access to serverless SQL pools, @@ -236,17 +244,17 @@ interactions: and delete access to all published code artifacts and their outputs, including credentials and linked services.\_ Includes compute operator permissions. Does not include permission to use credentials and run pipelines. Does not - include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact Publisher\",\"description\":\"Create, read, update, and delete access to published code artifacts and their outputs. Does not include permission - to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact User\",\"description\":\"Read access to published code artifacts and their outputs. Can create new artifacts but cannot publish changes or run code without additional permissions.\u200B\",\"id\":\"53faaa0e-40b6-40c8-a2ff-e38f2d388875\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Compute Operator\",\"description\":\"Submit Spark jobs and notebooks and view logs.\_ Includes canceling Spark jobs submitted by any user. Requires additional credential use permissions on the workspace system identity to run pipelines, - view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Credential User\",\"description\":\"Runtime and configuration-time use of secrets within credentials and linked services in activities like pipeline runs. To run pipelines, this role is required, scoped to the workspace system @@ -265,14 +273,18 @@ interactions: pools.\_ Create, read, update, and delete access to published SQL scripts, credentials and linked services.\_ Includes read access to all other published code artifacts.\_ Does not include permission to use credentials and run pipelines. - Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" + Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Monitoring Operator\",\"description\":\"Grants read access to published code, + including logs and outputs for notebooks and pipelines. Includes ability to + list and view details of serverless SQL pools, Apache Spark pools, Data Explorer + pools, and Integration runtimes.\",\"id\":\"8f9b2195-5b12-4a7c-af30-8f1f46197650\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" headers: content-length: - - '13874' + - '15767' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:16 GMT + - Wed, 22 Jun 2022 07:07:18 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -284,7 +296,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -294,50 +306,35 @@ interactions: ParameterSetName: - --workspace-name --role --assignee --assignment-id User-Agent: - - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.19.1 - accept-language: - - en-US + - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/users?$filter=userPrincipalName%20eq%20%27testsynapsecli%27%20or%20mail%20eq%20%27testsynapsecli%27%20or%20displayName%20eq%20%27testsynapsecli%27&api-version=1.6 + uri: https://graph.microsoft.com/v1.0/users?$filter=userPrincipalName%20eq%20%27testsynapsecli%27%20or%20mail%20eq%20%27testsynapsecli%27%20or%20displayName%20eq%20%27testsynapsecli%27 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users","value":[]}' headers: - access-control-allow-origin: - - '*' cache-control: - no-cache content-length: - - '121' + - '80' content-type: - - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 - dataserviceversion: - - 3.0; + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:17 GMT - duration: - - '798597' - expires: - - '-1' - ocp-aad-diagnostics-server-name: - - FpjEHjARZKp18ny1QzxF33NAVs0Q9Cig+AbecwGdosw= - ocp-aad-session-key: - - MnEnr9EoX5xmsmn2D3zZe0x7ofxGFxSY0LolTZGOCvfd8q8b_YL5TgFyMV1AkMM8gaP-TJIQujlje2-P05v43JC6yFx6q3d69Q0I4LlGGWfUDguGfn-8E8P13UFG4WS5e4Dy0PL6_jj-1xY-RxEq3CXuuuSScMRqL6J_ZEJ5dHY.vlDwbOBEze7LG9_x_6iV-dMSn0dZhDLFzhsYYOdOd4M - pragma: - - no-cache + - Wed, 22 Jun 2022 07:07:18 GMT + odata-version: + - '4.0' request-id: - - 83a8d978-45ae-4155-ae31-80dfa6b59589 + - 459d7a42-bdc2-4172-bc7c-a45081c0c0ea strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-ms-dirapi-data-contract-version: - - '1.6' + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCE"}}' x-ms-resource-unit: - '2' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -345,7 +342,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -355,56 +352,41 @@ interactions: ParameterSetName: - --workspace-name --role --assignee --assignment-id User-Agent: - - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.19.1 - accept-language: - - en-US + - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=displayName%20eq%20%27testsynapsecli%27&api-version=1.6 + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=displayName%20eq%20%27testsynapsecli%27 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"testsynapsecli","appId":"2892a05c-cfc5-40ba-85e8-b25488116b0d","applicationTemplateId":null,"appOwnerTenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"testsynapsecli","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["2892a05c-cfc5-40ba-85e8-b25488116b0d"],"servicePrincipalType":"Application","signInAudience":"AzureADMyOrg","tags":["HideApp","WindowsAzureActiveDirectoryIntegratedApp"],"tokenEncryptionKeyId":null}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"testsynapsecli","appDescription":null,"appId":"2892a05c-cfc5-40ba-85e8-b25488116b0d","applicationTemplateId":null,"appOwnerOrganizationId":"72f988bf-86f1-41af-91ab-2d7cd011db47","appRoleAssignmentRequired":false,"createdDateTime":"2021-04-06T08:59:02Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"testsynapsecli","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["2892a05c-cfc5-40ba-85e8-b25488116b0d"],"servicePrincipalType":"Application","signInAudience":"AzureADMyOrg","tags":["HideApp","WindowsAzureActiveDirectoryIntegratedApp"],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}]}' headers: - access-control-allow-origin: - - '*' cache-control: - no-cache content-length: - - '1272' + - '1344' content-type: - - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 - dataserviceversion: - - 3.0; + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:18 GMT - duration: - - '384068' - expires: - - '-1' - ocp-aad-diagnostics-server-name: - - HmlURCP0hd0bfE8X4kYTdRpT+3Kxnln+WZriJaSjRaU= - ocp-aad-session-key: - - VA8TjHuZxan3301w-71TkonnPK1nraLlf_EUJGV1jHkWsmeyu-bViqiIc3nESl9ta48qpxpfOxb08zfW5pilCkG2H7cslzj5aocFp9YNaotgbQw6jiJ-o6vgSTwAQNzr6pHDzSR5F8TQBMqq6kIjrMfARyq9PXkIYUW-X0cmNIQ.4WuRzNOCghDI6jAbX-UaD9vMXZj-SWHWvfp4WoF8udw - pragma: - - no-cache + - Wed, 22 Jun 2022 07:07:19 GMT + odata-version: + - '4.0' request-id: - - 171b09f8-24f7-4a44-9e1d-70f87c4ef315 + - e700438b-92fd-4cba-b205-ed3fb64efe9f strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-ms-dirapi-data-contract-version: - - '1.6' + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000018C8"}}' x-ms-resource-unit: - '1' - x-powered-by: - - ASP.NET status: code: 200 message: OK - request: body: '{"roleId": "7572bffe-f453-4b66-912a-46cc5ef38fda", "principalId": "829ae9c5-95e5-4e5b-9f8b-eca27e2cb501", - "scope": "workspaces/clitestsynapseworkspace"}' + "scope": "workspaces/bigdataqa211210ws"}' headers: Accept: - application/json, text/json @@ -413,23 +395,23 @@ interactions: Connection: - keep-alive Content-Length: - - '152' + - '146' Content-Type: - application/json User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: - string: '{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace","principalType":"ServicePrincipal"}' + string: '{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"}' headers: content-length: - - '236' + - '230' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:20 GMT + - Wed, 22 Jun 2022 07:07:20 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -447,9 +429,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -457,7 +439,7 @@ interactions: Includes create, read, update and delete access to all published code artifacts.\_ Includes Compute Operator, Linked Data Manager, and Credential User permissions on the workspace system identity credential.\_ Includes granting access.\_ - Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/idw/read\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Linked Data Manager\",\"description\":\"Creation and management of managed private endpoints, linked services, and credentials.\u200B\",\"id\":\"dd665582-e433-40ca-b183-1b1b33e73375\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Contributor\",\"description\":\"Full Synapse access to serverless SQL pools, @@ -465,17 +447,17 @@ interactions: and delete access to all published code artifacts and their outputs, including credentials and linked services.\_ Includes compute operator permissions. Does not include permission to use credentials and run pipelines. Does not - include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact Publisher\",\"description\":\"Create, read, update, and delete access to published code artifacts and their outputs. Does not include permission - to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact User\",\"description\":\"Read access to published code artifacts and their outputs. Can create new artifacts but cannot publish changes or run code without additional permissions.\u200B\",\"id\":\"53faaa0e-40b6-40c8-a2ff-e38f2d388875\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Compute Operator\",\"description\":\"Submit Spark jobs and notebooks and view logs.\_ Includes canceling Spark jobs submitted by any user. Requires additional credential use permissions on the workspace system identity to run pipelines, - view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Credential User\",\"description\":\"Runtime and configuration-time use of secrets within credentials and linked services in activities like pipeline runs. To run pipelines, this role is required, scoped to the workspace system @@ -494,14 +476,18 @@ interactions: pools.\_ Create, read, update, and delete access to published SQL scripts, credentials and linked services.\_ Includes read access to all other published code artifacts.\_ Does not include permission to use credentials and run pipelines. - Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" + Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Monitoring Operator\",\"description\":\"Grants read access to published code, + including logs and outputs for notebooks and pipelines. Includes ability to + list and view details of serverless SQL pools, Apache Spark pools, Data Explorer + pools, and Integration runtimes.\",\"id\":\"8f9b2195-5b12-4a7c-af30-8f1f46197650\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" headers: content-length: - - '13874' + - '15767' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:20 GMT + - Wed, 22 Jun 2022 07:07:21 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -513,7 +499,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -523,50 +509,35 @@ interactions: ParameterSetName: - --workspace-name --role --assignee --item-type --item --assignment-id User-Agent: - - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.19.1 - accept-language: - - en-US + - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/users?$filter=userPrincipalName%20eq%20%27testsynapsecli%27%20or%20mail%20eq%20%27testsynapsecli%27%20or%20displayName%20eq%20%27testsynapsecli%27&api-version=1.6 + uri: https://graph.microsoft.com/v1.0/users?$filter=userPrincipalName%20eq%20%27testsynapsecli%27%20or%20mail%20eq%20%27testsynapsecli%27%20or%20displayName%20eq%20%27testsynapsecli%27 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users","value":[]}' headers: - access-control-allow-origin: - - '*' cache-control: - no-cache content-length: - - '121' + - '80' content-type: - - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 - dataserviceversion: - - 3.0; + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:21 GMT - duration: - - '399526' - expires: - - '-1' - ocp-aad-diagnostics-server-name: - - /pI+VV+txf1gAMU6qEfmWCRcN5xi8TqVVw7wHR1MQ3M= - ocp-aad-session-key: - - v8kWb1P15c6akiqRP0S0TtEos9-1bqfaGudA3pAVaEM4tbktN6X8eTzACQAzb_uT8L8rvS5Img1yZZl7CZQMudhPjwmvWdeo3fXrqbbSjCCKVXOO9F7KpCoNS9QY9oLOYnaAjmdN8pbr879J50qKOAiICSMYAp2o6SBTcgf61Jo.gjNbz4ffnGUHyDGLFKKAKpfVZiW5KmYK4nhgkz-83PI - pragma: - - no-cache + - Wed, 22 Jun 2022 07:07:22 GMT + odata-version: + - '4.0' request-id: - - b35d34a2-5882-451a-9423-8b1c15ac008f + - ec278202-b76b-4434-9d85-f840bd11525b strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-ms-dirapi-data-contract-version: - - '1.6' + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001643"}}' x-ms-resource-unit: - '2' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -574,7 +545,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -584,56 +555,41 @@ interactions: ParameterSetName: - --workspace-name --role --assignee --item-type --item --assignment-id User-Agent: - - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.19.1 - accept-language: - - en-US + - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=displayName%20eq%20%27testsynapsecli%27&api-version=1.6 + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=displayName%20eq%20%27testsynapsecli%27 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"testsynapsecli","appId":"2892a05c-cfc5-40ba-85e8-b25488116b0d","applicationTemplateId":null,"appOwnerTenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"testsynapsecli","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["2892a05c-cfc5-40ba-85e8-b25488116b0d"],"servicePrincipalType":"Application","signInAudience":"AzureADMyOrg","tags":["HideApp","WindowsAzureActiveDirectoryIntegratedApp"],"tokenEncryptionKeyId":null}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"testsynapsecli","appDescription":null,"appId":"2892a05c-cfc5-40ba-85e8-b25488116b0d","applicationTemplateId":null,"appOwnerOrganizationId":"72f988bf-86f1-41af-91ab-2d7cd011db47","appRoleAssignmentRequired":false,"createdDateTime":"2021-04-06T08:59:02Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"testsynapsecli","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["2892a05c-cfc5-40ba-85e8-b25488116b0d"],"servicePrincipalType":"Application","signInAudience":"AzureADMyOrg","tags":["HideApp","WindowsAzureActiveDirectoryIntegratedApp"],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}]}' headers: - access-control-allow-origin: - - '*' cache-control: - no-cache content-length: - - '1272' + - '1344' content-type: - - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 - dataserviceversion: - - 3.0; + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:23 GMT - duration: - - '411008' - expires: - - '-1' - ocp-aad-diagnostics-server-name: - - 32nbQkfBCJ6nGVZl34q0Ikv/IU1IXH9AncOJAv2FPQc= - ocp-aad-session-key: - - 1rItlAlvgqDYngkD8b1z135PchMn4oUFGkOc2enI794qGk-X3Nl3Y9f8CJfzsa8obs7r8xg6ydzxnkDpMwG2X6hoIgFKWKCUWflWqsGjOHSGGGfyv5KlIV05RotYz1NFZcObDcPQYFwa_gnWOUMxWVrqSkociKIT1vz8OyPuy9U.j7hEmnQvBUkr4zDVDIx4L8Uk7-axyHerRNH_Sfe3dfI - pragma: - - no-cache + - Wed, 22 Jun 2022 07:07:22 GMT + odata-version: + - '4.0' request-id: - - d5ed9abd-bc89-4fa7-b5a8-8e937553e01c + - f5340a1a-3f7c-4971-bcdb-bc66beed814a strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-ms-dirapi-data-contract-version: - - '1.6' + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D4"}}' x-ms-resource-unit: - '1' - x-powered-by: - - ASP.NET status: code: 200 message: OK - request: body: '{"roleId": "7572bffe-f453-4b66-912a-46cc5ef38fda", "principalId": "829ae9c5-95e5-4e5b-9f8b-eca27e2cb501", - "scope": "workspaces/clitestsynapseworkspace/bigDataPools/testitem"}' + "scope": "workspaces/bigdataqa211210ws/bigDataPools/test"}' headers: Accept: - application/json, text/json @@ -642,23 +598,23 @@ interactions: Connection: - keep-alive Content-Length: - - '174' + - '164' Content-Type: - application/json User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleAssignments/0333e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0333e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: - string: '{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace/bigDataPools/testitem","principalType":"ServicePrincipal"}' + string: '{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}' headers: content-length: - - '258' + - '248' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:25 GMT + - Wed, 22 Jun 2022 07:07:24 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -676,19 +632,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: - string: '{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace","principalType":"ServicePrincipal"}' + string: '{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"}' headers: content-length: - - '236' + - '230' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:26 GMT + - Wed, 22 Jun 2022 07:07:25 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -706,9 +662,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -716,7 +672,7 @@ interactions: Includes create, read, update and delete access to all published code artifacts.\_ Includes Compute Operator, Linked Data Manager, and Credential User permissions on the workspace system identity credential.\_ Includes granting access.\_ - Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/idw/read\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Azure permissions are required to create, delete, or manage compute resources.\u200B\",\"id\":\"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/roleAssignments/write\",\"Microsoft.Synapse/workspaces/roleAssignments/delete\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/linkedServices/useSecret/action\",\"Microsoft.Synapse/workspaces/credentials/useSecret/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\",\"workspaces/{workspaceName}/linkedServices/{linkedServiceName}\",\"workspaces/{workspaceName}/credentials/{credentialName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Linked Data Manager\",\"description\":\"Creation and management of managed private endpoints, linked services, and credentials.\u200B\",\"id\":\"dd665582-e433-40ca-b183-1b1b33e73375\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/write\",\"Microsoft.Synapse/workspaces/managedPrivateEndpoints/delete\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Contributor\",\"description\":\"Full Synapse access to serverless SQL pools, @@ -724,17 +680,17 @@ interactions: and delete access to all published code artifacts and their outputs, including credentials and linked services.\_ Includes compute operator permissions. Does not include permission to use credentials and run pipelines. Does not - include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + include granting access.\u200B\",\"id\":\"7572bffe-f453-4b66-912a-46cc5ef38fda\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/write\",\"Microsoft.Synapse/workspaces/linkConnections/delete\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact Publisher\",\"description\":\"Create, read, update, and delete access to published code artifacts and their outputs. Does not include permission - to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + to run code or pipelines, or to grant access.\_\u200B\",\"id\":\"05930f57-09a3-4c0d-9fa9-6d1eb91c178b\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/write\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/write\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/write\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/dataFlows/write\",\"Microsoft.Synapse/workspaces/pipelines/write\",\"Microsoft.Synapse/workspaces/triggers/write\",\"Microsoft.Synapse/workspaces/datasets/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/notebooks/delete\",\"Microsoft.Synapse/workspaces/sparkJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/scopeJobDefinitions/delete\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/dataFlows/delete\",\"Microsoft.Synapse/workspaces/pipelines/delete\",\"Microsoft.Synapse/workspaces/triggers/delete\",\"Microsoft.Synapse/workspaces/datasets/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/libraries/delete\",\"Microsoft.Synapse/workspaces/libraries/write\",\"Microsoft.Synapse/workspaces/kqlScripts/write\",\"Microsoft.Synapse/workspaces/kqlScripts/delete\",\"Microsoft.Synapse/workspaces/sparkConfigurations/write\",\"Microsoft.Synapse/workspaces/sparkConfigurations/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Artifact User\",\"description\":\"Read access to published code artifacts and their outputs. Can create new artifacts but cannot publish changes or run code without additional permissions.\u200B\",\"id\":\"53faaa0e-40b6-40c8-a2ff-e38f2d388875\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Compute Operator\",\"description\":\"Submit Spark jobs and notebooks and view logs.\_ Includes canceling Spark jobs submitted by any user. Requires additional credential use permissions on the workspace system identity to run pipelines, - view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + view pipeline runs and outputs.\u200B\",\"id\":\"e3844cc7-4670-42cb-9349-9bdac1ee7881\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/bigDataPools/useCompute/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\",\"Microsoft.Synapse/workspaces/scopePools/useCompute/action\",\"Microsoft.Synapse/workspaces/scopePools/viewLogs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/useCompute/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/cancelPipelineRun/action\",\"Microsoft.Synapse/workspaces/linkConnections/read\",\"Microsoft.Synapse/workspaces/linkConnections/useCompute/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\",\"workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}\",\"workspaces/{workspaceName}/scopePools/{scopePoolName}\",\"workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse Credential User\",\"description\":\"Runtime and configuration-time use of secrets within credentials and linked services in activities like pipeline runs. To run pipelines, this role is required, scoped to the workspace system @@ -753,14 +709,18 @@ interactions: pools.\_ Create, read, update, and delete access to published SQL scripts, credentials and linked services.\_ Includes read access to all other published code artifacts.\_ Does not include permission to use credentials and run pipelines. - Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" + Does not include granting access.\",\"id\":\"7af0c69a-a548-47d6-aea3-d00e69bd83aa\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/sqlScripts/write\",\"Microsoft.Synapse/workspaces/linkedServices/write\",\"Microsoft.Synapse/workspaces/credentials/write\",\"Microsoft.Synapse/workspaces/sqlScripts/delete\",\"Microsoft.Synapse/workspaces/linkedServices/delete\",\"Microsoft.Synapse/workspaces/credentials/delete\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"},{\"name\":\"Synapse + Monitoring Operator\",\"description\":\"Grants read access to published code, + including logs and outputs for notebooks and pipelines. Includes ability to + list and view details of serverless SQL pools, Apache Spark pools, Data Explorer + pools, and Integration runtimes.\",\"id\":\"8f9b2195-5b12-4a7c-af30-8f1f46197650\",\"isBuiltIn\":true,\"permissions\":[{\"actions\":[],\"notActions\":[],\"dataActions\":[\"Microsoft.Synapse/workspaces/read\",\"Microsoft.Synapse/workspaces/artifacts/read\",\"Microsoft.Synapse/workspaces/notebooks/viewOutputs/action\",\"Microsoft.Synapse/workspaces/pipelines/viewOutputs/action\",\"Microsoft.Synapse/workspaces/integrationRuntimes/viewLogs/action\",\"Microsoft.Synapse/workspaces/bigDataPools/viewLogs/action\"],\"notDataActions\":[]}],\"scopes\":[\"workspaces/{workspaceName}\"],\"availabilityStatus\":\"Available\"}]" headers: content-length: - - '13874' + - '15767' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:27 GMT + - Wed, 22 Jun 2022 07:07:25 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -778,19 +738,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + x-ms-continuation: + - '' method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&roleId=7572bffe-f453-4b66-912a-46cc5ef38fda&scope=workspaces%2Fclitestsynapseworkspace%2FbigDataPools%2Ftestitem + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&roleId=7572bffe-f453-4b66-912a-46cc5ef38fda&scope=workspaces%2Fbigdataqa211210ws%2FbigDataPools%2Ftest response: body: - string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace/bigDataPools/testitem","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - - '517' + - '501' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:28 GMT + - Wed, 22 Jun 2022 07:07:26 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -804,7 +766,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -814,50 +776,35 @@ interactions: ParameterSetName: - --workspace-name --assignee User-Agent: - - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.19.1 - accept-language: - - en-US + - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/users?$filter=userPrincipalName%20eq%20%27testsynapsecli%27%20or%20mail%20eq%20%27testsynapsecli%27%20or%20displayName%20eq%20%27testsynapsecli%27&api-version=1.6 + uri: https://graph.microsoft.com/v1.0/users?$filter=userPrincipalName%20eq%20%27testsynapsecli%27%20or%20mail%20eq%20%27testsynapsecli%27%20or%20displayName%20eq%20%27testsynapsecli%27 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users","value":[]}' headers: - access-control-allow-origin: - - '*' cache-control: - no-cache content-length: - - '121' + - '80' content-type: - - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 - dataserviceversion: - - 3.0; + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:28 GMT - duration: - - '297387' - expires: - - '-1' - ocp-aad-diagnostics-server-name: - - whfiGy3GprkCoOpu5w7NkcspW3omDTOlysFQ3LdPX+0= - ocp-aad-session-key: - - su-bnrd01H09Rc9OtwUeOKnxe1p6sYgNbPa2z2NATdqb41GZXic0Of3Jr9O-RBh3SkT21RXcFoRIu0iW-pTw8waKOqvRZMMzRIs3E-ih27zW3ENV6Mkpbu0PldCCfwYlcCHagX0gFOSoET1xAQ20yzPhTdwP3x_0wB7ZENGX6FI.qbu95UCo4ZXaHgZE8eGKYgOFory2NICfa4SHI2zdjoo - pragma: - - no-cache + - Wed, 22 Jun 2022 07:07:27 GMT + odata-version: + - '4.0' request-id: - - c8f6901b-79c8-479e-88b9-1d3f3d84ad00 + - 55415575-2ed0-45f8-8550-7c9deb3cd8c7 strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-ms-dirapi-data-contract-version: - - '1.6' + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1D"}}' x-ms-resource-unit: - '2' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -865,7 +812,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -875,50 +822,35 @@ interactions: ParameterSetName: - --workspace-name --assignee User-Agent: - - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.19.1 - accept-language: - - en-US + - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=displayName%20eq%20%27testsynapsecli%27&api-version=1.6 + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=displayName%20eq%20%27testsynapsecli%27 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"testsynapsecli","appId":"2892a05c-cfc5-40ba-85e8-b25488116b0d","applicationTemplateId":null,"appOwnerTenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"testsynapsecli","errorUrl":null,"homepage":null,"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"keyCredentials":[],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":"Microsoft","replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["2892a05c-cfc5-40ba-85e8-b25488116b0d"],"servicePrincipalType":"Application","signInAudience":"AzureADMyOrg","tags":["HideApp","WindowsAzureActiveDirectoryIntegratedApp"],"tokenEncryptionKeyId":null}]}' + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"testsynapsecli","appDescription":null,"appId":"2892a05c-cfc5-40ba-85e8-b25488116b0d","applicationTemplateId":null,"appOwnerOrganizationId":"72f988bf-86f1-41af-91ab-2d7cd011db47","appRoleAssignmentRequired":false,"createdDateTime":"2021-04-06T08:59:02Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"testsynapsecli","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["2892a05c-cfc5-40ba-85e8-b25488116b0d"],"servicePrincipalType":"Application","signInAudience":"AzureADMyOrg","tags":["HideApp","WindowsAzureActiveDirectoryIntegratedApp"],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[]}]}' headers: - access-control-allow-origin: - - '*' cache-control: - no-cache content-length: - - '1272' + - '1344' content-type: - - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 - dataserviceversion: - - 3.0; + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:29 GMT - duration: - - '403079' - expires: - - '-1' - ocp-aad-diagnostics-server-name: - - R+h3oiDQnAMn8vQuRd3MPeUQgDB8CYEF0ZdTbM/gyVo= - ocp-aad-session-key: - - f12pFChCJqpoa4pYPrnuI-MuZ8xnOmmnL_m-6wotoh-J0q8WNUXm2ZfamEguqIjBS53j7e9aL6kveTmrfD4YdeqcbQadUomrTSOBjnX0wSl9ioRVDU7B6DoUHArTM1sm_hCQQj3dUS66EWMMr3j31YUi00sZ0RevPAHMYcOpMys.Ky7N_1HguPZWylPqFmZP8uaqDMUCLGJUQs1249uOers - pragma: - - no-cache + - Wed, 22 Jun 2022 07:07:28 GMT + odata-version: + - '4.0' request-id: - - 17a3fbca-3fe5-458a-b191-eb49cb39c6a9 + - 9e1daea4-8fa1-4651-807e-1dbdd447120a strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-ms-dirapi-data-contract-version: - - '1.6' + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D3"}}' x-ms-resource-unit: - '1' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -932,19 +864,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + x-ms-continuation: + - '' method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 response: body: - string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace/bigDataPools/testitem","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - - '517' + - '501' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:30 GMT + - Wed, 22 Jun 2022 07:07:29 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -964,19 +898,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + x-ms-continuation: + - '' method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 response: body: - string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace/bigDataPools/testitem","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - - '517' + - '501' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:31 GMT + - Wed, 22 Jun 2022 07:07:30 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -996,19 +932,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + x-ms-continuation: + - '' method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview response: body: - string: '{"count":4,"value":[{"id":"5381931d-afcb-4105-9e88-f8d93333da56","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"6ae2ff4b-4939-4952-a097-d234aad383a3","scope":"workspaces/clitestsynapseworkspace","principalType":"User"},{"id":"6e673719-eeb8-48e5-ab9d-3b8a2f5b314e","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"32625750-0c5d-4fcf-b813-9e27564a2b82","scope":"workspaces/clitestsynapseworkspace","principalType":"ServicePrincipal"},{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitestsynapseworkspace/bigDataPools/testitem","principalType":"ServicePrincipal"}]}' + string: '{"count":9,"value":[{"id":"bcf4216e-01ed-4000-9868-4eb74a909782","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"4ef5b77d-0539-4dcc-9e7c-dd798ccf6b47","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"86c980ff-eb89-4ab3-bcfc-985080c127aa","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"a869132d-cc90-4e78-8209-fc2af1a77008","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"2be670f8-12f1-4b01-bcfb-23f80e0e0f85","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"b3f7a640-8d13-4b12-866b-0c3e109fd5a2","scope":"workspaces/bigdataqa211210ws","principalType":"Group"},{"id":"aaee8f74-8548-46c0-abd1-7c225b946bbd","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"7f21f55c-7971-4e88-9ca1-1e5e86591d83","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"6b0f2995-abeb-48d0-b51d-f4ac29f8a9a4","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"f63e7747-5fce-43a9-bd12-fb382caa5b7e","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"274bfb73-8c26-4954-897f-89fde7ec407b","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"e2af296c-0509-4653-8851-1dd19e5d951e","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"9a2562c1-73ef-4225-96c2-fc78c62e3a41","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"ed3c5c21-4f5d-4476-b9f6-f0c4bb404e1a","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - - '979' + - '2047' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:32 GMT + - Wed, 22 Jun 2022 07:07:31 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1030,9 +968,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: string: '' @@ -1040,7 +978,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 09:08:33 GMT + - Wed, 22 Jun 2022 07:07:32 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1058,9 +996,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-synapse/0.5.0 Python/3.8.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitestsynapseworkspace.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: string: '{"error":{"code":"RoleAssignmentNotFound","message":"RoleAssignmentNotFound"}}' @@ -1070,7 +1008,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 09:08:35 GMT + - Wed, 22 Jun 2022 07:07:33 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py index 78576eba33c..749dfa3e2ac 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py @@ -2172,13 +2172,13 @@ def test_spark_session_and_statements(self, resource_group): @record_only() def test_access_control(self): self.kwargs.update({ - 'workspace': 'clitestsynapseworkspace', + 'workspace': 'bigdataqa211210ws', 'role': 'Synapse Contributor', 'userPrincipal': 'username@contoso.com', 'servicePrincipal': 'testsynapsecli', 'scopeName': 'workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}', 'itemType': 'bigDataPools', - 'item': 'testitem'}) + 'item': 'test'}) self.cmd( 'az synapse role scope list --workspace-name {workspace} ', From c2cb2a09cebdfc2c12133ed98b7f2556ebe78281 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Tue, 5 Jul 2022 11:31:16 +0800 Subject: [PATCH 2/7] fix comment --- .../manual/operations/accesscontrol.py | 2 +- .../recordings/test_access_control.yaml | 100 +++++++++--------- .../tests/latest/test_synapse_scenario.py | 7 +- 3 files changed, 54 insertions(+), 55 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py index 7a8a1d93195..e077df72c67 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py @@ -6,7 +6,7 @@ from knack.util import CLIError from azure.cli.core.azclierror import InvalidArgumentValueError, ArgumentUsageError from azure.cli.core.util import is_guid -from azure.cli.command_modules.role._msgrpah import GraphError +from azure.cli.command_modules.role import GraphError from msrestazure.azure_exceptions import CloudError from .._client_factory import cf_synapse_role_assignments, cf_synapse_role_definitions, cf_graph_client_factory from ..constant import ITEM_NAME_MAPPING diff --git a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml index f836cecd6bd..5d6a0ad7474 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml +++ b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml @@ -21,7 +21,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:15 GMT + - Tue, 05 Jul 2022 03:26:16 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -97,7 +97,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:15 GMT + - Tue, 05 Jul 2022 03:26:17 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -173,7 +173,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:16 GMT + - Tue, 05 Jul 2022 03:26:18 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -208,7 +208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:17 GMT + - Tue, 05 Jul 2022 03:26:18 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -284,7 +284,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:18 GMT + - Tue, 05 Jul 2022 03:26:19 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -304,7 +304,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --workspace-name --role --assignee --assignment-id + - --workspace-name --role --assignee User-Agent: - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET @@ -320,11 +320,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:18 GMT + - Tue, 05 Jul 2022 03:26:21 GMT odata-version: - '4.0' request-id: - - 459d7a42-bdc2-4172-bc7c-a45081c0c0ea + - d68bba26-1bd1-4efe-be8a-e002dc5ab98e strict-transport-security: - max-age=31536000 transfer-encoding: @@ -332,7 +332,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCE"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00007865"}}' x-ms-resource-unit: - '2' status: @@ -350,7 +350,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --workspace-name --role --assignee --assignment-id + - --workspace-name --role --assignee User-Agent: - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET @@ -366,11 +366,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:19 GMT + - Tue, 05 Jul 2022 03:26:21 GMT odata-version: - '4.0' request-id: - - e700438b-92fd-4cba-b205-ed3fb64efe9f + - b23a758a-31f5-4915-b596-d14c9f521862 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -378,7 +378,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000018C8"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A4A"}}' x-ms-resource-unit: - '1' status: @@ -401,17 +401,17 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/bb01c077-9397-48d2-9751-59a32496b349?api-version=2020-08-01-preview response: body: - string: '{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"}' + string: '{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"}' headers: content-length: - '230' content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:20 GMT + - Tue, 05 Jul 2022 03:26:23 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -487,7 +487,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:21 GMT + - Tue, 05 Jul 2022 03:26:23 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -507,7 +507,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --workspace-name --role --assignee --item-type --item --assignment-id + - --workspace-name --role --assignee --item-type --item User-Agent: - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET @@ -523,11 +523,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:22 GMT + - Tue, 05 Jul 2022 03:26:24 GMT odata-version: - '4.0' request-id: - - ec278202-b76b-4434-9d85-f840bd11525b + - b8cbccb6-cb9b-4a99-8bb8-04eb67c5b235 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -535,7 +535,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001643"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C25"}}' x-ms-resource-unit: - '2' status: @@ -553,7 +553,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --workspace-name --role --assignee --item-type --item --assignment-id + - --workspace-name --role --assignee --item-type --item User-Agent: - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET @@ -569,11 +569,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:22 GMT + - Tue, 05 Jul 2022 03:26:25 GMT odata-version: - '4.0' request-id: - - f5340a1a-3f7c-4971-bcdb-bc66beed814a + - e70b8794-b00b-49b3-952d-0c4f1645db91 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -581,7 +581,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D4"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C25"}}' x-ms-resource-unit: - '1' status: @@ -604,17 +604,17 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0333e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b?api-version=2020-08-01-preview response: body: - string: '{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}' + string: '{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}' headers: content-length: - '248' content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:24 GMT + - Tue, 05 Jul 2022 03:26:27 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -634,17 +634,17 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/bb01c077-9397-48d2-9751-59a32496b349?api-version=2020-08-01-preview response: body: - string: '{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"}' + string: '{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"}' headers: content-length: - '230' content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:25 GMT + - Tue, 05 Jul 2022 03:26:27 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -720,7 +720,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:25 GMT + - Tue, 05 Jul 2022 03:26:28 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -745,14 +745,14 @@ interactions: uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&roleId=7572bffe-f453-4b66-912a-46cc5ef38fda&scope=workspaces%2Fbigdataqa211210ws%2FbigDataPools%2Ftest response: body: - string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - '501' content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:26 GMT + - Tue, 05 Jul 2022 03:26:29 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -790,11 +790,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:27 GMT + - Tue, 05 Jul 2022 03:26:29 GMT odata-version: - '4.0' request-id: - - 55415575-2ed0-45f8-8550-7c9deb3cd8c7 + - 154d469b-b87b-435a-9c2a-fae050176173 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -802,7 +802,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00001E1D"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A2F"}}' x-ms-resource-unit: - '2' status: @@ -836,11 +836,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:28 GMT + - Tue, 05 Jul 2022 03:26:30 GMT odata-version: - '4.0' request-id: - - 9e1daea4-8fa1-4651-807e-1dbdd447120a + - 5d1b5660-c253-4394-8227-a1499c057e9f strict-transport-security: - max-age=31536000 transfer-encoding: @@ -848,7 +848,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF000022D3"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A45"}}' x-ms-resource-unit: - '1' status: @@ -871,14 +871,14 @@ interactions: uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 response: body: - string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - '501' content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:29 GMT + - Tue, 05 Jul 2022 03:26:32 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -905,14 +905,14 @@ interactions: uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 response: body: - string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - '501' content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:30 GMT + - Tue, 05 Jul 2022 03:26:32 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -939,14 +939,14 @@ interactions: uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview response: body: - string: '{"count":9,"value":[{"id":"bcf4216e-01ed-4000-9868-4eb74a909782","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"4ef5b77d-0539-4dcc-9e7c-dd798ccf6b47","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"86c980ff-eb89-4ab3-bcfc-985080c127aa","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"a869132d-cc90-4e78-8209-fc2af1a77008","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"2be670f8-12f1-4b01-bcfb-23f80e0e0f85","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"b3f7a640-8d13-4b12-866b-0c3e109fd5a2","scope":"workspaces/bigdataqa211210ws","principalType":"Group"},{"id":"aaee8f74-8548-46c0-abd1-7c225b946bbd","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"7f21f55c-7971-4e88-9ca1-1e5e86591d83","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"6b0f2995-abeb-48d0-b51d-f4ac29f8a9a4","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"f63e7747-5fce-43a9-bd12-fb382caa5b7e","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"274bfb73-8c26-4954-897f-89fde7ec407b","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"e2af296c-0509-4653-8851-1dd19e5d951e","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"9a2562c1-73ef-4225-96c2-fc78c62e3a41","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"ed3c5c21-4f5d-4476-b9f6-f0c4bb404e1a","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":9,"value":[{"id":"bcf4216e-01ed-4000-9868-4eb74a909782","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"4ef5b77d-0539-4dcc-9e7c-dd798ccf6b47","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"86c980ff-eb89-4ab3-bcfc-985080c127aa","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"a869132d-cc90-4e78-8209-fc2af1a77008","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"2be670f8-12f1-4b01-bcfb-23f80e0e0f85","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"b3f7a640-8d13-4b12-866b-0c3e109fd5a2","scope":"workspaces/bigdataqa211210ws","principalType":"Group"},{"id":"aaee8f74-8548-46c0-abd1-7c225b946bbd","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"7f21f55c-7971-4e88-9ca1-1e5e86591d83","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"6b0f2995-abeb-48d0-b51d-f4ac29f8a9a4","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"f63e7747-5fce-43a9-bd12-fb382caa5b7e","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"274bfb73-8c26-4954-897f-89fde7ec407b","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"e2af296c-0509-4653-8851-1dd19e5d951e","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"9a2562c1-73ef-4225-96c2-fc78c62e3a41","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"ed3c5c21-4f5d-4476-b9f6-f0c4bb404e1a","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - '2047' content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:31 GMT + - Tue, 05 Jul 2022 03:26:34 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -970,7 +970,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/bb01c077-9397-48d2-9751-59a32496b349?api-version=2020-08-01-preview response: body: string: '' @@ -978,7 +978,7 @@ interactions: content-length: - '0' date: - - Wed, 22 Jun 2022 07:07:32 GMT + - Tue, 05 Jul 2022 03:26:35 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -998,7 +998,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview + uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/bb01c077-9397-48d2-9751-59a32496b349?api-version=2020-08-01-preview response: body: string: '{"error":{"code":"RoleAssignmentNotFound","message":"RoleAssignmentNotFound"}}' @@ -1008,7 +1008,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 22 Jun 2022 07:07:33 GMT + - Tue, 05 Jul 2022 03:26:36 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py index 749dfa3e2ac..a3c07caaacd 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py @@ -2195,7 +2195,7 @@ def test_access_control(self): # get role definition role_definition_get = self.cmd( - 'az synapse role definition show --workspace-name {workspace} --role "{role}" ', + 'az synapse role definition show --workspace-name {workspace} --role "{role}"', checks=[ self.check('name', self.kwargs['role']) ]).get_output_in_json() @@ -2205,7 +2205,7 @@ def test_access_control(self): # create role assignment role_assignment_create = self.cmd( 'az synapse role assignment create --workspace-name {workspace} --role "{role}" ' - '--assignee {servicePrincipal} --assignment-id 0550e787-7841-4669-9ac8-a8176e900002', + '--assignee {servicePrincipal}', checks=[ self.check('roleDefinitionId', self.kwargs['roleId']) ]).get_output_in_json() @@ -2216,8 +2216,7 @@ def test_access_control(self): # create role assignment at scope self.cmd( 'az synapse role assignment create --workspace-name {workspace} --role "{role}" ' - '--assignee {servicePrincipal} --item-type {itemType} --item {item} ' - '--assignment-id 0333e787-7841-4669-9ac8-a8176e900002', + '--assignee {servicePrincipal} --item-type {itemType} --item {item}', checks=[ self.check('roleDefinitionId', self.kwargs['roleId']), self.check('scope', 'workspaces/{workspace}/{itemType}/{item}') From a99506edc09788242982a635cd87b57e40a97aa2 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Wed, 6 Jul 2022 15:36:19 +0800 Subject: [PATCH 3/7] fix test issue --- .../recordings/test_access_control.yaml | 905 ++++++++++++++++-- .../tests/latest/test_synapse_scenario.py | 28 +- 2 files changed, 863 insertions(+), 70 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml index 5d6a0ad7474..92af112b8d6 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml +++ b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml @@ -1,4 +1,773 @@ interactions: +- request: + body: '{"location": "eastus", "identity": {"type": "SystemAssigned"}, "properties": + {"defaultDataLakeStorage": {"accountUrl": "https://adlsgen2000002.dfs.core.windows.net", + "filesystem": "testfilesystem"}, "sqlAdministratorLoginPassword": "Pswd1000004", + "sqlAdministratorLogin": "cliuser1"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + Content-Length: + - '284' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003?api-version=2021-06-01 + response: + body: + string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Provisioning","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-4efac68a-002b-40f2-8c71-46d2839fc459","privateEndpointConnections":[],"workspaceUID":"3a52582e-b9e8-4605-b8b9-3ac892b5ba85","extraProperties":{"WorkspaceType":"Normal"},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"a174e125-be1d-461e-a4df-9654c15697ac"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '1393' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:13:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:14:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:14:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:15:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:15:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:16:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003?api-version=2021-06-01 + response: + body: + string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-4efac68a-002b-40f2-8c71-46d2839fc459","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"3a52582e-b9e8-4605-b8b9-3ac892b5ba85","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"a174e125-be1d-461e-a4df-9654c15697ac"}}' + headers: + cache-control: + - no-cache + content-length: + - '1448' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:16:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"endIpAddress": "255.255.255.255", "startIpAddress": "0.0.0.0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace firewall-rule create + Connection: + - keep-alive + Content-Length: + - '80' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --workspace-name --start-ip-address --end-ip-address + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/firewallRules/allowAll?api-version=2021-06-01 + response: + body: + string: '{"properties":{"provisioningState":"Provisioning","startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/firewallRules/allowAll","name":"allowAll","type":"Microsoft.Synapse/workspaces/firewallRules"}' + headers: + access-control-allow-headers: + - Location + access-control-expose-headers: + - Location + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/6f965d69-0466-4dc6-9375-8e9279aa926e?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '349' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:16:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/6f965d69-0466-4dc6-9375-8e9279aa926e?api-version=2021-06-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace firewall-rule create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --workspace-name --start-ip-address --end-ip-address + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/6f965d69-0466-4dc6-9375-8e9279aa926e?api-version=2021-06-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:16:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace firewall-rule create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --workspace-name --start-ip-address --end-ip-address + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/6f965d69-0466-4dc6-9375-8e9279aa926e?api-version=2021-06-01 + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/firewallRules/allowAll","name":"allowAll","type":"Microsoft.Synapse/workspaces/firewallRules"}' + headers: + cache-control: + - no-cache + content-length: + - '346' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:16:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse spark pool create + Connection: + - keep-alive + ParameterSetName: + - --name --spark-version --workspace --resource-group --node-count --node-size + --spark-config-file-path + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003?api-version=2021-06-01 + response: + body: + string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-4efac68a-002b-40f2-8c71-46d2839fc459","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"3a52582e-b9e8-4605-b8b9-3ac892b5ba85","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"a174e125-be1d-461e-a4df-9654c15697ac"}}' + headers: + cache-control: + - no-cache + content-length: + - '1448' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:17:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "properties": {"autoScale": {}, "autoPause": {}, + "sparkEventsFolder": "/events", "nodeCount": 3, "sparkConfigProperties": {"content": + "spark.executor.memory 4g\nspark.executor.cores 2\nspark.executor.instances + 3\nspark.rpc.message.maxsize 256\nspark.driver.maxResultSize 8g", "filename": + "sparkconfigfile"}, "sparkVersion": "2.4", "nodeSize": "Medium", "nodeSizeFamily": + "MemoryOptimized"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse spark pool create + Connection: + - keep-alive + Content-Length: + - '413' + Content-Type: + - application/json + ParameterSetName: + - --name --spark-version --workspace --resource-group --node-count --node-size + --spark-config-file-path + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test?api-version=2021-06-01-preview&force=false + response: + body: + string: '{"properties":{"creationDate":"2022-07-06T07:17:16.8666667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory + 4g\nspark.executor.cores 2\nspark.executor.instances 3\nspark.rpc.message.maxsize + 256\nspark.driver.maxResultSize 8g","time":"2022-07-06T07:17:16.7616597Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"isAutotuneEnabled":false,"provisioningState":"Provisioning"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' + headers: + access-control-allow-headers: + - Location + access-control-expose-headers: + - Location + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview + cache-control: + - no-cache + content-length: + - '975' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:17:16 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse spark pool create + Connection: + - keep-alive + ParameterSetName: + - --name --spark-version --workspace --resource-group --node-count --node-size + --spark-config-file-path + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:17:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse spark pool create + Connection: + - keep-alive + ParameterSetName: + - --name --spark-version --workspace --resource-group --node-count --node-size + --spark-config-file-path + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:18:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse spark pool create + Connection: + - keep-alive + ParameterSetName: + - --name --spark-version --workspace --resource-group --node-count --node-size + --spark-config-file-path + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:18:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse spark pool create + Connection: + - keep-alive + ParameterSetName: + - --name --spark-version --workspace --resource-group --node-count --node-size + --spark-config-file-path + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test?api-version=2021-06-01-preview&force=false + response: + body: + string: '{"properties":{"creationDate":"2022-07-06T07:17:16.8666667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory + 4g\nspark.executor.cores 2\nspark.executor.instances 3\nspark.rpc.message.maxsize + 256\nspark.driver.maxResultSize 8g","time":"2022-07-06T07:17:16.7616597Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"lastSucceededTimestamp":"2022-07-06T07:18:18.6066667Z","isAutotuneEnabled":false,"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' + headers: + cache-control: + - no-cache + content-length: + - '1028' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Jul 2022 07:18:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: @@ -11,7 +780,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/rbacScopes?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/rbacScopes?api-version=2020-08-01-preview response: body: string: '["workspaces/{workspaceName}","workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}","workspaces/{workspaceName}/scopePools/{scopePoolName}","workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}","workspaces/{workspaceName}/credentials/{credentialName}","workspaces/{workspaceName}/linkedServices/{linkedServiceName}"]' @@ -21,7 +790,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:16 GMT + - Wed, 06 Jul 2022 07:18:51 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -41,7 +810,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -97,7 +866,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:17 GMT + - Wed, 06 Jul 2022 07:18:52 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -117,7 +886,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -173,7 +942,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:18 GMT + - Wed, 06 Jul 2022 07:18:53 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -193,7 +962,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions/7572bffe-f453-4b66-912a-46cc5ef38fda?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleDefinitions/7572bffe-f453-4b66-912a-46cc5ef38fda?api-version=2020-08-01-preview response: body: string: "{\"name\":\"Synapse Contributor\",\"description\":\"Full Synapse access @@ -208,7 +977,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:18 GMT + - Wed, 06 Jul 2022 07:18:54 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -228,7 +997,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -284,7 +1053,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:19 GMT + - Wed, 06 Jul 2022 07:18:56 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -320,11 +1089,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:21 GMT + - Wed, 06 Jul 2022 07:18:58 GMT odata-version: - '4.0' request-id: - - d68bba26-1bd1-4efe-be8a-e002dc5ab98e + - c9fd19ab-0579-4e3f-a0be-50e17b49a883 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -332,7 +1101,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00007865"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF0000812E"}}' x-ms-resource-unit: - '2' status: @@ -366,11 +1135,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:21 GMT + - Wed, 06 Jul 2022 07:18:59 GMT odata-version: - '4.0' request-id: - - b23a758a-31f5-4915-b596-d14c9f521862 + - 4f6a10e9-b278-40c5-9178-07fab6778b89 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -378,7 +1147,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A4A"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF0000812E"}}' x-ms-resource-unit: - '1' status: @@ -386,7 +1155,7 @@ interactions: message: OK - request: body: '{"roleId": "7572bffe-f453-4b66-912a-46cc5ef38fda", "principalId": "829ae9c5-95e5-4e5b-9f8b-eca27e2cb501", - "scope": "workspaces/bigdataqa211210ws"}' + "scope": "workspaces/clitest000003"}' headers: Accept: - application/json, text/json @@ -395,23 +1164,23 @@ interactions: Connection: - keep-alive Content-Length: - - '146' + - '142' Content-Type: - application/json User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/bb01c077-9397-48d2-9751-59a32496b349?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/3675b395-c727-410b-b4f8-5c932ebfdd8b?api-version=2020-08-01-preview response: body: - string: '{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"}' + string: '{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"}' headers: content-length: - - '230' + - '226' content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:23 GMT + - Wed, 06 Jul 2022 07:19:01 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -431,7 +1200,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -487,7 +1256,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:23 GMT + - Wed, 06 Jul 2022 07:19:02 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -523,11 +1292,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:24 GMT + - Wed, 06 Jul 2022 07:19:03 GMT odata-version: - '4.0' request-id: - - b8cbccb6-cb9b-4a99-8bb8-04eb67c5b235 + - 61166281-6f86-4b36-be23-c865665aaf31 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -535,7 +1304,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C25"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C22"}}' x-ms-resource-unit: - '2' status: @@ -569,11 +1338,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:25 GMT + - Wed, 06 Jul 2022 07:19:04 GMT odata-version: - '4.0' request-id: - - e70b8794-b00b-49b3-952d-0c4f1645db91 + - 8238b8eb-3f7c-4a5e-890f-8529e38118ba strict-transport-security: - max-age=31536000 transfer-encoding: @@ -581,7 +1350,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C25"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C30"}}' x-ms-resource-unit: - '1' status: @@ -589,7 +1358,7 @@ interactions: message: OK - request: body: '{"roleId": "7572bffe-f453-4b66-912a-46cc5ef38fda", "principalId": "829ae9c5-95e5-4e5b-9f8b-eca27e2cb501", - "scope": "workspaces/bigdataqa211210ws/bigDataPools/test"}' + "scope": "workspaces/clitest000003/bigDataPools/test"}' headers: Accept: - application/json, text/json @@ -598,23 +1367,23 @@ interactions: Connection: - keep-alive Content-Length: - - '164' + - '160' Content-Type: - application/json User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/076427e1-3550-4fb6-9e00-b0b8a8505277?api-version=2020-08-01-preview response: body: - string: '{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}' + string: '{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}' headers: content-length: - - '248' + - '244' content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:27 GMT + - Wed, 06 Jul 2022 07:19:05 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -634,17 +1403,17 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/bb01c077-9397-48d2-9751-59a32496b349?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/3675b395-c727-410b-b4f8-5c932ebfdd8b?api-version=2020-08-01-preview response: body: - string: '{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"}' + string: '{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"}' headers: content-length: - - '230' + - '226' content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:27 GMT + - Wed, 06 Jul 2022 07:19:06 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -664,7 +1433,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleDefinitions?api-version=2020-08-01-preview response: body: string: "[{\"name\":\"Synapse Administrator\",\"description\":\"Full Synapse @@ -720,7 +1489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:28 GMT + - Wed, 06 Jul 2022 07:19:07 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -742,17 +1511,17 @@ interactions: x-ms-continuation: - '' method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&roleId=7572bffe-f453-4b66-912a-46cc5ef38fda&scope=workspaces%2Fbigdataqa211210ws%2FbigDataPools%2Ftest + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&roleId=7572bffe-f453-4b66-912a-46cc5ef38fda&scope=workspaces%2Fclitest000003%2FbigDataPools%2Ftest response: body: - string: '{"count":2,"value":[{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - - '501' + - '493' content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:29 GMT + - Wed, 06 Jul 2022 07:19:08 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -790,11 +1559,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:29 GMT + - Wed, 06 Jul 2022 07:19:09 GMT odata-version: - '4.0' request-id: - - 154d469b-b87b-435a-9c2a-fae050176173 + - fa79df95-07e6-4034-b59e-ef57de382c36 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -802,7 +1571,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A2F"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C27"}}' x-ms-resource-unit: - '2' status: @@ -836,11 +1605,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:30 GMT + - Wed, 06 Jul 2022 07:19:10 GMT odata-version: - '4.0' request-id: - - 5d1b5660-c253-4394-8227-a1499c057e9f + - 7279749b-a2b4-4643-a3a9-7b3ba5a21d40 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -848,7 +1617,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00001A45"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00007865"}}' x-ms-resource-unit: - '1' status: @@ -868,17 +1637,17 @@ interactions: x-ms-continuation: - '' method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 response: body: - string: '{"count":2,"value":[{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - - '501' + - '493' content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:32 GMT + - Wed, 06 Jul 2022 07:19:11 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -902,17 +1671,17 @@ interactions: x-ms-continuation: - '' method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 response: body: - string: '{"count":2,"value":[{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - - '501' + - '493' content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:32 GMT + - Wed, 06 Jul 2022 07:19:12 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -936,17 +1705,17 @@ interactions: x-ms-continuation: - '' method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview response: body: - string: '{"count":9,"value":[{"id":"bcf4216e-01ed-4000-9868-4eb74a909782","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"4ef5b77d-0539-4dcc-9e7c-dd798ccf6b47","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"86c980ff-eb89-4ab3-bcfc-985080c127aa","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"a869132d-cc90-4e78-8209-fc2af1a77008","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"2be670f8-12f1-4b01-bcfb-23f80e0e0f85","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"b3f7a640-8d13-4b12-866b-0c3e109fd5a2","scope":"workspaces/bigdataqa211210ws","principalType":"Group"},{"id":"aaee8f74-8548-46c0-abd1-7c225b946bbd","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"7f21f55c-7971-4e88-9ca1-1e5e86591d83","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"6b0f2995-abeb-48d0-b51d-f4ac29f8a9a4","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"f63e7747-5fce-43a9-bd12-fb382caa5b7e","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"274bfb73-8c26-4954-897f-89fde7ec407b","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"e2af296c-0509-4653-8851-1dd19e5d951e","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"9a2562c1-73ef-4225-96c2-fc78c62e3a41","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"ed3c5c21-4f5d-4476-b9f6-f0c4bb404e1a","scope":"workspaces/bigdataqa211210ws","principalType":"User"},{"id":"bb01c077-9397-48d2-9751-59a32496b349","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws","principalType":"ServicePrincipal"},{"id":"1ff2a26a-dfb2-48f0-8f3c-3fd1fffeb53b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/bigdataqa211210ws/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":4,"value":[{"id":"9dac46a4-1fc5-4411-b682-69fd527e86ae","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"6a33200f-2b27-4fda-8567-b0c70d532441","scope":"workspaces/clitest000003","principalType":"User"},{"id":"4ff4aa29-5372-429a-bc4f-f35f748f5053","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"a174e125-be1d-461e-a4df-9654c15697ac","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - - '2047' + - '935' content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:34 GMT + - Wed, 06 Jul 2022 07:19:13 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -970,7 +1739,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/bb01c077-9397-48d2-9751-59a32496b349?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/3675b395-c727-410b-b4f8-5c932ebfdd8b?api-version=2020-08-01-preview response: body: string: '' @@ -978,7 +1747,7 @@ interactions: content-length: - '0' date: - - Tue, 05 Jul 2022 03:26:35 GMT + - Wed, 06 Jul 2022 07:19:14 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -998,7 +1767,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://bigdataqa211210ws.dev.azuresynapse.net/roleAssignments/bb01c077-9397-48d2-9751-59a32496b349?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/3675b395-c727-410b-b4f8-5c932ebfdd8b?api-version=2020-08-01-preview response: body: string: '{"error":{"code":"RoleAssignmentNotFound","message":"RoleAssignmentNotFound"}}' @@ -1008,7 +1777,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 05 Jul 2022 03:26:36 GMT + - Wed, 06 Jul 2022 07:19:15 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py index a3c07caaacd..bf15b7e9dd6 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py @@ -2169,17 +2169,41 @@ def test_spark_session_and_statements(self, resource_group): self.check('state', 'killed') ]) - @record_only() + @ResourceGroupPreparer(name_prefix='synapse-cli', random_name_length=16) + @StorageAccountPreparer(name_prefix='adlsgen2', length=16, location=location, key='storage-account') def test_access_control(self): self.kwargs.update({ - 'workspace': 'bigdataqa211210ws', 'role': 'Synapse Contributor', 'userPrincipal': 'username@contoso.com', 'servicePrincipal': 'testsynapsecli', + 'sparkpool': 'test', + 'sparkversion': '2.4', + 'file': os.path.join(os.path.join(os.path.dirname(__file__), 'assets'), 'sparkconfigfile.txt'), 'scopeName': 'workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}', 'itemType': 'bigDataPools', 'item': 'test'}) + # create a workspace + self._create_workspace() + + # create firewall rule + self.cmd( + 'az synapse workspace firewall-rule create --resource-group {rg} --name allowAll --workspace-name {workspace} ' + '--start-ip-address 0.0.0.0 --end-ip-address 255.255.255.255', checks=[ + self.check('provisioningState', 'Succeeded') + ] + ) + import time + time.sleep(20) + + #create spark pool + self.cmd('az synapse spark pool create --name {sparkpool} --spark-version {sparkversion}' + ' --workspace {workspace} --resource-group {rg} --node-count 3 --node-size Medium' + ' --spark-config-file-path "{file}"', + checks=[self.check('name', self.kwargs['sparkpool']), + self.check('type', 'Microsoft.Synapse/workspaces/bigDataPools'), + self.check('provisioningState', 'Succeeded')]) + self.cmd( 'az synapse role scope list --workspace-name {workspace} ', checks=[ From 0619377c9306a85fecbb5c62c0d7eb32abbd34f7 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Wed, 6 Jul 2022 16:50:28 +0800 Subject: [PATCH 4/7] fix pipeline test issue --- .../recordings/test_access_control.yaml | 229 ++++++++---------- .../tests/latest/test_synapse_scenario.py | 5 +- 2 files changed, 102 insertions(+), 132 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml index 92af112b8d6..e905d882abb 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml +++ b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml @@ -26,10 +26,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003?api-version=2021-06-01 response: body: - string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Provisioning","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-4efac68a-002b-40f2-8c71-46d2839fc459","privateEndpointConnections":[],"workspaceUID":"3a52582e-b9e8-4605-b8b9-3ac892b5ba85","extraProperties":{"WorkspaceType":"Normal"},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"a174e125-be1d-461e-a4df-9654c15697ac"}}' + string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Provisioning","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-92f9f44e-5dd8-425a-935e-07578a8d1fe0","privateEndpointConnections":[],"workspaceUID":"91ec6fa5-096a-4c3b-8db3-136e43f30097","extraProperties":{"WorkspaceType":"Normal"},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"498a7a4f-a8c6-4941-9f86-5cd277697a9a"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -37,7 +37,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:13:36 GMT + - Wed, 06 Jul 2022 08:42:59 GMT expires: - '-1' pragma: @@ -70,7 +70,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 response: body: string: '{"status":"InProgress"}' @@ -82,7 +82,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:14:06 GMT + - Wed, 06 Jul 2022 08:43:31 GMT expires: - '-1' pragma: @@ -117,7 +117,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 response: body: string: '{"status":"InProgress"}' @@ -129,7 +129,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:14:38 GMT + - Wed, 06 Jul 2022 08:44:01 GMT expires: - '-1' pragma: @@ -164,7 +164,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 response: body: string: '{"status":"InProgress"}' @@ -176,7 +176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:15:08 GMT + - Wed, 06 Jul 2022 08:44:32 GMT expires: - '-1' pragma: @@ -211,7 +211,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 response: body: string: '{"status":"InProgress"}' @@ -223,7 +223,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:15:39 GMT + - Wed, 06 Jul 2022 08:45:02 GMT expires: - '-1' pragma: @@ -258,7 +258,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/d706db3a-4c21-442c-af49-ec93a4309de2?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 response: body: string: '{"status":"Succeeded"}' @@ -270,7 +270,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:16:09 GMT + - Wed, 06 Jul 2022 08:45:33 GMT expires: - '-1' pragma: @@ -308,7 +308,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003?api-version=2021-06-01 response: body: - string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-4efac68a-002b-40f2-8c71-46d2839fc459","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"3a52582e-b9e8-4605-b8b9-3ac892b5ba85","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"a174e125-be1d-461e-a4df-9654c15697ac"}}' + string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-92f9f44e-5dd8-425a-935e-07578a8d1fe0","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"91ec6fa5-096a-4c3b-8db3-136e43f30097","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"498a7a4f-a8c6-4941-9f86-5cd277697a9a"}}' headers: cache-control: - no-cache @@ -317,7 +317,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:16:10 GMT + - Wed, 06 Jul 2022 08:45:34 GMT expires: - '-1' pragma: @@ -365,7 +365,7 @@ interactions: access-control-expose-headers: - Location azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/6f965d69-0466-4dc6-9375-8e9279aa926e?api-version=2021-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/47cda686-0f26-470d-920c-7e6c77ddaabd?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -373,11 +373,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:16:15 GMT + - Wed, 06 Jul 2022 08:45:36 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/6f965d69-0466-4dc6-9375-8e9279aa926e?api-version=2021-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/47cda686-0f26-470d-920c-7e6c77ddaabd?api-version=2021-06-01 pragma: - no-cache server: @@ -407,7 +407,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/6f965d69-0466-4dc6-9375-8e9279aa926e?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/47cda686-0f26-470d-920c-7e6c77ddaabd?api-version=2021-06-01 response: body: string: '{"status":"Succeeded"}' @@ -419,7 +419,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:16:47 GMT + - Wed, 06 Jul 2022 08:46:07 GMT expires: - '-1' pragma: @@ -453,7 +453,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/6f965d69-0466-4dc6-9375-8e9279aa926e?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/47cda686-0f26-470d-920c-7e6c77ddaabd?api-version=2021-06-01 response: body: string: '{"properties":{"provisioningState":"Succeeded","startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/firewallRules/allowAll","name":"allowAll","type":"Microsoft.Synapse/workspaces/firewallRules"}' @@ -465,7 +465,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:16:47 GMT + - Wed, 06 Jul 2022 08:46:07 GMT expires: - '-1' pragma: @@ -503,7 +503,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003?api-version=2021-06-01 response: body: - string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-4efac68a-002b-40f2-8c71-46d2839fc459","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"3a52582e-b9e8-4605-b8b9-3ac892b5ba85","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"a174e125-be1d-461e-a4df-9654c15697ac"}}' + string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-92f9f44e-5dd8-425a-935e-07578a8d1fe0","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"91ec6fa5-096a-4c3b-8db3-136e43f30097","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"498a7a4f-a8c6-4941-9f86-5cd277697a9a"}}' headers: cache-control: - no-cache @@ -512,7 +512,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:17:10 GMT + - Wed, 06 Jul 2022 08:46:30 GMT expires: - '-1' pragma: @@ -559,16 +559,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test?api-version=2021-06-01-preview&force=false response: body: - string: '{"properties":{"creationDate":"2022-07-06T07:17:16.8666667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory + string: '{"properties":{"creationDate":"2022-07-06T08:46:38.9166667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory 4g\nspark.executor.cores 2\nspark.executor.instances 3\nspark.rpc.message.maxsize - 256\nspark.driver.maxResultSize 8g","time":"2022-07-06T07:17:16.7616597Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"isAutotuneEnabled":false,"provisioningState":"Provisioning"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' + 256\nspark.driver.maxResultSize 8g","time":"2022-07-06T08:46:38.9232845Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"isAutotuneEnabled":false,"provisioningState":"Provisioning"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' headers: access-control-allow-headers: - Location access-control-expose-headers: - Location azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/b3186815-f275-404f-a399-d72f1fb6798c?api-version=2021-06-01-preview cache-control: - no-cache content-length: @@ -576,11 +576,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:17:16 GMT + - Wed, 06 Jul 2022 08:46:38 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/b3186815-f275-404f-a399-d72f1fb6798c?api-version=2021-06-01-preview pragma: - no-cache server: @@ -590,7 +590,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -611,50 +611,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview - response: - body: - string: '{"status":"InProgress"}' - headers: - cache-control: - - no-cache - content-length: - - '23' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 06 Jul 2022 07:17:46 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - synapse spark pool create - Connection: - - keep-alive - ParameterSetName: - - --name --spark-version --workspace --resource-group --node-count --node-size - --spark-config-file-path - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/b3186815-f275-404f-a399-d72f1fb6798c?api-version=2021-06-01-preview response: body: string: '{"status":"InProgress"}' @@ -666,7 +623,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:17 GMT + - Wed, 06 Jul 2022 08:47:08 GMT expires: - '-1' pragma: @@ -675,6 +632,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -697,7 +658,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/54fe0e08-7ddd-44be-a160-fd46a9a9e19e?api-version=2021-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/b3186815-f275-404f-a399-d72f1fb6798c?api-version=2021-06-01-preview response: body: string: '{"status":"Succeeded"}' @@ -709,7 +670,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:48 GMT + - Wed, 06 Jul 2022 08:47:40 GMT expires: - '-1' pragma: @@ -718,6 +679,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -743,9 +708,9 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test?api-version=2021-06-01-preview&force=false response: body: - string: '{"properties":{"creationDate":"2022-07-06T07:17:16.8666667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory + string: '{"properties":{"creationDate":"2022-07-06T08:46:38.9166667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory 4g\nspark.executor.cores 2\nspark.executor.instances 3\nspark.rpc.message.maxsize - 256\nspark.driver.maxResultSize 8g","time":"2022-07-06T07:17:16.7616597Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"lastSucceededTimestamp":"2022-07-06T07:18:18.6066667Z","isAutotuneEnabled":false,"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' + 256\nspark.driver.maxResultSize 8g","time":"2022-07-06T08:46:38.9232845Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"lastSucceededTimestamp":"2022-07-06T08:47:29.8066667Z","isAutotuneEnabled":false,"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' headers: cache-control: - no-cache @@ -754,7 +719,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:49 GMT + - Wed, 06 Jul 2022 08:47:40 GMT expires: - '-1' pragma: @@ -763,6 +728,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -790,7 +759,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:51 GMT + - Wed, 06 Jul 2022 08:47:43 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -866,7 +835,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:52 GMT + - Wed, 06 Jul 2022 08:47:44 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -942,7 +911,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:53 GMT + - Wed, 06 Jul 2022 08:47:45 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -977,7 +946,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:54 GMT + - Wed, 06 Jul 2022 08:47:47 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1053,7 +1022,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:56 GMT + - Wed, 06 Jul 2022 08:47:47 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1073,7 +1042,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --workspace-name --role --assignee + - --workspace-name --role --assignee --assignment-id User-Agent: - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET @@ -1089,11 +1058,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:58 GMT + - Wed, 06 Jul 2022 08:47:49 GMT odata-version: - '4.0' request-id: - - c9fd19ab-0579-4e3f-a0be-50e17b49a883 + - 2772928a-20a2-469f-b42c-3b9c9488a485 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1101,7 +1070,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF0000812E"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035EC"}}' x-ms-resource-unit: - '2' status: @@ -1119,7 +1088,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --workspace-name --role --assignee + - --workspace-name --role --assignee --assignment-id User-Agent: - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET @@ -1135,11 +1104,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 07:18:59 GMT + - Wed, 06 Jul 2022 08:47:50 GMT odata-version: - '4.0' request-id: - - 4f6a10e9-b278-40c5-9178-07fab6778b89 + - ba43af7d-a64b-4e91-adbd-cc1f2ed9f3fc strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1147,7 +1116,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF0000812E"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035E9"}}' x-ms-resource-unit: - '1' status: @@ -1170,17 +1139,17 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/3675b395-c727-410b-b4f8-5c932ebfdd8b?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: - string: '{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"}' + string: '{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"}' headers: content-length: - '226' content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:01 GMT + - Wed, 06 Jul 2022 08:47:52 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1256,7 +1225,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:02 GMT + - Wed, 06 Jul 2022 08:47:53 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1276,7 +1245,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --workspace-name --role --assignee --item-type --item + - --workspace-name --role --assignee --item-type --item --assignment-id User-Agent: - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET @@ -1292,11 +1261,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:03 GMT + - Wed, 06 Jul 2022 08:47:54 GMT odata-version: - '4.0' request-id: - - 61166281-6f86-4b36-be23-c865665aaf31 + - 4fb85e56-17c8-4bf4-996b-cf2d0e6820f8 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1304,7 +1273,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C22"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035E0"}}' x-ms-resource-unit: - '2' status: @@ -1322,7 +1291,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - --workspace-name --role --assignee --item-type --item + - --workspace-name --role --assignee --item-type --item --assignment-id User-Agent: - python/3.8.9 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 method: GET @@ -1338,11 +1307,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:04 GMT + - Wed, 06 Jul 2022 08:47:54 GMT odata-version: - '4.0' request-id: - - 8238b8eb-3f7c-4a5e-890f-8529e38118ba + - e6b7145d-06e8-4c83-bed4-857cc35c00c1 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1350,7 +1319,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C30"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00002EBE"}}' x-ms-resource-unit: - '1' status: @@ -1373,17 +1342,17 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/076427e1-3550-4fb6-9e00-b0b8a8505277?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/0333e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: - string: '{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}' + string: '{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}' headers: content-length: - '244' content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:05 GMT + - Wed, 06 Jul 2022 08:47:56 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1403,17 +1372,17 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/3675b395-c727-410b-b4f8-5c932ebfdd8b?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: - string: '{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"}' + string: '{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"}' headers: content-length: - '226' content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:06 GMT + - Wed, 06 Jul 2022 08:47:57 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1489,7 +1458,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:07 GMT + - Wed, 06 Jul 2022 08:47:59 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1514,14 +1483,14 @@ interactions: uri: https://clitest000003.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&roleId=7572bffe-f453-4b66-912a-46cc5ef38fda&scope=workspaces%2Fclitest000003%2FbigDataPools%2Ftest response: body: - string: '{"count":2,"value":[{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - '493' content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:08 GMT + - Wed, 06 Jul 2022 08:48:00 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1559,11 +1528,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:09 GMT + - Wed, 06 Jul 2022 08:48:00 GMT odata-version: - '4.0' request-id: - - fa79df95-07e6-4034-b59e-ef57de382c36 + - 7a866f9d-caed-4a3f-883e-5b0b8f6a9188 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1571,7 +1540,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00008C27"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035E2"}}' x-ms-resource-unit: - '2' status: @@ -1605,11 +1574,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:10 GMT + - Wed, 06 Jul 2022 08:48:01 GMT odata-version: - '4.0' request-id: - - 7279749b-a2b4-4643-a3a9-7b3ba5a21d40 + - 4e6a2c41-4a64-49fd-8f6d-8de811bd0489 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1617,7 +1586,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SI1PEPF00007865"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035DE"}}' x-ms-resource-unit: - '1' status: @@ -1640,14 +1609,14 @@ interactions: uri: https://clitest000003.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 response: body: - string: '{"count":2,"value":[{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - '493' content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:11 GMT + - Wed, 06 Jul 2022 08:48:02 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1674,14 +1643,14 @@ interactions: uri: https://clitest000003.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview&principalId=829ae9c5-95e5-4e5b-9f8b-eca27e2cb501 response: body: - string: '{"count":2,"value":[{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":2,"value":[{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - '493' content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:12 GMT + - Wed, 06 Jul 2022 08:48:03 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1708,14 +1677,14 @@ interactions: uri: https://clitest000003.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview response: body: - string: '{"count":4,"value":[{"id":"9dac46a4-1fc5-4411-b682-69fd527e86ae","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"6a33200f-2b27-4fda-8567-b0c70d532441","scope":"workspaces/clitest000003","principalType":"User"},{"id":"4ff4aa29-5372-429a-bc4f-f35f748f5053","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"a174e125-be1d-461e-a4df-9654c15697ac","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"3675b395-c727-410b-b4f8-5c932ebfdd8b","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"076427e1-3550-4fb6-9e00-b0b8a8505277","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":4,"value":[{"id":"9933ff20-c739-4e40-9060-4f7fc483fe02","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"6a33200f-2b27-4fda-8567-b0c70d532441","scope":"workspaces/clitest000003","principalType":"User"},{"id":"a2414e4d-fc93-4cd0-aab5-5d120ca1e234","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"498a7a4f-a8c6-4941-9f86-5cd277697a9a","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - '935' content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:13 GMT + - Wed, 06 Jul 2022 08:48:05 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1739,7 +1708,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/3675b395-c727-410b-b4f8-5c932ebfdd8b?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: string: '' @@ -1747,7 +1716,7 @@ interactions: content-length: - '0' date: - - Wed, 06 Jul 2022 07:19:14 GMT + - Wed, 06 Jul 2022 08:48:06 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1767,7 +1736,7 @@ interactions: User-Agent: - azsdk-python-synapse/0.5.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/3675b395-c727-410b-b4f8-5c932ebfdd8b?api-version=2020-08-01-preview + uri: https://clitest000003.dev.azuresynapse.net/roleAssignments/0550e787-7841-4669-9ac8-a8176e900002?api-version=2020-08-01-preview response: body: string: '{"error":{"code":"RoleAssignmentNotFound","message":"RoleAssignmentNotFound"}}' @@ -1777,7 +1746,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 07:19:15 GMT + - Wed, 06 Jul 2022 08:48:07 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py index bf15b7e9dd6..12dafee61f2 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py @@ -2229,7 +2229,7 @@ def test_access_control(self): # create role assignment role_assignment_create = self.cmd( 'az synapse role assignment create --workspace-name {workspace} --role "{role}" ' - '--assignee {servicePrincipal}', + '--assignee {servicePrincipal} --assignment-id 0550e787-7841-4669-9ac8-a8176e900002', checks=[ self.check('roleDefinitionId', self.kwargs['roleId']) ]).get_output_in_json() @@ -2240,7 +2240,8 @@ def test_access_control(self): # create role assignment at scope self.cmd( 'az synapse role assignment create --workspace-name {workspace} --role "{role}" ' - '--assignee {servicePrincipal} --item-type {itemType} --item {item}', + '--assignee {servicePrincipal} --item-type {itemType} --item {item} ' + '--assignment-id 0333e787-7841-4669-9ac8-a8176e900002', checks=[ self.check('roleDefinitionId', self.kwargs['roleId']), self.check('scope', 'workspaces/{workspace}/{itemType}/{item}') From c5e38d72844514c7a86fe58764b9cef84890cd65 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Tue, 12 Jul 2022 15:14:47 +0800 Subject: [PATCH 5/7] remove unused error --- .../manual/operations/accesscontrol.py | 2 +- .../recordings/test_access_control.yaml | 663 ++++++++++++++++-- 2 files changed, 589 insertions(+), 76 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py index e077df72c67..09d21453849 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py @@ -142,7 +142,7 @@ def _resolve_object_id(cmd, assignee, fallback_to_object_id=False): .format(assignee=assignee)) return result[0]["id"] - except (CloudError, GraphError): + except (GraphError): if fallback_to_object_id and is_guid(assignee): return assignee raise diff --git a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml index e905d882abb..d2d22c78beb 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml +++ b/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/recordings/test_access_control.yaml @@ -26,10 +26,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003?api-version=2021-06-01 response: body: - string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Provisioning","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-92f9f44e-5dd8-425a-935e-07578a8d1fe0","privateEndpointConnections":[],"workspaceUID":"91ec6fa5-096a-4c3b-8db3-136e43f30097","extraProperties":{"WorkspaceType":"Normal"},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"498a7a4f-a8c6-4941-9f86-5cd277697a9a"}}' + string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Provisioning","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-52a7cfc4-30ee-4839-94ae-89f6db86a186","privateEndpointConnections":[],"workspaceUID":"1f51afc5-647d-4ace-b5cd-a45e1de8485d","extraProperties":{"WorkspaceType":"Normal"},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"ebd3af01-aefd-4014-b663-c34f834694e4"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -37,7 +37,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:42:59 GMT + - Tue, 12 Jul 2022 06:57:23 GMT expires: - '-1' pragma: @@ -70,7 +70,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 response: body: string: '{"status":"InProgress"}' @@ -82,7 +82,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:43:31 GMT + - Tue, 12 Jul 2022 06:57:54 GMT expires: - '-1' pragma: @@ -117,7 +117,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 response: body: string: '{"status":"InProgress"}' @@ -129,7 +129,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:44:01 GMT + - Tue, 12 Jul 2022 06:58:25 GMT expires: - '-1' pragma: @@ -164,7 +164,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 response: body: string: '{"status":"InProgress"}' @@ -176,7 +176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:44:32 GMT + - Tue, 12 Jul 2022 06:58:55 GMT expires: - '-1' pragma: @@ -211,7 +211,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 response: body: string: '{"status":"InProgress"}' @@ -223,7 +223,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:45:02 GMT + - Tue, 12 Jul 2022 06:59:25 GMT expires: - '-1' pragma: @@ -258,7 +258,524 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0471b34d-638f-49b5-9928-be92cb0f8b43?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 06:59:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:00:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:00:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:01:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:01:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:02:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:03:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:03:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:04:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:04:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 + response: + body: + string: '{"status":"InProgress"}' + headers: + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 12 Jul 2022 07:05:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - synapse workspace create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --storage-account --file-system --sql-admin-login-user + --sql-admin-login-password --location + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/30ddaa31-f8a4-483a-b1b8-e2ed6d60380b?api-version=2021-06-01 response: body: string: '{"status":"Succeeded"}' @@ -270,7 +787,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:45:33 GMT + - Tue, 12 Jul 2022 07:05:36 GMT expires: - '-1' pragma: @@ -308,7 +825,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003?api-version=2021-06-01 response: body: - string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-92f9f44e-5dd8-425a-935e-07578a8d1fe0","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"91ec6fa5-096a-4c3b-8db3-136e43f30097","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"498a7a4f-a8c6-4941-9f86-5cd277697a9a"}}' + string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-52a7cfc4-30ee-4839-94ae-89f6db86a186","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"1f51afc5-647d-4ace-b5cd-a45e1de8485d","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"ebd3af01-aefd-4014-b663-c34f834694e4"}}' headers: cache-control: - no-cache @@ -317,7 +834,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:45:34 GMT + - Tue, 12 Jul 2022 07:05:36 GMT expires: - '-1' pragma: @@ -365,7 +882,7 @@ interactions: access-control-expose-headers: - Location azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/47cda686-0f26-470d-920c-7e6c77ddaabd?api-version=2021-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/e6070ea2-2a8b-4b1d-9898-a65066a13798?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -373,11 +890,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:45:36 GMT + - Tue, 12 Jul 2022 07:05:38 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/47cda686-0f26-470d-920c-7e6c77ddaabd?api-version=2021-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/e6070ea2-2a8b-4b1d-9898-a65066a13798?api-version=2021-06-01 pragma: - no-cache server: @@ -407,7 +924,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/47cda686-0f26-470d-920c-7e6c77ddaabd?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/e6070ea2-2a8b-4b1d-9898-a65066a13798?api-version=2021-06-01 response: body: string: '{"status":"Succeeded"}' @@ -419,7 +936,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:46:07 GMT + - Tue, 12 Jul 2022 07:06:11 GMT expires: - '-1' pragma: @@ -453,7 +970,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/47cda686-0f26-470d-920c-7e6c77ddaabd?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/e6070ea2-2a8b-4b1d-9898-a65066a13798?api-version=2021-06-01 response: body: string: '{"properties":{"provisioningState":"Succeeded","startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/firewallRules/allowAll","name":"allowAll","type":"Microsoft.Synapse/workspaces/firewallRules"}' @@ -465,7 +982,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:46:07 GMT + - Tue, 12 Jul 2022 07:06:11 GMT expires: - '-1' pragma: @@ -503,7 +1020,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003?api-version=2021-06-01 response: body: - string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-92f9f44e-5dd8-425a-935e-07578a8d1fe0","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"91ec6fa5-096a-4c3b-8db3-136e43f30097","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"498a7a4f-a8c6-4941-9f86-5cd277697a9a"}}' + string: '{"properties":{"defaultDataLakeStorage":{"createManagedPrivateEndpoint":false,"accountUrl":"https://adlsgen2000002.dfs.core.windows.net","filesystem":"testfilesystem"},"encryption":{"doubleEncryptionEnabled":false},"provisioningState":"Succeeded","connectivityEndpoints":{"web":"https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapse-cli000001%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fclitest000003","dev":"https://clitest000003.dev.azuresynapse.net","sqlOnDemand":"clitest000003-ondemand.sql.azuresynapse.net","sql":"clitest000003.sql.azuresynapse.net"},"managedResourceGroupName":"synapseworkspace-managedrg-52a7cfc4-30ee-4839-94ae-89f6db86a186","sqlAdministratorLogin":"cliuser1","privateEndpointConnections":[],"workspaceUID":"1f51afc5-647d-4ace-b5cd-a45e1de8485d","extraProperties":{"WorkspaceType":"Normal","IsScopeEnabled":false},"publicNetworkAccess":"Enabled","cspWorkspaceAdminProperties":{"initialWorkspaceAdminObjectId":"6a33200f-2b27-4fda-8567-b0c70d532441"},"trustedServiceBypassEnabled":false},"type":"Microsoft.Synapse/workspaces","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003","location":"eastus","name":"clitest000003","identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"ebd3af01-aefd-4014-b663-c34f834694e4"}}' headers: cache-control: - no-cache @@ -512,7 +1029,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:46:30 GMT + - Tue, 12 Jul 2022 07:06:35 GMT expires: - '-1' pragma: @@ -521,10 +1038,6 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -559,16 +1072,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test?api-version=2021-06-01-preview&force=false response: body: - string: '{"properties":{"creationDate":"2022-07-06T08:46:38.9166667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory + string: '{"properties":{"creationDate":"2022-07-12T07:06:41.4266667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory 4g\nspark.executor.cores 2\nspark.executor.instances 3\nspark.rpc.message.maxsize - 256\nspark.driver.maxResultSize 8g","time":"2022-07-06T08:46:38.9232845Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"isAutotuneEnabled":false,"provisioningState":"Provisioning"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' + 256\nspark.driver.maxResultSize 8g","time":"2022-07-12T07:06:41.4031036Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"isAutotuneEnabled":false,"provisioningState":"Provisioning"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' headers: access-control-allow-headers: - Location access-control-expose-headers: - Location azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/b3186815-f275-404f-a399-d72f1fb6798c?api-version=2021-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0961d088-34b1-4251-82f7-3b11f559c9a0?api-version=2021-06-01-preview cache-control: - no-cache content-length: @@ -576,11 +1089,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:46:38 GMT + - Tue, 12 Jul 2022 07:06:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/b3186815-f275-404f-a399-d72f1fb6798c?api-version=2021-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationResults/0961d088-34b1-4251-82f7-3b11f559c9a0?api-version=2021-06-01-preview pragma: - no-cache server: @@ -611,7 +1124,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/b3186815-f275-404f-a399-d72f1fb6798c?api-version=2021-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0961d088-34b1-4251-82f7-3b11f559c9a0?api-version=2021-06-01-preview response: body: string: '{"status":"InProgress"}' @@ -623,7 +1136,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:08 GMT + - Tue, 12 Jul 2022 07:07:11 GMT expires: - '-1' pragma: @@ -658,7 +1171,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-synapse/2.1.0b2 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/b3186815-f275-404f-a399-d72f1fb6798c?api-version=2021-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/operationStatuses/0961d088-34b1-4251-82f7-3b11f559c9a0?api-version=2021-06-01-preview response: body: string: '{"status":"Succeeded"}' @@ -670,7 +1183,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:40 GMT + - Tue, 12 Jul 2022 07:07:42 GMT expires: - '-1' pragma: @@ -708,9 +1221,9 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test?api-version=2021-06-01-preview&force=false response: body: - string: '{"properties":{"creationDate":"2022-07-06T08:46:38.9166667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory + string: '{"properties":{"creationDate":"2022-07-12T07:06:41.4266667Z","sparkVersion":"2.4","nodeCount":3,"nodeSize":"Medium","nodeSizeFamily":"MemoryOptimized","autoScale":{"enabled":false,"minNodeCount":0,"maxNodeCount":0},"autoPause":{"enabled":false,"delayInMinutes":0},"isComputeIsolationEnabled":false,"sparkConfigProperties":{"configurationType":"File","filename":"sparkconfigfile","content":"spark.executor.memory 4g\nspark.executor.cores 2\nspark.executor.instances 3\nspark.rpc.message.maxsize - 256\nspark.driver.maxResultSize 8g","time":"2022-07-06T08:46:38.9232845Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"lastSucceededTimestamp":"2022-07-06T08:47:29.8066667Z","isAutotuneEnabled":false,"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' + 256\nspark.driver.maxResultSize 8g","time":"2022-07-12T07:06:41.4031036Z"},"sessionLevelPackagesEnabled":false,"cacheSize":0,"dynamicExecutorAllocation":{"enabled":false},"lastSucceededTimestamp":"2022-07-12T07:07:40.4333333Z","isAutotuneEnabled":false,"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/synapse-cli000001/providers/Microsoft.Synapse/workspaces/clitest000003/bigDataPools/test","name":"test","type":"Microsoft.Synapse/workspaces/bigDataPools","location":"eastus"}' headers: cache-control: - no-cache @@ -719,7 +1232,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:40 GMT + - Tue, 12 Jul 2022 07:07:42 GMT expires: - '-1' pragma: @@ -759,7 +1272,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:43 GMT + - Tue, 12 Jul 2022 07:07:45 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -835,7 +1348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:44 GMT + - Tue, 12 Jul 2022 07:07:46 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -911,7 +1424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:45 GMT + - Tue, 12 Jul 2022 07:07:47 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -946,7 +1459,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:47 GMT + - Tue, 12 Jul 2022 07:07:49 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1022,7 +1535,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:47 GMT + - Tue, 12 Jul 2022 07:07:50 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1058,11 +1571,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:49 GMT + - Tue, 12 Jul 2022 07:07:52 GMT odata-version: - '4.0' request-id: - - 2772928a-20a2-469f-b42c-3b9c9488a485 + - e97b1d80-bfad-453a-bb52-a6e55133b671 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1070,7 +1583,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035EC"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000022CF"}}' x-ms-resource-unit: - '2' status: @@ -1104,11 +1617,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:50 GMT + - Tue, 12 Jul 2022 07:07:52 GMT odata-version: - '4.0' request-id: - - ba43af7d-a64b-4e91-adbd-cc1f2ed9f3fc + - abf18ee7-aaee-4b88-95ef-9aa469c6328f strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1116,7 +1629,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035E9"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000037E2"}}' x-ms-resource-unit: - '1' status: @@ -1149,7 +1662,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:52 GMT + - Tue, 12 Jul 2022 07:07:54 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1225,7 +1738,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:53 GMT + - Tue, 12 Jul 2022 07:07:55 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1261,11 +1774,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:54 GMT + - Tue, 12 Jul 2022 07:07:55 GMT odata-version: - '4.0' request-id: - - 4fb85e56-17c8-4bf4-996b-cf2d0e6820f8 + - d41b108b-6cf1-4e82-9803-370abb2e0236 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1273,7 +1786,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035E0"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00002016"}}' x-ms-resource-unit: - '2' status: @@ -1307,11 +1820,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:54 GMT + - Tue, 12 Jul 2022 07:07:57 GMT odata-version: - '4.0' request-id: - - e6b7145d-06e8-4c83-bed4-857cc35c00c1 + - 768ae90f-faa0-4de2-9aa8-13f8609777dd strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1319,7 +1832,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00002EBE"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000037E7"}}' x-ms-resource-unit: - '1' status: @@ -1352,7 +1865,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:56 GMT + - Tue, 12 Jul 2022 07:07:58 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1382,7 +1895,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:57 GMT + - Tue, 12 Jul 2022 07:07:59 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1458,7 +1971,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:47:59 GMT + - Tue, 12 Jul 2022 07:08:01 GMT server: - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1490,7 +2003,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:48:00 GMT + - Tue, 12 Jul 2022 07:08:02 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1528,11 +2041,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 08:48:00 GMT + - Tue, 12 Jul 2022 07:08:03 GMT odata-version: - '4.0' request-id: - - 7a866f9d-caed-4a3f-883e-5b0b8f6a9188 + - c689171a-d52e-40ce-82c8-16415716d767 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1540,7 +2053,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035E2"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF00001302"}}' x-ms-resource-unit: - '2' status: @@ -1574,11 +2087,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Wed, 06 Jul 2022 08:48:01 GMT + - Tue, 12 Jul 2022 07:08:04 GMT odata-version: - '4.0' request-id: - - 4e6a2c41-4a64-49fd-8f6d-8de811bd0489 + - 35277686-e5a2-4b57-a3ef-993b68488621 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -1586,7 +2099,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035DE"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000037EA"}}' x-ms-resource-unit: - '1' status: @@ -1616,7 +2129,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:48:02 GMT + - Tue, 12 Jul 2022 07:08:05 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1650,7 +2163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:48:03 GMT + - Tue, 12 Jul 2022 07:08:05 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1677,14 +2190,14 @@ interactions: uri: https://clitest000003.dev.azuresynapse.net/roleAssignments?api-version=2020-08-01-preview response: body: - string: '{"count":4,"value":[{"id":"9933ff20-c739-4e40-9060-4f7fc483fe02","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"6a33200f-2b27-4fda-8567-b0c70d532441","scope":"workspaces/clitest000003","principalType":"User"},{"id":"a2414e4d-fc93-4cd0-aab5-5d120ca1e234","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"498a7a4f-a8c6-4941-9f86-5cd277697a9a","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' + string: '{"count":4,"value":[{"id":"b78d2abe-a093-46ce-af99-b8f42460ed74","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"6a33200f-2b27-4fda-8567-b0c70d532441","scope":"workspaces/clitest000003","principalType":"User"},{"id":"204d5133-604e-4cde-b08b-055e40f24dfa","roleDefinitionId":"6e4bf58a-b8e1-4cc3-bbf9-d73143322b78","principalId":"ebd3af01-aefd-4014-b663-c34f834694e4","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"0550e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003","principalType":"ServicePrincipal"},{"id":"0333e787-7841-4669-9ac8-a8176e900002","roleDefinitionId":"7572bffe-f453-4b66-912a-46cc5ef38fda","principalId":"829ae9c5-95e5-4e5b-9f8b-eca27e2cb501","scope":"workspaces/clitest000003/bigDataPools/test","principalType":"ServicePrincipal"}]}' headers: content-length: - '935' content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:48:05 GMT + - Tue, 12 Jul 2022 07:08:07 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1716,7 +2229,7 @@ interactions: content-length: - '0' date: - - Wed, 06 Jul 2022 08:48:06 GMT + - Tue, 12 Jul 2022 07:08:08 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -1746,7 +2259,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 06 Jul 2022 08:48:07 GMT + - Tue, 12 Jul 2022 07:08:09 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: From b574e2b6056c1c6ed49cfdc339e89c3f894f7ea6 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Tue, 12 Jul 2022 15:36:52 +0800 Subject: [PATCH 6/7] fix style error --- .../command_modules/synapse/manual/operations/accesscontrol.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py index 09d21453849..f1b3d8e1756 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py @@ -7,7 +7,6 @@ from azure.cli.core.azclierror import InvalidArgumentValueError, ArgumentUsageError from azure.cli.core.util import is_guid from azure.cli.command_modules.role import GraphError -from msrestazure.azure_exceptions import CloudError from .._client_factory import cf_synapse_role_assignments, cf_synapse_role_definitions, cf_graph_client_factory from ..constant import ITEM_NAME_MAPPING import azure.cli.command_modules.synapse.custom_help as cust_help @@ -142,7 +141,7 @@ def _resolve_object_id(cmd, assignee, fallback_to_object_id=False): .format(assignee=assignee)) return result[0]["id"] - except (GraphError): + except GraphError: if fallback_to_object_id and is_guid(assignee): return assignee raise From 1adf91e5c2425cae85b4b50d9b9d84630c7b321e Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Wed, 13 Jul 2022 11:58:08 +0800 Subject: [PATCH 7/7] fix wrong usage --- .../synapse/manual/operations/accesscontrol.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py index f1b3d8e1756..1d43d3bfea1 100644 --- a/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py +++ b/src/azure-cli/azure/cli/command_modules/synapse/manual/operations/accesscontrol.py @@ -151,7 +151,9 @@ def _get_object_stubs(graph_client, assignees): result = [] assignees = list(assignees) # callers could pass in a set for i in range(0, len(assignees), 1000): - result += list(graph_client.directory_object_get_by_ids(assignees[i:i + 1000])) + body = {"ids": assignees[i:i + 1000], + "types": ['user', 'group', 'servicePrincipal', 'directoryObjectPartnerReference']} + result.extend(list(graph_client.directory_object_get_by_ids(body))) return result