Skip to content
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

AzureDeploy template fails because SAS is a secure string #1

Closed
jimoneil opened this issue May 8, 2016 · 1 comment
Closed

AzureDeploy template fails because SAS is a secure string #1

jimoneil opened this issue May 8, 2016 · 1 comment

Comments

@jimoneil
Copy link

jimoneil commented May 8, 2016

I'd been getting 404 errors when the WebAppWebDeploy/AzureDeploy template tried to access the packageUri. After some trial-and-error, I discovered that it works fine as long as the following line in Deploy-AzureResourceGroup.ps1 is commented/removed:

$ArtifactsLocationSasToken = ConvertTo-SecureString $ArtifactsLocationSasToken -AsPlainText -Force

I tried using the template function string() to wrap the _parameters('artifactsLocationSasToken') reference, but that didn't seem to work.

Lastly, since the -Permission Container switch is used on New-AzureStorageContainer, why generate a SAS token at all. FWIW, I just changed the switch value to Off.

@jimoneil
Copy link
Author

This was a cut-and-paste issue on my part, I had set the type of _artifactsLocationSasToken' to string versus securestring

Still curious on the container permissions though

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

No branches or pull requests

1 participant