Skip to content

Commit a8cc274

Browse files
mumurug-MSFTggailey777
authored andcommitted
(AzureCXP) fixes MicrosoftDocs/azure-docs#120597
1 parent 65bdbe1 commit a8cc274

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/azure-functions/disable-function.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ While the application setting method is recommended for all languages and all ru
122122

123123
### C# class libraries
124124

125-
In a class library function, you can also use the `Disable` attribute to prevent the function from being triggered. This attribute lets you customize the name of the setting used to disable the function. Use the version of the attribute that lets you define a constructor parameter that refers to a Boolean app setting, as shown in the following example:
125+
In a class library function (`In-process` model), you can also use the `Disable` attribute to prevent the function from being triggered. This attribute lets you customize the name of the setting used to disable the function. Use the version of the attribute that lets you define a constructor parameter that refers to a Boolean app setting, as shown in the following example:
126126

127127
```csharp
128128
public static class QueueFunctions
@@ -138,6 +138,9 @@ public static class QueueFunctions
138138
}
139139
```
140140

141+
> [!NOTE]
142+
> [Disable] attribute is not available in Isolated worker model.
143+
141144
This method lets you enable and disable the function by changing the app setting, without recompiling or redeploying. Changing an app setting causes the function app to restart, so the disabled state change is recognized immediately.
142145

143146
There's also a constructor for the parameter that doesn't accept a string for the setting name. This version of the attribute isn't recommended. If you use this version, you must recompile and redeploy the project to change the function's disabled state.

0 commit comments

Comments
 (0)