Skip to content

Commit

Permalink
Adding managed identity support to sql import export (Azure#26884)
Browse files Browse the repository at this point in the history
* adding managed identity to import export

* Updating the ChangeLog

* Update ChangeLog.md

---------

Co-authored-by: Yabo Hu <[email protected]>
  • Loading branch information
debalinaroy and VeryEarly authored Dec 20, 2024
1 parent 2f087e4 commit 3513c12
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/Sql/Sql/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion src/Sql/Sql/ImportExport/Model/AuthenticationType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public enum AuthenticationType
{
None,
Sql,
AdPassword
AdPassword,
ManagedIdentity
}
}
3 changes: 2 additions & 1 deletion src/Sql/Sql/ImportExport/Model/StorageKeyType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace Microsoft.Azure.Commands.Sql.ImportExport.Model
public enum StorageKeyType
{
StorageAccessKey,
SharedAccessKey
SharedAccessKey,
ManagedIdentity
}
}
4 changes: 2 additions & 2 deletions src/Sql/Sql/help/New-AzSqlDatabaseExport.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Sql/Sql/help/New-AzSqlDatabaseImport.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3513c12

Please sign in to comment.