Skip to content

Commit 83b8c33

Browse files
author
Alexander (Sasha) Nosov
committed
Turned off login V2 in the arc script
1 parent b8c6b1f commit 83b8c33

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

samples/manage/azure-arc-enabled-sql-server/modify-license-type/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services: Azure Arc-enabled SQL Server
33
platforms: Azure
44
author: anosov1960
55
ms.author: sashan
6-
ms.date: 05/01/2025
6+
ms.date: 10/13/2025
77
---
88

99
# About this sample
@@ -14,11 +14,13 @@ ms.date: 05/01/2025
1414
- **Authors:** Alexander (Sasha) Nosov
1515
- **Update history:**
1616

17-
05/01/2025 - added the consent parameter for teh CSP-managed subscriptions
17+
05/01/2025 - added the consent parameter for the CSP-managed subscriptions
1818

1919
05/09/2025 - added *-ReportOnly* and *-TenandId* parameters
2020

21-
05/13/2025 - added support for a .CSV file with the machine names
21+
05/13/2025 - added support for a .CSV file with the machine names
22+
23+
10/13/2025 - turn off Azure login V2
2224

2325
# Overview
2426

samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-arc-sql-license-type.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ function Connect-Azure {
119119
}
120120
Write-Output "Environment detected: $envType"
121121

122-
# 2) Ensure Az.PowerShell context
122+
# 2) Ensure Az.PowerShell context. Use login V1
123+
Update-AzConfig -LoginExperienceV2 Off
123124
$currentCtx = Get-AzContext -ErrorAction SilentlyContinue
124125
if ($currentCtx -and $currentCtx.Account) {
125126
if ($TenantId) {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"TenantID","SubID","ResourceName","ResourceType","Status","OriginalLicenseType","ResourceGroup","Location"
2+
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","SQL2012EEArc","Microsoft.SqlVirtualMachine/sqlVirtualMachines","VM running","AHUB","ajayj","westus2"
3+
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","SQL2022EE","Microsoft.SqlVirtualMachine/sqlVirtualMachines","VM running","AHUB","ajayj","westus2"
4+
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","sql2022rtm","Microsoft.SqlVirtualMachine/sqlVirtualMachines","VM running","AHUB","ajayj","westus2"
5+
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","sql2025devstd","Microsoft.SqlVirtualMachine/sqlVirtualMachines","VM running","AHUB","ajayj","westus2"
6+
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","ajayjsqlmi","Microsoft.Sql/managedInstances","Ready","BasePrice","ajayj","westus2"
7+
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","AdventureworksLT","Microsoft.Sql/servers/databases","Online","BasePrice","ajayj","westus2"

0 commit comments

Comments
 (0)