From 3513c12af42bab597f83e2c03f1334b6c502926e Mon Sep 17 00:00:00 2001 From: debalinaroy Date: Fri, 20 Dec 2024 15:02:28 +0530 Subject: [PATCH] Adding managed identity support to sql import export (#26884) * adding managed identity to import export * Updating the ChangeLog * Update ChangeLog.md --------- Co-authored-by: Yabo Hu --- src/Sql/Sql/ChangeLog.md | 6 ++++++ src/Sql/Sql/ImportExport/Model/AuthenticationType.cs | 3 ++- src/Sql/Sql/ImportExport/Model/StorageKeyType.cs | 3 ++- src/Sql/Sql/help/New-AzSqlDatabaseExport.md | 4 ++-- src/Sql/Sql/help/New-AzSqlDatabaseImport.md | 4 ++-- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/Sql/Sql/ChangeLog.md b/src/Sql/Sql/ChangeLog.md index a1253694f4bd..6d490fcdf627 100644 --- a/src/Sql/Sql/ChangeLog.md +++ b/src/Sql/Sql/ChangeLog.md @@ -18,6 +18,12 @@ - Additional information about change #1 --> ## Upcoming Release +* Updated `New-AzSqlDatabaseExport` with support for Managed Identity + - Added `ManagedIdentity` to `StorageKeyType` auth list + - Added `ManagedIdentity` to `AuthenticationType` auth list +* Updated `New-AzSqlDatabaseImport` with support for Managed Identity + - Added `ManagedIdentity` to `StorageKeyType` auth list + - Added `ManagedIdentity` to `AuthenticationType` auth list ## Version 6.0.0 * Added `Start-AzSqlInstanceLinkFailover` cmdlet for Managed Instance Link. diff --git a/src/Sql/Sql/ImportExport/Model/AuthenticationType.cs b/src/Sql/Sql/ImportExport/Model/AuthenticationType.cs index e15b0252ebf1..2ac64821bdf8 100644 --- a/src/Sql/Sql/ImportExport/Model/AuthenticationType.cs +++ b/src/Sql/Sql/ImportExport/Model/AuthenticationType.cs @@ -22,6 +22,7 @@ public enum AuthenticationType { None, Sql, - AdPassword + AdPassword, + ManagedIdentity } } diff --git a/src/Sql/Sql/ImportExport/Model/StorageKeyType.cs b/src/Sql/Sql/ImportExport/Model/StorageKeyType.cs index a03f02cf7676..baf9ae0d4b93 100644 --- a/src/Sql/Sql/ImportExport/Model/StorageKeyType.cs +++ b/src/Sql/Sql/ImportExport/Model/StorageKeyType.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.Commands.Sql.ImportExport.Model public enum StorageKeyType { StorageAccessKey, - SharedAccessKey + SharedAccessKey, + ManagedIdentity } } diff --git a/src/Sql/Sql/help/New-AzSqlDatabaseExport.md b/src/Sql/Sql/help/New-AzSqlDatabaseExport.md index 69841743698e..4f6800ffde99 100644 --- a/src/Sql/Sql/help/New-AzSqlDatabaseExport.md +++ b/src/Sql/Sql/help/New-AzSqlDatabaseExport.md @@ -103,7 +103,7 @@ This parameter is only available on SQL Database V12 servers. Type: Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType Parameter Sets: (All) Aliases: -Accepted values: None, Sql, AdPassword +Accepted values: None, Sql, AdPassword, ManagedIdentity Required: False Position: Named @@ -229,7 +229,7 @@ This value uses a Shared Access Signature (SAS) key. Type: Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType Parameter Sets: (All) Aliases: -Accepted values: StorageAccessKey, SharedAccessKey +Accepted values: StorageAccessKey, SharedAccessKey, ManagedIdentity Required: True Position: Named diff --git a/src/Sql/Sql/help/New-AzSqlDatabaseImport.md b/src/Sql/Sql/help/New-AzSqlDatabaseImport.md index 10d4d14bca37..332c05d2502c 100644 --- a/src/Sql/Sql/help/New-AzSqlDatabaseImport.md +++ b/src/Sql/Sql/help/New-AzSqlDatabaseImport.md @@ -110,7 +110,7 @@ This parameter is only available on SQL Database V12 servers. Type: Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType Parameter Sets: (All) Aliases: -Accepted values: None, Sql, AdPassword +Accepted values: None, Sql, AdPassword, ManagedIdentity Required: False Position: Named @@ -288,7 +288,7 @@ Uses the Shared Access Signature (SAS) key. Type: Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType Parameter Sets: (All) Aliases: -Accepted values: StorageAccessKey, SharedAccessKey +Accepted values: StorageAccessKey, SharedAccessKey, ManagedIdentity Required: True Position: Named