{"id":15202819,"url":"https://github.com/abhishek0412/azurecli","last_synced_at":"2026-03-05T23:37:45.653Z","repository":{"id":249108334,"uuid":"830547208","full_name":"abhishek0412/azurecli","owner":"abhishek0412","description":"This repository contains PowerShell scripts for managing Azure resources with a focus on security compliance. Each script addresses specific security configurations for various Azure services.","archived":false,"fork":false,"pushed_at":"2024-08-12T06:30:18.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T06:45:14.208Z","etag":null,"topics":["azure","azure-devops","azurecli","azurecli-cheatsheet","cloud","powershell-script"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhishek0412.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-18T13:36:38.000Z","updated_at":"2024-08-12T06:30:21.000Z","dependencies_parsed_at":"2024-08-12T07:48:13.427Z","dependency_job_id":"901cc8d4-da0e-4fef-a10d-aeb1fc19f8c5","html_url":"https://github.com/abhishek0412/azurecli","commit_stats":null,"previous_names":["abhishek0412/azurecli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abhishek0412/azurecli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishek0412%2Fazurecli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishek0412%2Fazurecli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishek0412%2Fazurecli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishek0412%2Fazurecli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhishek0412","download_url":"https://codeload.github.com/abhishek0412/azurecli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishek0412%2Fazurecli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30155643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-devops","azurecli","azurecli-cheatsheet","cloud","powershell-script"],"created_at":"2024-09-28T04:05:45.672Z","updated_at":"2026-03-05T23:37:45.625Z","avatar_url":"https://github.com/abhishek0412.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Security Scripts\n\nThis repository contains PowerShell scripts for managing Azure resources with a focus on security compliance. Each script addresses specific security configurations for various Azure services.\n\n## Scripts Overview\n\n1. **Disable Public Blob Access for Storage Accounts**\n   - **Script:** `DisablePublicBlobAccessStorageAccounts.ps1`\n   - **Purpose:** Disables public blob access for Azure Storage Accounts to enhance security by ensuring that blobs are not publicly accessible.\n   - **Parameters:**\n     - `accounts`: An array of hashtable entries, each containing `ResourceGroup` and `StorageAccount` names.\n   - **Usage:** Run the script and ensure that you have the Azure CLI installed and authenticated.\n\n2. **Disable Shared Key Access for Storage Accounts**\n   - **Script:** `DisableSharedKeyAccessStorageAccounts.ps1`\n   - **Purpose:** Disables shared key access for Azure Storage Accounts to improve security by requiring the use of Azure Active Directory (AAD) for authentication.\n   - **Parameters:**\n     - `accounts`: An array of hashtable entries, each containing `ResourceGroup` and `StorageAccount` names.\n   - **Usage:** Run the script and ensure that you have the Azure CLI installed and authenticated.\n\n3. **Azure SQL Database - Enable Microsoft Entra-Only Authentication**\n   - **Script:** `EnableEntraAuthenticationForSQLDatabases.ps1`\n   - **Purpose:** Ensures that Microsoft Entra (formerly Azure AD) authentication is enabled for Azure SQL Databases to strengthen authentication security.\n   - **Parameters:**\n     - `databases`: An array of hashtable entries, each containing `ResourceGroup` and `SQLDatabaseName`.\n   - **Usage:** Run the script and ensure that you have the Azure CLI installed and authenticated.\n\n4. **Linux Virtual Machines - Install Azure Monitor Agent**\n   - **Script:** `InstallAzureMonitorAgentOnLinuxVMs.ps1`\n   - **Purpose:** Installs the Azure Monitor Agent on Linux Virtual Machines to enable monitoring and logging.\n   - **Parameters:**\n     - `vms`: An array of hashtable entries, each containing `ResourceGroup` and `VMName`.\n   - **Usage:** Run the script and ensure that you have the Azure CLI installed and authenticated.\n\n5. **Windows Virtual Machine Scale Sets - Install Azure Monitor Agent**\n   - **Script:** `InstallAzureMonitorAgentOnWindowsVMSS.ps1`\n   - **Purpose:** Installs the Azure Monitor Agent on Windows Virtual Machine Scale Sets to ensure monitoring and logging capabilities.\n   - **Parameters:**\n     - `vmss`: An array of hashtable entries, each containing `ResourceGroup` and `VMSSName`.\n   - **Usage:** Run the script and ensure that you have the Azure CLI installed and authenticated.\n\n6. **Azure Cosmos DB - Disable Public Network Access**\n   - **Script:** `DisablePublicNetworkAccessCosmosDB.ps1`\n   - **Purpose:** Disables public network access for Azure Cosmos DB accounts to enhance security by restricting network access to only specified virtual networks.\n   - **Parameters:**\n     - `cosmosDBAccounts`: An array of hashtable entries, each containing `ResourceGroup` and `CosmosDBAccountName`.\n   - **Usage:** Run the script and ensure that you have the Azure CLI installed and authenticated.\n\n7. **Ensure Azure Monitor Agent is Installed on Windows Virtual Machines**\n   - **Script:** `EnsureAzureMonitorAgentOnWindowsVMs.ps1`\n   - **Purpose:** Ensures that the Azure Monitor Agent is installed on a list of Azure Windows Virtual Machines.\n   - **Parameters:**\n     - `vms`: An array of hashtable entries, each containing `ResourceGroup` and `VMName`.\n   - **Usage:** Run the script and ensure that you have the Azure CLI installed and authenticated.\n\n8. **Disable Public Blob Access for Azure Storage Accounts**\n   - **Script:** `DisablePublicBlobAccessForStorageAccounts.ps1`\n   - **Purpose:** Disables public blob access for a list of Azure Storage Accounts to ensure blobs are not publicly accessible.\n   - **Parameters:**\n     - `accounts`: An array of hashtable entries, each containing `ResourceGroup` and `StorageAccount` names.\n   - **Usage:** Run the script and ensure that you have the Azure CLI installed and authenticated.\n\n9. **Set Network ACLs Default Action to \"Deny\" for Azure Storage Accounts**\n   - **Script:** `SetNetworkACLsDefaultActionDeny.ps1`\n   - **Purpose:** Sets the network ACLs default action to \"Deny\" for a list of Azure Storage Accounts to enforce stricter network access controls.\n   - **Parameters:**\n     - `accounts`: An array of hashtable entries, each containing `ResourceGroup` and `StorageAccount` names.\n   - **Usage:** Run the script and ensure that you have the Azure CLI installed and authenticated.\n\n## Prerequisites\n\n- **Azure CLI:** Ensure that you have the Azure CLI installed and configured on your machine. You can download it from [Azure CLI Installation](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli).\n- **Authentication:** Authenticate to your Azure account using `az login` before running any of these scripts.\n\n## Running the Scripts\n\n1. Save the relevant PowerShell script to your local machine.\n2. Open a PowerShell terminal.\n3. Navigate to the directory containing the script.\n4. Execute the script using:\n   ```powershell\n   .\\ScriptName.ps1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhishek0412%2Fazurecli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhishek0412%2Fazurecli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhishek0412%2Fazurecli/lists"}