Skip to content

Commit 62940a5

Browse files
Make StorageContainerSasToken parameter optional (Azure#19925)
* Make parameter optional and fix help file * change log * fix order of a help file Co-authored-by: Milan Brkic <[email protected]>
1 parent 9230e7d commit 62940a5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/Sql/Sql/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* StorageContainerSasToken parameter in the `Start-AzSqlInstanceDatabaseLogReplay` cmdlet is now optional
2122

2223
## Version 4.0.0
2324
* Added new fields to the `Get-AzSqlInstanceDatabaseLogReplay` cmdlet

src/Sql/Sql/ManagedDatabase/Cmdlet/StartAzureSqlInstanceDatabaseLogReplay.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class StartAzureSqlInstanceDatabaseLogReplay : AzureSqlManagedDatabaseLog
4242
/// <summary>
4343
/// Gets or sets the Sas token of the storage container.
4444
/// </summary>
45-
[Parameter(Mandatory = true,
45+
[Parameter(Mandatory = false,
4646
HelpMessage = "The storage container Sas token.")]
4747
[Alias("SasToken")]
4848
[ValidateNotNullOrEmpty]

src/Sql/Sql/help/Start-AzSqlInstanceDatabaseLogReplay.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,22 @@ Start-AzSqlInstanceDatabaseLogReplay -ResourceGroupName "ResourceGroup01" -Insta
5353
This command will create new managed database and will start restoring backups from the given container until Complete-AzSqlInstanceDatabaseLogReplay is called with the last backup wanted.
5454

5555
### Example 3
56+
```powershell
57+
Start-AzSqlInstanceDatabaseLogReplay -ResourceGroupName "ResourceGroup01" -InstanceName "ManagedInstance01" -Name "ManagedDatabaseName" `
58+
-StorageContainerIdentity ManagedIdentity -StorageContainerUri "https://test.blob.core.windows.net/testing"
59+
```
5660

57-
Starts a Log Replay service with container identity specified.
61+
Starts a Log Replay service with container identity specified as ManagedIdentity. In this case there is no need to specify StorageContainerSasToken parameter.
5862

63+
### Example 4
5964
```powershell
6065
Start-AzSqlInstanceDatabaseLogReplay -ResourceGroupName "ResourceGroup01" -InstanceName "ManagedInstance01" -Name "ManagedDatabaseName" `
61-
-StorageContainerIdentity ManagedIdentity -StorageContainerUri "https://test.blob.core.windows.net/testing" `
66+
-StorageContainerIdentity SharedAccessSignature -StorageContainerUri "https://test.blob.core.windows.net/testing" `
6267
-StorageContainerSasToken "sv=2019-02-02&ss=b&srt=sco&sp=rl&se=2023-12-02T00:09:14Z&st=2019-11-25T16:09:14Z&spr=https&sig=92kAe4QYmXaht%2Fgjocqwerqwer41s%3D"
6368
```
6469

70+
Starts a Log Replay service with container identity specified as SharedAccessSignature. StorageContainerSasToken parameter is required.
71+
6572
## PARAMETERS
6673

6774
### -AsJob

0 commit comments

Comments
 (0)