From 8904a783b8292222157c7ad2aa5ff4acd636e03b Mon Sep 17 00:00:00 2001 From: Vishal K Date: Tue, 17 Oct 2023 22:32:55 +0530 Subject: [PATCH 1/2] added basic commands and more information for Azure --- Cloud_providers/Azure/azure.md | 57 ++++++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/Cloud_providers/Azure/azure.md b/Cloud_providers/Azure/azure.md index a12af0e..4a35f9a 100644 --- a/Cloud_providers/Azure/azure.md +++ b/Cloud_providers/Azure/azure.md @@ -1,4 +1,4 @@ -# Microsoft Azure Concepts +# 1. Microsoft Azure Concepts Microsoft Azure is a comprehensive cloud computing platform provided by Microsoft. Here are some fundamental concepts to understand when working with Azure: @@ -97,4 +97,57 @@ Microsoft Azure is a comprehensive cloud computing platform provided by Microsof - **Azure Sentinel:** Azure Sentinel is a cloud-native Security Information and Event Management (SIEM) service that provides intelligent security analytics for threat detection and response across your organization's resources. -- **Security Connectors:** Sentinel integrates with a wide range of Microsoft and third-party security solutions to collect and analyze security data. \ No newline at end of file +- **Security Connectors:** Sentinel integrates with a wide range of Microsoft and third-party security solutions to collect and analyze security data. + +# 2. Basic Commands +These are only basic commands for more you can consider https://learn.microsoft.com/en-us/azure/?product=popular + +### 1. Login to Azure Account: +```az login``` + +### 2. List Subscriptions: +```az account list``` + +### 3. Set Active Subscription: +```az account set --subscription "Subscription Name or ID"``` + +### 4. List Resource Groups: +```az group list``` + +### 5. Create a Resource Group: +```az group create --name "ResourceGroupName" --location "East US"``` + +### 6. Deploy a Virtual Machine: +```az vm create --resource-group "ResourceGroupName" --name "VMName" --image "UbuntuLTS" --admin-username "azureuser" --admin-password "Password123"``` + +### 7. Start/Stop/Restart a Virtual Machine: +```az vm start --resource-group ResourceGroupName" --name "VMName" az vm stop --resource-group "ResourceGroupName" --name "VMName" az vm restart --resource-group "ResourceGroupName" --name "VMName"``` + +### 8. List Virtual Machines: +```az vm list --resource-group "ResourceGroupName"``` + +### 9. Delete a Virtual Machine: +```az vm delete --resource-group "ResourceGroupName" --name "VMName" --yes --no-wait``` + +### 10. Create a Storage Account: +```az storage account create --name "storageaccountname" --resource-group "ResourceGroupName" --location "East US" --sku "Standard_LRS"``` + +### 11. List Storage Accounts: +```az storage account list --resource-group "ResourceGroupName"``` + +### 12. Create a Blob Container: +```az storage container create --name "containername" --account-name "storageaccountname" --account-key "accountkey"``` + +### 13. List Blob Containers: +```az storage container list --account-name "storageaccountname" --account-key "accountkey"``` + +### 14. Deploy Azure Web App: +```az webapp create --resource-group "ResourceGroupName" --plan "AppServicePlanName" --name "WebAppName" --runtime "DOTNET|10.0" --deployment-local-git``` + +### 15. List Azure Web Apps: +```az webapp list --resource-group "ResourceGroupName"``` + +For more can check out : https://learn.microsoft.com/en-us/azure/?product=popular + +Happy Learning ! + From 2f1d09ea32c62257f9fc9c06c6e6a80c524c5a24 Mon Sep 17 00:00:00 2001 From: Vishal K Date: Tue, 17 Oct 2023 22:53:22 +0530 Subject: [PATCH 2/2] added commands for GCP --- Cloud_providers/GCP/gcp.md | 59 +++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/Cloud_providers/GCP/gcp.md b/Cloud_providers/GCP/gcp.md index 461b735..2a8ca60 100644 --- a/Cloud_providers/GCP/gcp.md +++ b/Cloud_providers/GCP/gcp.md @@ -1,4 +1,4 @@ -# Google Cloud Platform (GCP) Concepts +# 1. Google Cloud Platform (GCP) Concepts Google Cloud Platform is a suite of cloud computing services offered by Google. Here are some fundamental concepts to understand when working with GCP: @@ -123,3 +123,60 @@ Google Cloud Platform is a suite of cloud computing services offered by Google. - **Apache Beam:** Dataflow is based on the Apache Beam open-source project. These advanced concepts and services in Google Cloud Platform expand its capabilities for building scalable, secure, and data-driven cloud solutions. + + +# 2. Basic Commands +These are only basic commands for more you can consider https://cloud.google.com/docs + +### 1. Login to GCP Account: +```gcloud auth login``` + +### 2. Set Project: (arduino) +```gcloud config set project PROJECT_ID``` + +### 3. List Projects: +```gcloud projects list``` + +### 4. Create a New VM Instance: +```gcloud compute instances create INSTANCE_NAME --machine-type MACHINE_TYPE --image IMAGE``` + +### 5. SSH into a VM Instance: +```gcloud compute ssh INSTANCE_NAME``` + +### 6. List VM Instances: +```gcloud compute instances list``` + +### 7. Create a Cloud Storage Bucket: +```gsutil mb -p PROJECT_ID gs://BUCKET_NAME/``` + +### 8. Upload a File to Cloud Storage: +```gsutil cp FILE_PATH gs://BUCKET_NAME/``` + +### 9. List Files in Cloud Storage Bucket: +```gsutil ls gs://BUCKET_NAME/``` + +### 10. Create a Pub/Sub Topic: +```gcloud pubsub topics create TOPIC_NAME``` + +### 11. Publish a Message to Pub/Sub Topic: +```gcloud pubsub topics publish TOPIC_NAME --message "MESSAGE"``` + +### 12. Create a Cloud SQL Instance (MySQL): +```gcloud sql instances create INSTANCE_NAME --database-version=MYSQL_5_7 --tier=db-n1-standard-1``` + +### 13. List Cloud SQL Instances: +```gcloud sql instances list``` + +### 14. Deploy App Engine Application: +```gcloud app deploy app.yaml``` + +### 15. List App Engine Services: +```gcloud app services list``` + +### 16. Create a Kubernetes Cluster: +```gcloud container clusters create CLUSTER_NAME --num-nodes=1 --zone=COMPUTE_ZONE``` + +### 17. List Kubernetes Clusters: +```gcloud container clusters list``` + +As said you can always official documentation for more commands and concepts https://cloud.google.com/docs \ No newline at end of file