You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The pipeline variable $variableName will be updated to value $variableValue as well, so it can be used in subsequent tasks of the current job.
83
85
```
84
86
87
+
**Azure DevOps Example**
88
+
This function is intended to be used from an Azure DevOps pipeline. Internally, it uses some predefined Azure DevOps variables.
89
+
One of the environment variables that is used, is the `SYSTEM_ACCESSTOKEN` variable. However, due to safety reasons this variable is not available out-of-the box.
90
+
To be able to use this variable, it must be explicitly added to the environment-variables.
91
+
92
+
> ⚠ When you are using a Linux agent, you need to pass other environment variables that you want to use as well, because these are not available. To be able to use the `ArmOutputs` environment variable, it must be explicitly added to the environment-variables.
93
+
94
+
> 💡 We have seen a much better performance when using Linux agents, and would recommend using Linux agents when possible.
95
+
96
+
Example of how to use this function in an Azure DevOps pipeline:
97
+
98
+
```yaml
99
+
- task: PowerShell@2
100
+
displayName: 'Promote Azure resource outputs to variable group'
101
+
env:
102
+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
103
+
ArmOutputs: $(ArmOutputs) # only needs to be set for Linux agents
In Azure DevOps, below permissions need to be set on your variable group in order to make the 'Promote Azure resource outputs to variable group' task succeed. For more information on service accounts, see [the official Azure DevOps documentation](https://docs.microsoft.com/en-us/azure/devops/organizations/security/permissions?view=azure-devops&tabs=preview-page#service-accounts).
This function is intended to be used from an Azure DevOps pipeline.
148
+
149
+
> ⚠ When you are using a Linux agent, you need to pass other environment variables that you want to use as well, because these are not available. To be able to use the `ArmOutputs` environment variable, it must be explicitly added to the environment-variables.
150
+
151
+
> 💡 We have seen a much better performance when using Linux agents, and would recommend using Linux agents when possible.
152
+
153
+
Example of how to use this function in an Azure DevOps pipeline:
154
+
155
+
```yaml
156
+
- task: PowerShell@2
157
+
displayName: 'Promote Azure resource outputs to pipeline variables'
158
+
env:
159
+
ArmOutputs: $(ArmOutputs) # only needs to be set for Linux agents
# Information on them can be found here: https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml
127
184
```
128
185
129
-
This function is intended to be used from an Azure DevOps pipeline. Internally, it uses some predefined Azure DevOps variables.
130
-
One of the environment variables that is used, is the the `SYSTEM_ACCESSTOKEN` variable. However, due to safety reasons this variable is not available out-of-the box.
186
+
**Azure DevOps Example**
187
+
This function is intended to be used from an Azure DevOps pipeline. Internally, it uses some predefined Azure DevOps variables.
188
+
One of the environment variables that is used, is the `SYSTEM_ACCESSTOKEN` variable. However, due to safety reasons this variable is not available out-of-the box.
131
189
To be able to use this variable, it must be explicitly added to the environment-variables.
132
190
133
191
Example of how to use this function in an Azure DevOps pipeline:
@@ -141,7 +199,8 @@ Example of how to use this function in an Azure DevOps pipeline:
## Removing a soft deleted API Management instance
24
+
25
+
Removes a soft deleted API Management instance.
26
+
For more information on API Management and soft deletion see [here](https://docs.microsoft.com/en-us/azure/api-management/soft-delete#soft-delete-behavior).
# Checking if the API Management instance with name 'my-apim' is listed as a soft deleted service
44
+
# API Management instance has been found for name 'my-apim' as a soft deleted service
45
+
# Removing the soft deleted API Management instance 'my-apim'
46
+
# Successfully removed the soft deleted API Management instance 'my-apim'
47
+
```
48
+
49
+
## Restoring a soft deleted API Management instance
50
+
51
+
Restores a soft deleted API Management instance.
52
+
For more information on API Management and soft deletion see [here](https://docs.microsoft.com/en-us/azure/api-management/soft-delete#soft-delete-behavior).
0 commit comments