Posts

Showing posts with the label Azure

Create multiple Azure files shares using Powershell

Image
If you have to create multiple shares for an Azure files instance as part of a migration or new deployment it can be very time consuming. This script has been moved to GitHub, link below:

Apply tags to azure resource groups from csv file

Image
This script is used to apply tags as per a csv file. Tags will be applied in uppercase. If a resource group is present in the csv but not in Azure it will be skipped. A log file will be generated in the log folder. A backup of the resource groups previous tags and values will be created in the backup folder. This script has been moved to GitHub, link below:

List object contributors in all Azure subscriptions with Powershell

Image
The below script will loop through all Azure subscriptions excluding Visual Studio subscriptions, it will then look at every object and list/export everyone who has a role that has the word "Contributor" in it. This script has been moved to GitHub, link below: Example below:

AZ-104 - Microsoft Azure Administrator Study Notes

Image
  Manage Azure identities and governance RBAC Roles Contributor Full access to manage Azure resources Cannot assign roles in Azure RBAC Owner Full access to manage Azure resources Can assign roles to other users in Azure RBAC Reader Can view resources but cannot make changes User Access Administrator Can manage user access to Azure resources There is a limit of 2000 custom roles per tenant devtest labs user role only lets you connect, start, restart and shutdown virtual machines in azure devtest labs. You can assign custom roles to users, groups, and service principals at management group, subscription, and resource group scopes. Custom roles can be shared between subscriptions that trust the same Microsoft Entra tenant. There is a limit of 5,000 custom roles per tenant. (For Microsoft Azure operated by 21Vianet, the limit is 2,000 custom roles.) Custom roles can be created using the Azure portal, Azure PowerShell, Azure CLI, or the REST API. Azure Policy Used to ensure Azure resou...