Understanding the goals of persistence
Persistence is a pretty simple concept. In general, we want to maintain access to an environment so that we can withstand any active attempts to remove our access to the environment. While an entire chapter could be dedicated to the conceptual ideas around persistence, we do not have the space for that here. Instead, we will provide some general guidelines regarding persistence that you can think about during this chapter. Then, we will apply those ideas to different areas of Azure environments.
Plan on getting caught
For any situation where you want to persist in an environment, you should assume that your presence will be noticed and that your access will be removed. Your initial access vectors should always be considered short-term resources that allow you to set up additional persistence options. While you may be able to maintain access with those initial vectors, they are likely to be the first thing to get burned.