Skip to content

Conversation

@ssemyan
Copy link
Contributor

@ssemyan ssemyan commented Dec 20, 2017

I was unable to get the original code working, and as the comments for the page indicated, there were typos. This new code should work better.

Page Comments:

Jon_Kennerly3 5 days ago

Getting errors now, but this was working before. Did an update to the SDK change things?

Cannot find an overload for "Add" and the argument count: "2"

$permissions.SharedAccessPolicies.Add($policyName, $policy)

Cannot find an overload for "GetSharedAccessSignature" and the argument count: "2"

$sas = $cbc.GetSharedAccessSignature($policy, $policyName)

Charlie_Pyne Jul 6, 2017

CREATE CREDENTIAL command created via the PS script would not work for me.

Generating the shared access signiture via Azure Portal and adding to the CREATE CREDENTIAL statement, (minus the leading "?"), worked fine.

Kent_Gaardmand Jun 25, 2017

Also $policyName = $policyName is not needed

Kent_Gaardmand Jun 25, 2017

$policy = new-object 'Microsoft.WindowsAzure.Storage.Blob.SharedAccessBlobPolicy' is listed twice, resulting in it being emtpy for creating $sas

…re.md

I was unable to get the original code working, and as the comments for the page indicated, there were typos: 

Jon_Kennerly3 5 days ago

Getting errors now, but this was working before. Did an update to the SDK change things?

Cannot find an overload for "Add" and the argument count: "2"

$permissions.SharedAccessPolicies.Add($policyName, $policy)

Cannot find an overload for "GetSharedAccessSignature" and the argument count: "2"

$sas = $cbc.GetSharedAccessSignature($policy, $policyName)

Charlie_Pyne Jul 6, 2017

CREATE CREDENTIAL command created via the PS script would not work for me.  

Generating the shared access signiture via Azure Portal and adding to the CREATE CREDENTIAL statement, (minus the leading "?"), worked fine.

Kent_Gaardmand Jun 25, 2017

Also $policyName = $policyName is not needed

Kent_Gaardmand Jun 25, 2017

$policy = new-object 'Microsoft.WindowsAzure.Storage.Blob.SharedAccessBlobPolicy' is listed twice, resulting in it being emtpy for creating $sas
@PRMerger3
Copy link
Contributor

@ssemyan : Thanks for your contribution to the SQL documentation! The author, @MikeRayMSFT, has been notified to review your proposed change.

Copy link
Contributor

@MikeRayMSFT MikeRayMSFT left a comment

Choose a reason for hiding this comment

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

@ssemyan - thank you for your submission!

@MikeRayMSFT
Copy link
Contributor

#sign-off

@craigg-msft craigg-msft merged commit 0557334 into MicrosoftDocs:live Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants