Skip to content

[Release 1.6.0] Add warning message for incoming breaking change on ShouldContinue and ShouldProcess #2574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
##2016.07.11 version 1.6.0
* Azure Storage
* Change Tags Parameter to Tag, and add parameter alias Tags
- New-AzureRmStorageAccount
- Set-AzureRmStorageAccount
* Azure Network
* New cmdlet added for Virtual Network Peering
* Azure Redis Cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public override void ExecuteCmdlet()
{
base.ExecuteCmdlet();

WriteWarning("Will add confirmation of executing the cmdlet and Force parameter in a future release. ");

this.StorageClient.StorageAccounts.Delete(
this.ResourceGroupName,
this.Name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ public override void ExecuteCmdlet()
{
base.ExecuteCmdlet();

WriteWarning("Will add confirmation of executing the cmdlet and Force parameter in a future release. ");
WriteWarning("The usage of Tags parameter in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494");

StorageAccountUpdateParameters updateParameters = new StorageAccountUpdateParameters();
if (this.SkuName != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ internal bool RemoveAzureContainerStoredAccessPolicy(IStorageBlobManagement loca
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
public override void ExecuteCmdlet()
{
WriteWarning("Force parameter in this cmdlet will be removed in a future release.");

if (String.IsNullOrEmpty(Container) || String.IsNullOrEmpty(Policy)) return;
bool success = RemoveAzureContainerStoredAccessPolicy(Channel, Container, Policy);
string result = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ internal bool RemoveAzureShareStoredAccessPolicy(IStorageFileManagement localCha
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
public override void ExecuteCmdlet()
{
WriteWarning("Force parameter in this cmdlet will be removed in a future release.");

bool success = RemoveAzureShareStoredAccessPolicy(Channel, ShareName, Policy);
string result = string.Empty;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ internal virtual bool ConfirmRemove(string message)
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
public override void ExecuteCmdlet()
{
WriteWarning("Force parameter in this cmdlet will be removed in a future release.");

if (String.IsNullOrEmpty(Queue) || String.IsNullOrEmpty(Policy)) return;
bool success = RemoveAzureQueueStoredAccessPolicy(Channel, Queue, Policy);
string result = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ internal bool RemoveAzureTableStoredAccessPolicy(IStorageTableManagement localCh
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
public override void ExecuteCmdlet()
{
WriteWarning("Force parameter in this cmdlet will be removed in a future release.");

if (String.IsNullOrEmpty(Table) || String.IsNullOrEmpty(Policy)) return;
bool success = RemoveAzureTableStoredAccessPolicy(Channel, Table, Policy);
string result = string.Empty;
Expand Down