Skip to content

Commit

Permalink
Add support for diagnosticSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
nshekhar221 committed Oct 24, 2024
1 parent e7956df commit 66e5c22
Show file tree
Hide file tree
Showing 9 changed files with 274 additions and 120 deletions.
240 changes: 120 additions & 120 deletions Taskfile.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: network.azure.com/v1api20201101
kind: LoadBalancer
metadata:
name: sampleloadbalancervmss1
namespace: default
spec:
location: westus3
owner:
name: aso-sample-rg
sku:
name: Standard
frontendIPConfigurations:
- name: LoadBalancerFrontend
publicIPAddress:
reference:
group: network.azure.com
kind: PublicIPAddress
name: samplepublicipvmss1
inboundNatPools:
- name: samplenatpoolvmss1
frontendIPConfiguration:
reference:
armId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aso-sample-rg/providers/Microsoft.Network/loadBalancers/sampleloadbalancervmss1/frontendIPConfigurations/LoadBalancerFrontend
protocol: Tcp
frontendPortRangeStart: 50000
frontendPortRangeEnd: 51000
backendPort: 22

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: network.azure.com/v1api20201101
kind: NetworkInterface
metadata:
name: samplenicvmss1
namespace: default
spec:
location: westus3
owner:
name: aso-sample-rg
ipConfigurations:
- name: ipconfig1
privateIPAllocationMethod: Dynamic
subnet:
reference:
group: network.azure.com
kind: VirtualNetworksSubnet
name: samplesubnetvmss1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: network.azure.com/v1api20201101
kind: PublicIPAddress
metadata:
name: samplepublicipvmss1
namespace: default
spec:
location: westus3
owner:
name: aso-sample-rg
sku:
name: Standard
publicIPAllocationMethod: Static
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: network.azure.com/v1api20201101
kind: VirtualNetwork
metadata:
name: samplevnetvmss1
namespace: default
spec:
location: westus3
owner:
name: aso-sample-rg
addressSpace:
addressPrefixes:
- 10.0.0.0/16
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: network.azure.com/v1api20201101
kind: VirtualNetworksSubnet
metadata:
name: samplesubnetvmss1
namespace: default
spec:
owner:
name: samplevnetvmss1
addressPrefix: 10.0.0.0/24
14 changes: 14 additions & 0 deletions v2/samples/insights/v1api/refs/v1api20210401_storageaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: storage.azure.com/v1api20210401
kind: StorageAccount
metadata:
name: samplestoragema
namespace: default
spec:
location: westcentralus
kind: StorageV2
sku:
name: Standard_LRS
owner:
name: aso-sample-rg
accessTier: Hot
# supportsHttpsTrafficOnly: true
11 changes: 11 additions & 0 deletions v2/samples/insights/v1api/refs/v1api20210601_workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: operationalinsights.azure.com/v1api20210601
kind: Workspace
metadata:
name: sampleworkspace
namespace: default
spec:
location: westcentralus
owner:
name: aso-sample-rg
sku:
name: Standalone
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: compute.azure.com/v1api20220301
kind: VirtualMachineScaleSet
metadata:
name: aso-sample-vmss
namespace: default
spec:
location: westus3
owner:
name: aso-sample-rg
platformFaultDomainCount: 2
singlePlacementGroup: false
sku:
capacity: 1
name: STANDARD_D1_v2
upgradePolicy:
mode: Automatic
virtualMachineProfile:
extensionProfile:
extensions:
- name: mycustomextension
publisher: Microsoft.Azure.Extensions
settings:
commandToExecute: /bin/bash -c "echo hello"
type: CustomScript
typeHandlerVersion: "2.0"
networkProfile:
networkInterfaceConfigurations:
- ipConfigurations:
- loadBalancerInboundNatPools:
- reference:
armId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aso-sample-rg/providers/Microsoft.Network/loadBalancers/sampleloadbalancervmss1/inboundNatPools/samplenatpoolvmss1
name: myipconfiguration
subnet:
reference:
group: network.azure.com
kind: VirtualNetworksSubnet
name: samplesubnetvmss1
name: mynicconfig
primary: true
osProfile:
computerNamePrefix: computer
adminUsername: adminUser
adminPassword:
key: password
name: sample-vmss-secret
storageProfile:
imageReference:
publisher: Canonical
offer: 0001-com-ubuntu-server-jammy
sku: 22_04-lts
version: latest

0 comments on commit 66e5c22

Please sign in to comment.