Skip to content

Commit 2cb2c72

Browse files
authored
Merge pull request #7879 from wastoresh/staticweb
[Storage] Support Static Web blob service configuration
2 parents 667dea5 + f8249f0 commit 2cb2c72

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

src/Storage/Commands.Storage/Azure.Storage.psd1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ CmdletsToExport = 'Get-AzureStorageTable', 'New-AzureStorageTableSASToken',
124124
'Stop-AzureStorageBlobCopy', 'Update-AzureStorageServiceProperty',
125125
'Get-AzureStorageServiceProperty',
126126
'Enable-AzureStorageDeleteRetentionPolicy',
127-
'Disable-AzureStorageDeleteRetentionPolicy'
127+
'Disable-AzureStorageDeleteRetentionPolicy',
128+
'Enable-AzureStorageStaticWebsite',
129+
'Disable-AzureStorageStaticWebsite'
128130

129131
# Variables to export from this module
130132
# VariablesToExport = @()

src/Storage/Commands.Storage/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Support Static Website configuration
22+
- Enable-AzureStorageStaticWebsite
23+
- Disable-AzureStorageStaticWebsite
2124

2225
## Version 4.6.1
2326
* Fix Copy Blob/File won't copy metadata when destination has metadata issue

src/Storage/Commands.Storage/Common/Cmdlet/DisableAzureStorageStaticWebsite.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Common.Cmdlet
2323
/// <summary>
2424
/// Disable azure storage service StaticWebsite, currently only available on Blob service
2525
/// </summary>
26+
[Cmdlet("Disable", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageStaticWebsite", SupportsShouldProcess = true),
27+
OutputType(typeof(PSStaticWebsiteProperties))]
2628
public class DisableAzureStorageServiceStaticWebsiteCommand : StorageCloudBlobCmdletBase
2729
{
2830
[Parameter(Mandatory = false)]

src/Storage/Commands.Storage/Common/Cmdlet/EnableAzureStorageStaticWebsite.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Common.Cmdlet
2323
/// <summary>
2424
/// Enable azure storage service StaticWebsite, currently only enabled on Blob service
2525
/// </summary>
26+
[Cmdlet("Enable", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageStaticWebsite", SupportsShouldProcess = true),
27+
OutputType(typeof(PSStaticWebsiteProperties))]
2628
public class EnableAzureStorageServiceStaticWebsiteCommand : StorageCloudBlobCmdletBase
2729
{
2830
[Parameter(Mandatory = true, Position = 0, HelpMessage = "The name of the index document in each directory.")]

0 commit comments

Comments
 (0)