This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#I run this on azure devops after I deploy my javascript app (react, vue...) to an azure storage website | |
#Make sure your index.html calls your compiled javascript file that has a unique or build name and you won't need | |
#your customers to have to hard refresh their browsers to get updates. | |
#Note this assumes a common Azure Static website deploy, I haven't found good docs on how to do this | |
az storage blob update --account-name <storageAccount> --account-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxQ== --container-name "`$web" --name "index.html" --content-cache-control "max-age=100" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#For copying Azure WebApp or Azure Functions application settings and connection strings | |
#This will copy from Web App, but not replace, because things like Insights, storage and existing settings | |
#you probably want to keep at times. Most samples I found were only complete replacements which I didn't want | |
#Make sure you're logged in | |
try{ | |
$acct = Get-AzureRmSubscription | |
} | |
catch{ | |
Login-AzureRmAccount |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExpoPushHelper | |
{ | |
public class MyWebClient : WebClient | |
{ | |
protected override WebRequest GetWebRequest(Uri address) | |
{ | |
HttpWebRequest request = base.GetWebRequest(address) as HttpWebRequest; | |
request.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip; | |
return request; | |
} |