Azure

Implementing An Azure Customized Position Utilizing Azure PowerShell

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 user3@anupamxxxxxxxx.onmicrosoft.com person on the cloud-shell-storage-westeurope useful resource group.

  1. Take away-AzRoleAssignment -ResourceGroupName cloud-shell-storage-westeurope -SignInName user3@anupamxxxxxxxx.onmicrosoft.com -RoleDefinitionName “My Customized Position”  

To delete a customized function, use the Take away-AzRoleDefinition command.

  1. 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.

 

Conclusion

 

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! 

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button