View azurelighthouse_subscription_arm.json
{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"mspOfferName": { | |
"type": "string", | |
"metadata": { | |
"description": "Specify the name of the offer from the Managed Service Provider" | |
} | |
}, |
View azurelighthouse_subscription_arm.json
{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"mspOfferName": { | |
"type": "string", | |
"metadata": { | |
"description": "Specify the name of the offer from the Managed Service Provider" | |
} | |
}, |
View blob life cycle policy.json
{ | |
"rules": [ | |
"enabled": true, | |
"name": "yearly backup rule", | |
"type": "Lifecycle", | |
"definition": { | |
"actions": { | |
"baseBlob": { | |
"tierToCool": { | |
"daysAfterModificationGreaterThan": 30 |
View service principle oid.ps
Get-AzureRmADServicePrincipal -ObjectId db9c6f9e-bea0-4325-b18c-dcd6eda668af | |
ServicePrincipalNames : {98b1ebaf-b6b2-4368-ba53-c36ae0551b90, https://identity.azure.net/4zuSVB9vvyfEk5wvTupj9aFQnGVY0bvqMPfQ9bTKrwk=} | |
ApplicationId : 98b1ebaf-b6b2-4368-ba53-c36ae0551b90 | |
DisplayName : chimp01 | |
Id : db9c6f9e-bea0-4325-b18c-dcd6eda668af | |
Type : ServicePrincipal |
View gist:9382cd52dccd0b8d84bf87daa015951f
(Get-AzureRmADServicePrincipal).Count |
View reverse proxy call.cs
string reverseProxyUrl = "http://localhost:19801/ApplicationName/InternalServiceName/RestOfTheUri"; | |
var httpClient = new HttpClient(); | |
var response = await httpClient.GetAsync(reverseProxyUrl); |
View reverse proxy call.cs
string reverseProxyUrl = "http://localhost:19801/ApplicationName/InternalServiceName/RestOfTheUri"; | |
var httpClient = new HttpClient(); | |
var response = await httpClient.GetAsync(reverseProxyUrl); |
View ReverseProxyServiceResponseFilter.cs
public class ReverseProxyServiceResponseFilter : IResultFilter | |
{ | |
public void OnResultExecuted(ResultExecutedContext context) | |
{ | |
if(context.HttpContext.Response.StatusCode == 404) | |
{ | |
context.HttpContext.Response.Headers.Add("X-ServiceFabric", "ResourceNotFound"); | |
} | |
} |
NewerOlder