Skip to content

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

Merged
merged 31 commits into from
Oct 5, 2015

Conversation

markcowl
Copy link
Member

@markcowl markcowl commented Oct 2, 2015

No description provided.

…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);
Copy link
Member

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

@stankovski
Copy link
Member

LGTM

@markcowl
Copy link
Member Author

markcowl commented Oct 3, 2015

@@ -0,0 +1,16 @@
using System;
Copy link
Contributor

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)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment above

Copy link
Member Author

Choose a reason for hiding this comment

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

same

@markcowl
Copy link
Member Author

markcowl commented Oct 3, 2015

on demand run here: http://azuresdkci.cloudapp.net/job/powershell-on-demand/214/ (and passing)

markcowl added a commit that referenced this pull request Oct 5, 2015
Make storage data cmdlets work with ARM and ASM
@markcowl markcowl merged commit 8d4d9a3 into Azure:dev Oct 5, 2015
@markcowl markcowl deleted the storagecontext branch March 2, 2016 23:27
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.

4 participants