Skip to content
Closed
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ deletedstorage
deletefailed
deleteissuers
deletesas
delink
demorun
denylist
deployer
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "resourceGroup-1234",
"workspaceName": "workspace-123",
"parameters": {
"linkName": "link-12",
"resourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1234",
"userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai123"
}
},
"responses": {
"200": {
"body": {
"linkName": "link-12",
"linkType": "Synapse",
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "resourceGroup-4321",
"providerNamespace": "Microsoft.Synapse",
"resourceType": "workspaces",
"workspaceName": "linkedWorkspace-1234",
"userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai123",
"resourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1234"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "resourceGroup-1234",
"workspaceName": "workspace-123",
"linkName": "link-12"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "resourceGroup-1234",
"workspaceName": "workspace-123",
"linkName": "link-12"
},
"responses": {
"200": {
"body": {
"linkName": "link-12",
"linkType": "Synapse",
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "resourceGroup-4321",
"providerNamespace": "Microsoft.Synapse",
"resourceType": "workspaces",
"workspaceName": "linkedWorkspace-1234",
"userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai123",
"resourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1234"
}
},
"404": {
"body": {
"error": {
"code": "UserError",
"message": "There is no such a linked workspace link-12 in AML workspace workspace-123"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "resourceGroup-1234",
"workspaceName": "workspace-123",
"link-resourceGroup": "linkRg-123"
},
"responses": {
"200": {
"body": [
{
"linkName": "link-12",
"linkType": "Synapse",
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "linkRg-123",
"providerNamespace": "Microsoft.Synapse",
"resourceType": "workspaces",
"workspaceName": "linkedWorkspace-1234",
"userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai123",
"resourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/linkRg-123/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1234"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an RPC-compliant resource payload. You should have a top level id, 'name, type property and all the resource properties should go into the properties property. Please take a look at https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md#resource-api-reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LinkedWorkspace is not yet a resource.

{
"linkName": "link-13",
"linkType": "Synapse",
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "linkRg-123",
"providerNamespace": "Microsoft.Synapse",
"resourceType": "workspaces",
"workspaceName": "linkedWorkspace-4321",
"userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai321",
"resourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/linkRg-123/providers/Microsoft.Synapse/workspaces/linkedWorkspace-4321"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "resourceGroup-1234",
"workspaceName": "workspace-123",
"linkName": "link-12",
"parameters": {
"userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai124"
}
},
"responses": {
"200": {
"body": {
"linkName": "link-12",
"linkType": "Synapse",
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "resourceGroup-4321",
"providerNamespace": "Microsoft.Synapse",
"resourceType": "workspaces",
"workspaceName": "linkedWorkspace-1234",
"userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai124",
"resourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-4321/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1234"
}
},
"404": {
"body": {
"error": {
"code": "UserError",
"message": "There is no such a linked workspace link-12 in AML workspace workspace-123"
}
}
}
}
}
Loading