Superior! The customized function that has been registered in Azure and we will go forward and make use of the function.
Deleting a Customized Position
In case if, you wish to go forward and delete that function, first delete the function task then after deleting the customized function. In any other case, you’ll get an error as proven under
Take away-AzRoleDefinition: There are current function assignments referencing function c5104a7d-4fcd-4eff-a2a3-8e883619417b. The function assignments should be deleted earlier than the function could be deleted.
To take away function task, we will run the under command first. This command just like a brand new function task. The next instance removes My Customized Position task from the firstname.lastname@example.org person on the cloud-shell-storage-westeurope useful resource group.
- Take away-AzRoleAssignment -ResourceGroupName cloud-shell-storage-westeurope -SignInName email@example.com -RoleDefinitionName “My Customized Position”
To delete a customized function, use the Take away-AzRoleDefinition command.
- Get-AzRoleDefinition “My Customized Position” | Take away-AzRoleDefinition
You possibly can simply obtain the identical performance via the Azure portal as nicely. For that, we have to delete the function task first then from the roles tab, choose customized function, after which click on on take away.
On this article, we have now seen how we will create a customized function from Azure PowerShell and the way newly created roles assigned to a person, and eventually, we deleted that customized function. Hope you gained some insights into this matter and located this info helpful!