Skip to content

Conversation

@yifanz0
Copy link

@yifanz0 yifanz0 commented Jul 13, 2022

Description

This PR includes changes for migrating the rest of the cmdlets that lies under StorageAccount to Track2 SDK.
Cmdlets include:

  • Get/New-AzStorageAccountKey
  • Get- AzStorageUsage
  • Invoke/Stop-AzStorageaccountHierarchicalNamespaceUpgrade
  • Revoke-AzStorageAccountUserDelegationKeys
  • Get-AzStorageAccountNameAvailability
  • Set-AzCurrentStorageAccount

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
    • the markdown help files have been regenerated using the commands listed here

@yifanz0 yifanz0 requested a review from blueww July 13, 2022 07:43
Track2.BlobContainerResource blobContainerResource = this.StorageClientTrack2
.GetBlobContainerResource(this.ResourceGroupName, this.StorageAccountName, this.Name).Get().Value;

//var container = this.StorageClient.BlobContainers.Get(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the commented part

//{
// containerlistResult = this.StorageClient.BlobContainers.ListNext(containerlistResult.NextPageLink);
// WriteContainerList(containerlistResult);
//}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the commented part

Copy link
Member

@blueww blueww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any left cmdlets?
If not, we should remove the Track1 SDK reference.

// this.ResourceGroupName,
// this.StorageAccountName,
// this.ContainerName,
// this.Etag);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the commented part

//this.StorageClient.BlobContainers.ObjectLevelWorm(
// this.ResourceGroupName,
// this.StorageAccountName,
// this.Name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the commented part
Same as below

ParameterSetName = ActiveDirectoryDomainServicesForFileParameterSet)]
[ValidateNotNullOrEmpty]
public string ActiveDirectoryDomainGuid { get; set; }
public Guid ActiveDirectoryDomainGuid { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a breaking change.
We should iether keep the input type as string, or follow the breaking process to release it.

@yifanz0 yifanz0 closed this Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants