Get monthly Azure billing invoice of Resource Group usage via email - azure

I want to get the monthly billing invoice of my Azure Resource Group usage sent to my mail instead of downloading it manually from the portal.
This can be possible at subscription level but can this be achieved at Resource group level?
Any ideas please?

You can opt for this option,
To opt in, select your subscription from the Subscriptions blade. You have to opt in for each subscription you own. Select Send my invoice (you might not see this if you're not the account admin), and then select Opt In.
However the bill wont be at the resource group level details

After a lot of research and help from Stack Overflow, I was able to achieve the requirement as mentioned in the question.
You have two options:-
Use the Schedule Export feature in Azure Cost Management.
Use the Azure Cost Management API to create export.
Once you've added scheduled the export, your invoice will be stored in your storage account. (You will need to add the storage account details in the export configuration)
I have used an Azure logic app to pick up the invoice file contents from my storage account and then send it via mail.
Check my post for further clarification -->
Dynamically send blobs from azure storage account to email using azure logic apps

Related

How to customize Subscription contributor role for blocking Storage in Azure

I have a requirement to customize the contributor role at Azure Subscription level, such that, people added to that customized contributor role can NOT view or read the data from the storage account (under that subscription).
This is how i'm doing this:
Step1
Step2
Step3 ( Actions shows * )
This MSFT link does NOT show me the JSON details that can be removed or added so that the read access to the storage account can be blocked.
Hence, I'm trying below ways to customize this (two assignable scopes to cover subscription as well as block viewing the storage data):
Note, The idea is to People need a contributor role to manage the subscription. However, they MUST NOT view the data from the storage under this particular subscription.
I think this is not the right approach. Are there any other ways to achieve this? Thanks.
If you want to create a custom role, then you should have a look at the resource provider operations. From there, you can see all the available actions per resource provider.
You would probably be interested in the DataActions such as Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read and others depending on what you want to filter out.
If you want to block particularly Azure Storage under Subscription Scope Level.
Kindly Exclude Azure Storage under Add Permission Section in order to block Azure Storage only while creating RBAC Role

Azure Sentinel RBAC - Best Practice

We are in the process of implmenting Sentinel with several data sources, what is the best way to do the RBAC?
You would just create the dashboard from Azure Sentinel and assign RBAC roles to it the same way you would with any other Resource in Azure.
The quickstart guide covers it:
To create a new dashboard from scratch, select Dashboards and then +New dashboard.
Select the subscription the dashboard is created in and give it a descriptive name. Each dashboard is an Azure resource like any other, and you can assign it roles (RBAC) to define and limit who can access.
To enable it to show up in your dashboards to pin visualizations to, you have to share it. Click Share and then Manage users.
Use the Check access and Role assignments as you would for any other Azure resource. For more information, see Share Azure dashboards by using RBAC.
Let me know if this helps.
There are two parts to this. The first is using RBAC to secure your Azure Sentinel. This document has more information on that:
https://learn.microsoft.com/en-us/azure/sentinel/roles
The second part is to secure the logs within your Log Analytics workspace. This will control what information those users that have access to your Azure Sentinel can see. So if you want only certain Security Analysts to see your O365 logs you can control it through table level RBAC in the logs.
https://techcommunity.microsoft.com/t5/Azure-Sentinel/Table-Level-RBAC-In-Azure-Sentinel/ba-p/965043

Azure Activity Log alert or notification on a Subscription

I am an admin of a subscription along with some other people.
In Azure is it possible to create Alerts(using Activity Logs) on my Subscription to Notify me if someone adds/modifies or deletes any resource.
I know that i can add alerts on individual resources, but i want to add an alert at the subscription level.
Yes, you can select a resource, resource group, or an entire subscription for activity log signal
We could create the alert with Azure portal and set Alert Target subscription.
For more information, please refer to Create, view, and manage activity log alerts using Azure Monitor.

How to deal with Azure Subscriptions for clients?

I'm fairly new to Azure. I have a personal website in the cloud and played around with some stuff, but that's it. Since I have my first client project coming up in which I will use certain Azure functionality, I was wondering on how to deal with billing.
I will of course put all the resources needed for the client under a new resource group, but the thing I'm wondering about is which subscription to link that resource group to.
Option 1 :
I link it to my own subscription. Least interesting as I would have to send the client an invoice every month charging him the costs that I made through my subscription for his project.
Option 2 :
I add a new subscription under my Azure account, using the client's credit card. This is the most interesting for me as I can see all resources under my Azure account and the client gets billed automatically. But you have to convince the client to give you their credit card information so you can create the subscription.
Option 3 :
The client makes his own Azure account, with a subscription under that account using his credit card. This is less interesting for me as I have to manage 2 Azure accounts. But it's more interesting for the client as they can create their own account and don't have to give me their credit card details.
What's the typical way to go about this? Are there other options that I'm missing? Thanks!
This is a poor question over all (for Stack Overflow at least). But common sense says:
they give you access to their subscription(s)
you create resources in your subscriptions, bill them.

How to track user activity like who is creating what resources on azure of a specific subscription?

In my company we have one Azure subscription and there are two or three users which are added on the same subscription and have right to create any resource on Azure.
Now since three users are working on same subscription and they are independently creating resources, I want to keep track or see which user created what resource on the same subscription.
Please let me know is there any way to see this tracking/activity details corresponding to the user.
Currently all users have administrator role/permission.
You are looking for the Activity Log:
The Azure Activity Log is a log that provides insight into the
operations that were performed on resources in your subscription
The Activity Logs provides customers a Portal and REST API experience to see who performed what management operations (PUT/DELET/POST) through Azure Resource Manager (ARM) for the past 90 days.
For anything older than 90 days, you have the option to archive the data to storage account or stream the data to Event Hub if you would like to ingest this data into your own system.
The Activity Log data is also available through the Operations Management Suite.
http://www.deployazure.com/management/operations-management-suite/azure-activity-log-analytics-alerts-with-operations-management-suite/

Resources