File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,20 +59,20 @@ This server is associated with resource group ResourceGroup01.
59
59
60
60
### Example 2: Provision an administrator user using managed instance object
61
61
```
62
- PS C:\>Get-AzSqlInstance -ResourceGroupName "ResourceGroup01" -InstanceName "ManagedInstance01" | Set-AzSqlInstanceActiveDirectoryAdmin -DisplayName "David Chew" -ObjectId "11E95548-B179-4FE1-9AF4-ACA49D13ABB9"
62
+ PS C:\>Get-AzSqlInstance -ResourceGroupName "ResourceGroup01" -InstanceName "ManagedInstance01" | Set-AzSqlInstanceActiveDirectoryAdministrator -DisplayName "David Chew" -ObjectId "11E95548-B179-4FE1-9AF4-ACA49D13ABB9"
63
63
ResourceGroupName InstanceName DisplayName ObjectId
64
64
----------------- ----------------- ----------- --------
65
- resourcegroup01 ManagedInstance01 David Chew 11E95548-B179-4FE1-9AF4-ACA49D13ABB9
65
+ Resourcegroup01 ManagedInstance01 David Chew 11E95548-B179-4FE1-9AF4-ACA49D13ABB9
66
66
```
67
67
68
68
This command provisions an Azure AD user as an administrator from the managed instance object.
69
69
70
70
### Example 3: Provision an administrator using managed instance resource identifier
71
71
```
72
- PS C:\>Get-AzSqlInstance -ResourceGroupName "ResourceGroup01" -InstanceName " ManagedInstance01" | Set-AzSqlInstanceActiveDirectoryAdmin -DisplayName "David Chew" -ObjectId "11E95548-B179-4FE1-9AF4-ACA49D13ABB9"
72
+ PS C:\>Get-AzSqlInstance -ResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Sql/managedInstances/ ManagedInstance01" | Set-AzSqlInstanceActiveDirectoryAdministrator -DisplayName "David Chew" -ObjectId "11E95548-B179-4FE1-9AF4-ACA49D13ABB9"
73
73
ResourceGroupName InstanceName DisplayName ObjectId
74
74
----------------- ----------------- ----------- --------
75
- resourcegroup01 ManagedInstance01 David Chew 11E95548-B179-4FE1-9AF4-ACA49D13ABB9
75
+ Resourcegroup01 ManagedInstance01 David Chew 11E95548-B179-4FE1-9AF4-ACA49D13ABB9
76
76
```
77
77
78
78
This command provisions an Azure AD user as an administrator using managed instance resource identifier.
You can’t perform that action at this time.
0 commit comments