Skip to content

Commit 1ae4ea1

Browse files
authored
Add tutorial steps deleting policies
1 parent 13f476c commit 1ae4ea1

File tree

2 files changed

+63
-6
lines changed

2 files changed

+63
-6
lines changed

Samples/PublicSamples/RecordingBot/docs/tutorials/deploy-tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ administrator and always log in as such unless the tutorial requires otherwise.
3131
5. [Deploy recording sample to AKS cluster](./deploy/5-helm.md)
3232
6. [Create and assign a Recording Policy](./deploy/6-policy.md)
3333
7. [Verify functionality](./deploy/7-test.md)
34-
8. [Clean up Azure resources](./deploy/8-cleanup.md)
34+
8. [Clean up resources](./deploy/8-cleanup.md)
3535

3636
## Variables
3737

Samples/PublicSamples/RecordingBot/docs/tutorials/deploy/8-cleanup.md

+62-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,70 @@
11
# Clean up Azure Resources
22

3-
In this section of the tutorial, we will delete all the Azure resources we created during the tutorial.
3+
In this section of the tutorial, we will delete all the Azure resources we created during the
4+
tutorial. And remove all things we created for the Compliance Recording Policy.
5+
6+
## Remove Compliance Recording Policy
7+
8+
At first we will first undo everything to create a recording policy.
9+
10+
### Unassign Recording Policy
11+
12+
Unassigning the recording policy is done very similar to assigning it:
13+
14+
``` pwsh
15+
Grant-CsTeamsComplianceRecordingPolicy `
16+
-Global `
17+
-PolicyName $null
18+
```
19+
20+
The command should complete without any output to the terminal window.
21+
22+
### Delete the Recording Application
23+
24+
We continue with deleting the recording application that links the recording policy to the
25+
application instance:
26+
27+
``` pwsh
28+
Remove-CsTeamsComplianceRecordingApplication `
29+
-Identity 'Tag:TutorialPolicy/11111111-1111-1111-1111-111111111111'
30+
```
31+
32+
The `Identity` Argument is a combination from the recording policy name and the object-id of the
33+
application instance, it uses the pattern:
34+
35+
`Tag:` + name of the recording policy + `/` + the object-id of the application instance
36+
37+
After running the powershell command it should complete without any output.
38+
39+
### Delete the Recording Policy
40+
41+
After decouplic the application instance and the recording policy we can delete the recording
42+
policy:
43+
44+
``` pwsh
45+
Remove-CsTeamsComplianceRecordingPolicy `
46+
-Identity 'TutorialPolicy'
47+
```
48+
49+
The command should complete successful without any further output.
50+
51+
### Delete the Application Instance
52+
53+
To delete the application instance we need to delete the user principal of the application instance
54+
in the entra id:
55+
56+
``` pwsh
57+
az ad user delete --id [email protected]
58+
```
59+
60+
The command should also complete without any output.
461

562
## Delete Resource Group
663

7-
With deleting the Resource Group we created at the start of this tutorial, we will recursively delete
8-
all the resources within the resource group. To delete the resource group we run:
64+
With deleting the Resource Group we created at the start of this tutorial, we will recursively
65+
delete all the resources within the resource group. To delete the resource group we run:
966

10-
```pwsh
67+
``` pwsh
1168
az group delete --name recordingbottutorial
1269
```
1370

@@ -20,7 +77,7 @@ Since App Registrations are created within a Microsoft Entra Id Tenant and not w
2077
Resource Group. The deletion of the App Registration, we created during the Tutorial, needs to be
2178
done seperately. To do so we run:
2279

23-
```pwsh
80+
``` pwsh
2481
az ad app delete --id cccccccc-cccc-cccc-cccc-cccccccccccc
2582
```
2683

0 commit comments

Comments
 (0)