You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/manage/azure-arc-enabled-sql-server/modify-license-type/README.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ If not specified, all subscriptions your role has access to are scanned.
19
19
20
20
- You must have at least a *Contributor* role in each subscription you modify.
21
21
- The Azure extension for SQL Server is updated to version 1.1.2230.58 or newer.
22
+
- You must be connected to Azure AD and logged in to your Azure account. If your account have access to multiple tenants, make sure to log in with a specific tenant ID.
23
+
22
24
23
25
# Launching the script
24
26
@@ -67,13 +69,19 @@ This option is recommended because Cloud shell has the Azure PowerShell modules
67
69
68
70
1. Launch the [Cloud Shell](https://shell.azure.com/). For details, [read more about PowerShell in Cloud Shell](https://aka.ms/pscloudshell/docs).
69
71
70
-
2. Upload the script to your cloud shell using the following command:
72
+
1. Connect to Azure AD
73
+
74
+
```console
75
+
Connect-AzureAD
76
+
```
77
+
78
+
1. Upload the script to your cloud shell using the following command:
@@ -107,10 +115,11 @@ Use the following steps to run the script in a PowerShell session on your PC.
107
115
Install-Module Az -Scope CurrentUser -Repository PSGallery -Force
108
116
```
109
117
110
-
1. Connect to Azure with an authenticated account using an authentication method of your choice. For more information, see [Connect-AzAccount](https://learn.microsoft.com/powershell/module/az.accounts/connect-azaccount).
118
+
1. Connect to Azure AD and log in to your Azure account.
Copy file name to clipboardExpand all lines: samples/manage/azure-arc-enabled-sql-server/uninstall-azure-extension-for-sql-server/README.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,9 @@ You can specify a single subscription to scan, or provide a list of subscription
17
17
18
18
- You must have at least a *Contributor* role in each subscription you modify.
19
19
- The Azure extension for SQL Server is updated to version 1.1.2230.58 or newer.
20
+
- You must be connected to Azure AD and logged in to your Azure account. If your account have access to multiple tenants, make sure to log in with a specific tenant ID.
20
21
21
-
# Launching the script
22
+
# Launching the script
22
23
23
24
The script accepts the following command line parameters:
The following command will scan all the subscriptions to which the user has contributor access to, and uninstall Azure extension for SQL Server on all Arc-enabled servers where it is installed.
This option is recommended because Cloud shell has the Azure PowerShell modules pre-installed and you are automatically authenticated. Use the following steps to run the script in Cloud Shell.
64
72
65
73
1. Launch the [Cloud Shell](https://shell.azure.com/). For details, [read more about PowerShell in Cloud Shell](https://aka.ms/pscloudshell/docs).
66
74
67
-
2. Upload the script to your cloud shell using the following command:
75
+
1. Connect to Azure AD
76
+
77
+
```console
78
+
Connect-AzureAD
79
+
```
80
+
81
+
1. Upload the script to your cloud shell using the following command:
.\uninstall-azure-extension-for-sql-server.ps1 -SubId ALL
77
91
```
78
92
79
93
> [!NOTE]
@@ -82,7 +96,6 @@ This option is recommended because Cloud shell has the Azure PowerShell modules
82
96
83
97
# Running the script from a PC
84
98
85
-
86
99
Use the following steps to run the script in a PowerShell session on your PC.
87
100
88
101
1. Copy the script to your current folder:
@@ -104,10 +117,11 @@ Use the following steps to run the script in a PowerShell session on your PC.
104
117
Install-Module Az -Scope CurrentUser -Repository PSGallery -Force
105
118
```
106
119
107
-
1. Connect to Azure with an authenticated account using an authentication method of your choice. For more information, see [Connect-AzAccount](https://learn.microsoft.com/powershell/module/az.accounts/connect-azaccount).
120
+
1. Connect to Azure AD and login to your Azure account.
0 commit comments