Unregister-AzStackDirectory

Unregister-AzStackDirectory

Question

You are the service administrator of the Azure Stack Hub.You don't want to allow sign-in to Azure Stack Hub services from a guest directory tenant and therefore you decide to unregister the directory.

The administrator of the guest director has uninstalled all Azure Stack Hub applications from the new directory using the required cmdlet.

Now, which cmdlet would you use next?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: A

To unregister a guest directory, both the home Azure Stack Hub directory and guest directory should be configured.

The following steps need to be performed:

The administrator of the guest directory needs to run Unregister-AzsWithMyDirectoryTenant cmdlet to uninstall all the Azure Stack Hub applications from the new directory.

The service administrator of Azure Stack Hub needs to run the Unregister-AzSGuestDirectoryTenant cmdlet.

Option A is correct.

As a Service Administrator, you need to run Unregister-AzSGuestDirectoryTenant cmdlet as the 2nd step to unregister the directory.

Option B is incorrect.

Unregister-AzsWithMyDirectoryTenant is used by the administrator of the guest directory to uninstall all the Azure Stack Hub applications from the new directory (the action which has already been performed in the given scenario).

Option C is incorrect.

Unregister-AzSGuestDirectoryTenant, not the register-AzSGuestDirectoryTenant needs to be used to unregister the directory.

Option D is incorrect.

Update-AzsHomeDirectoryTenant is the cmdlet used to Update the Azure AD tenant permissions.

To know more about configuring multi-tenancy in Azure Stack Hub, please visit the below-given link:

Based on the scenario described, the administrator of Azure Stack Hub wants to unregister a directory and has already uninstalled all Azure Stack Hub applications from the new directory. To complete the process, the next step is to use the "Unregister-AzSGuestDirectoryTenant" cmdlet.

The "Unregister-AzSGuestDirectoryTenant" cmdlet is used to unregister a guest directory tenant from Azure Stack Hub. This cmdlet removes the directory tenant from Azure Stack Hub's list of trusted tenants, revokes any Azure Stack Hub role assignments granted to the guest directory tenant's users, and removes any resources owned by the guest directory tenant.

On the other hand, the "Unregister-AzsWithMyDirectoryTenant" cmdlet is used to unregister a home directory tenant from Azure Stack Hub. The "register-AzSGuestDirectoryTenant" cmdlet is used to register a guest directory tenant with Azure Stack Hub, while the "Update-AzsHomeDirectoryTenant" cmdlet is used to update the home directory tenant configuration.

In summary, the correct answer to the scenario described is A. Unregister-AzSGuestDirectoryTenant.