1
1
# Clean up Azure Resources
2
2
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.
4
61
5
62
## Delete Resource Group
6
63
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:
9
66
10
- ``` pwsh
67
+ ``` pwsh
11
68
az group delete --name recordingbottutorial
12
69
```
13
70
@@ -20,7 +77,7 @@ Since App Registrations are created within a Microsoft Entra Id Tenant and not w
20
77
Resource Group. The deletion of the App Registration, we created during the Tutorial, needs to be
21
78
done seperately. To do so we run:
22
79
23
- ``` pwsh
80
+ ``` pwsh
24
81
az ad app delete --id cccccccc-cccc-cccc-cccc-cccccccccccc
25
82
```
26
83
0 commit comments