mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Turned off login V2 in the arc script
This commit is contained in:
@@ -3,7 +3,7 @@ services: Azure Arc-enabled SQL Server
|
||||
platforms: Azure
|
||||
author: anosov1960
|
||||
ms.author: sashan
|
||||
ms.date: 05/01/2025
|
||||
ms.date: 10/13/2025
|
||||
---
|
||||
|
||||
# About this sample
|
||||
@@ -14,11 +14,13 @@ ms.date: 05/01/2025
|
||||
- **Authors:** Alexander (Sasha) Nosov
|
||||
- **Update history:**
|
||||
|
||||
05/01/2025 - added the consent parameter for teh CSP-managed subscriptions
|
||||
05/01/2025 - added the consent parameter for the CSP-managed subscriptions
|
||||
|
||||
05/09/2025 - added *-ReportOnly* and *-TenandId* parameters
|
||||
|
||||
05/13/2025 - added support for a .CSV file with the machine names
|
||||
05/13/2025 - added support for a .CSV file with the machine names
|
||||
|
||||
10/13/2025 - turn off Azure login V2
|
||||
|
||||
# Overview
|
||||
|
||||
|
||||
+2
-1
@@ -119,7 +119,8 @@ function Connect-Azure {
|
||||
}
|
||||
Write-Output "Environment detected: $envType"
|
||||
|
||||
# 2) Ensure Az.PowerShell context
|
||||
# 2) Ensure Az.PowerShell context. Use login V1
|
||||
Update-AzConfig -LoginExperienceV2 Off
|
||||
$currentCtx = Get-AzContext -ErrorAction SilentlyContinue
|
||||
if ($currentCtx -and $currentCtx.Account) {
|
||||
if ($TenantId) {
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
"TenantID","SubID","ResourceName","ResourceType","Status","OriginalLicenseType","ResourceGroup","Location"
|
||||
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","SQL2012EEArc","Microsoft.SqlVirtualMachine/sqlVirtualMachines","VM running","AHUB","ajayj","westus2"
|
||||
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","SQL2022EE","Microsoft.SqlVirtualMachine/sqlVirtualMachines","VM running","AHUB","ajayj","westus2"
|
||||
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","sql2022rtm","Microsoft.SqlVirtualMachine/sqlVirtualMachines","VM running","AHUB","ajayj","westus2"
|
||||
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","sql2025devstd","Microsoft.SqlVirtualMachine/sqlVirtualMachines","VM running","AHUB","ajayj","westus2"
|
||||
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","ajayjsqlmi","Microsoft.Sql/managedInstances","Ready","BasePrice","ajayj","westus2"
|
||||
"72f988bf-86f1-41af-91ab-2d7cd011db47","fa58cf66-caaf-4ba9-875d-f310d3694845","AdventureworksLT","Microsoft.Sql/servers/databases","Online","BasePrice","ajayj","westus2"
|
||||
|
Reference in New Issue
Block a user