forked from Azure/AzOps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
targetScope = 'subscription' | ||
|
||
resource subLock 'Microsoft.Authorization/locks@2020-05-01' = { | ||
name: 'subscriptionLock' | ||
properties: { | ||
level: 'CanNotDelete' | ||
notes: 'This subscription is locked for Delete operations.' | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
param name string | ||
param staName string | ||
param location string = resourceGroup().location | ||
|
||
var storageName = '${toLower(staName)}${uniqueString(resourceGroup().id)}' | ||
|
||
resource rt 'Microsoft.Network/routeTables@2023-04-01' = { | ||
name: name | ||
location: location | ||
properties: { | ||
disableBgpRoutePropagation: false | ||
routes: [ | ||
] | ||
} | ||
} | ||
|
||
resource storage_resource 'Microsoft.Storage/storageAccounts@2021-08-01' = { | ||
name: storageName | ||
location: location | ||
kind: 'StorageV2' | ||
sku: { | ||
name: 'Standard_GZRS' | ||
} | ||
properties: { | ||
minimumTlsVersion: 'TLS1_2' | ||
networkAcls: { | ||
bypass: 'None' | ||
defaultAction: 'Deny' | ||
} | ||
supportsHttpsTrafficOnly: true | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"name": { | ||
"value": "CustomRouteTable" | ||
}, | ||
"staName": { | ||
"value": "deleteazops" | ||
} | ||
} | ||
} |