Skip to content

Instantly share code, notes, and snippets.

View ammarbrohi's full-sized avatar

Ammar Brohi ammarbrohi

View GitHub Profile
@jcorioland
jcorioland / azstoragesas.php
Created February 24, 2017 11:13
Generate Microsoft Azure Storage account shared access signature with PHP
<?php
/**
* Generates a shared access signature for Microsoft Azure storage
* cf. https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/constructing-an-account-sas
*
* @param (accountName) The name of the Microsoft Azure storage account
* @param (storageKey) The access key of the Microsoft Azure storage account
* @param (signedPermissions) Required. Specifies the signed permissions for the account SAS
* @param (signedService) Required. Specifies the signed services accessible with the account SAS