-
Notifications
You must be signed in to change notification settings - Fork 4k
Make storage data cmdlets work with ARM and ASM #1041
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
Conversation
…ing in storage cmdlets Add GetCurrentStorageAccount implementation for ARM. Add comments to new public utility methods.
…isplay in profile cmdlets, and implementing set current storage account for ARM
…ubscription storage accounts for non-default subscriptions; fixing merge issue with selecting profile
@@ -27,7 +28,7 @@ public class GetAzureRMContextCommand : AzureRMCmdlet | |||
{ | |||
protected override void ProcessRecord() | |||
{ | |||
WriteObject((PSAzureContext)AzureRMCmdlet.DefaultProfile.Context); | |||
WriteObject((PSAzureContext)AzureRmProfileProvider.Instance.Profile.Context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this can now be simplified to just this.DefaultProfile.Context
LGTM |
@@ -0,0 +1,16 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add copyright header
return new CloudStorageAccount( | ||
new StorageCredentials(accountName, | ||
Convert.ToBase64String(Encoding.UTF8.GetBytes(Guid.NewGuid().ToString()))), | ||
new Uri(string.Format("https://{0}.blob.core.windows.net", accountName)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
on demand run here: http://azuresdkci.cloudapp.net/job/powershell-on-demand/214/ (and passing) |
Make storage data cmdlets work with ARM and ASM
No description provided.