If you use account keys or connection strings to access Azure resources, there is a better way!

User Assigned Managed Identities (#UAMI) are more secure and less work to "manage", because you really don't have to maintain them once they are setup.

In this demo we setup connectivity from an #AppService to an Azure #KeyVault and #StorageAccount using UAMI's, showing the .Net code changes required to successfully connect to multiple resources. It isn't difficult!

https://www.youtube.com/watch?v=1W1-1vRRId8

Connect to an Azure service via User Assigned Managed Identities

YouTube

๐ˆ๐ง๐ญ๐ซ๐จ๐๐ฎ๐œ๐ข๐ง๐  ๐Œ๐ข๐œ๐ซ๐จ๐ฌ๐จ๐Ÿ๐ญ ๐ƒ๐ž๐Ÿ๐ž๐ง๐๐ž๐ซ ๐Ÿ๐จ๐ซ ๐‚๐ฅ๐จ๐ฎ๐ ๐‹๐š๐›๐ฌ

Our labs project help you get ramped up with Microsoft Defender for Cloud and provide hands-on practical experience for product features, capabilities, and scenarios. The labs are divided into 3 main tracks, a beginner (level 100/200) and an advanced (level 300+) track. The labs contain several modules cover different pillars such as Cloud Security Posture Management (CSPM) to Cloud Workload Protection (CWP). To start using our labs, you will need to create Azure Trial Subscription which provides you all capabilities for 30 days โ€“ so you have to finish this lab at this point to take advantage of the free trial.

https://github.com/Azure/Microsoft-Defender-for-Cloud/tree/main/Labs

#defender #defenderforcloud #cnapp #cspm #cwp #cwpp #cloudsecurity #multicloud #azure #aws #gcp #microsoft #microsoftsecurity #soc #server #container #storage #dns #api #devops #database #api #github #arc #agentless #storageaccount #mde #vulnerability #mdvm #siem

Microsoft-Defender-for-Cloud/Labs at main ยท Azure/Microsoft-Defender-for-Cloud

Welcome to the Microsoft Defender for Cloud community repository - Azure/Microsoft-Defender-for-Cloud

GitHub

๐—›๐—ผ๐˜„ ๐˜๐—ผ ๐˜€๐—ฒ๐—ฐ๐˜‚๐—ฟ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—ป๐—ฐ๐˜๐—ถ๐—ผ๐—ป ๐—”๐—ฝ๐—ฝ?

๐š‚ฬฒ๐šŽฬฒ๐šŒฬฒ๐šžฬฒ๐š›ฬฒ๐šŽฬฒโ€‚ฬฒ๐š˜ฬฒ๐š™ฬฒ๐šŽฬฒ๐š›ฬฒ๐šŠฬฒ๐šฬฒ๐š’ฬฒ๐š˜ฬฒ๐š—ฬฒ

โžก๏ธDefender for Cloud for assessment of potential configuration-related security vulnerabilities

โžก๏ธLog and monitor: diagnostic settings to configure streaming export of platform logs and metrics

โžก๏ธRequire HTTPS

โžก๏ธSecuring keys with Azure key Vault

โžก๏ธEnable App Service Authentication/Authorization

โžก๏ธUse Azure API Management (APIM) to authenticate requests

โžก๏ธRun your function app with the lowest possible permissions

โžก๏ธStore data encrypted

๐š‚ฬฒ๐šŽฬฒ๐šŒฬฒ๐šžฬฒ๐š›ฬฒ๐šŽฬฒโ€‚ฬฒ๐šฬฒ๐šŽฬฒ๐š™ฬฒ๐š•ฬฒ๐š˜ฬฒ๐šขฬฒ๐š–ฬฒ๐šŽฬฒ๐š—ฬฒ๐šฬฒ

โžก๏ธDisable FTP

โžก๏ธSecure the scm endpoint

๐™ฝฬฒ๐šŽฬฒ๐šฬฒ๐š ฬฒ๐š˜ฬฒ๐š›ฬฒ๐š”ฬฒโ€‚ฬฒ๐šœฬฒ๐šŽฬฒ๐šŒฬฒ๐šžฬฒ๐š›ฬฒ๐š’ฬฒ๐šฬฒ๐šขฬฒ

โžก๏ธSet access restrictions

โžก๏ธSecure the storage account

โžก๏ธPrivate site access with Azure Private Endpoint

โžก๏ธDeploy your function app in isolation configuring a Web Application Firewall (WAF) for App Service Environment.

More details: https://learn.microsoft.com/en-us/azure/azure-functions/security-concepts?tabs=v4

#security #azure #cloud #data #management #streaming #functionapp #serverless #waf #appservice #privateendpoint #networksecurity #securedeployment #apim #ftp #keyvault #key #vulnerability #assessment #misconfiguration #encryption #storage #storageaccount #defender #defenderforcloud #cnapp #cspm #cwpp #microsoft #microsoftsecurity #cloudsecurity #cloudnative #siem #monitoring #soc

Securing Azure Functions

Learn about how to make your function code running in Azure more secure from common attacks.

So, here is a #PowerShell #ResourceGraph query to list all storage accounts and their #allowSharedKeyAccess settings:

Search-AzGraph -Query "resources | where type =~ 'Microsoft.Storage/storageAccounts' | extend allowSharedKeyAccess = parse_json(properties).allowSharedKeyAccess | project subscriptionId, resourceGroup, name, allowSharedKeyAccess"

#Azure #StorageAccount #SharedKeyAccess

Ref: https://learn.microsoft.com/en-gb/azure/storage/common/shared-key-authorization-prevent

Prevent authorization with Shared Key - Azure Storage

To require clients to use Azure AD to authorize requests, you can disallow requests to the storage account that are authorized with Shared Key.

[Share] Change how a #Azure #storageaccount is replicated! How to change the replication setting(s) for an existing storage account. Change LRS to ZRS etc., without opening a Microsoft Support case!
https://learn.microsoft.com/azure/storage/common/redundancy-migration?tabs=portal&WT.mc_id=AZ-MVP-5004796#replication-change-table
Change how a storage account is replicated - Azure Storage

Learn how to change how data in an existing storage account is replicated.