Skip to content

Instantly share code, notes, and snippets.

@thuru-zz
thuru-zz / gist:9382cd52dccd0b8d84bf87daa015951f
Last active July 21, 2019 06:21
AAD service principle count
(Get-AzureRmADServicePrincipal).Count
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
@thuru-zz
thuru-zz / blob life cycle policy.json
Last active September 6, 2019 17:33
blob life cycle policy
{
"rules": [
"enabled": true,
"name": "yearly backup rule",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToCool": {
"daysAfterModificationGreaterThan": 30
@thuru-zz
thuru-zz / blob storage usage
Last active January 7, 2020 10:08
using blob storage : 2nd Edt. Practical Azure Application Development : Chapter 04
//
@thuru-zz
thuru-zz / sql database and ef core with asp.net core
Last active January 7, 2020 10:09
accessing azure sql database using ef core in asp.net core : 2nd Edt. Practical Azure Application Development : Chapter 04
//
@thuru-zz
thuru-zz / azurelighthouse_subscription_arm.json
Created March 5, 2020 20:36
Azure Lighthouse ARM template (subscription level permission)
{
"$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"
}
},
@thuru-zz
thuru-zz / azurelighthouse_subscription_arm.json
Created March 5, 2020 20:37
Azure Lighthouse ARM Template (subscription delegated management access)
{
"$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"
}
},