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
Copy file name to clipboardExpand all lines: articles/active-directory/external-identities/customers/how-to-single-page-app-vanillajs-configure-authentication.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,8 +98,8 @@ The application uses the [Implicit Grant Flow](../../develop/v2-oauth2-implicit-
98
98
99
99
1. Replace the following values with the values from the Azure portal:
100
100
- Find the `Enter_the_Application_Id_Here` value and replace it with the **Application ID (clientId)**of the app you registered in the Microsoft Entra admin center.
101
-
- In **Authority**, find `Enter_the_Tenant_Subdomain_Here` and replace it with the subdomain of your tenant. For example, if your tenant primary domain is *caseyjensen@onmicrosoft.com*, the value you should enter is *casyjensen*.
102
-
1. Save the file.
101
+
- In **Authority**, find `Enter_the_Tenant_Subdomain_Here` and replace it with the subdomain of your tenant. For example, if your tenant primary domain is `contoso.onmicrosoft.com`, use `contoso`. Ifyou don't have your tenant name, [learn how to read your tenant details](how-to-create-customer-tenant-portal.md#get-the-customer-tenant-details).
Copy file name to clipboardExpand all lines: articles/active-directory/external-identities/customers/how-to-single-page-app-vanillajs-prepare-tenant.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ ms.date: 06/09/2023
18
18
19
19
This tutorial series demonstrates how to build a vanilla JavaScript single-page application (SPA) and prepare it for authentication using the Microsoft Entra admin center. You'll use the [Microsoft Authentication Library for JavaScript](/javascript/api/overview/msal-overview) library to authenticate your app with your Azure Active Directory (Azure AD) for customers tenant. Finally, you'll run the application and test the sign-in and sign-out experiences.
20
20
21
-
In this tutorial, you'll;
21
+
In this tutorial;
22
22
23
23
> [!div class="checklist"]
24
24
> * Register a SPA in the Microsoft Entra admin center, and record its identifiers
Copy file name to clipboardExpand all lines: articles/active-directory/external-identities/customers/how-to-single-page-application-react-prepare-app.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,9 +150,10 @@ Identity related **npm** packages must be installed in the project to enable use
150
150
// };
151
151
```
152
152
153
-
1. Replace the following values with the values from the Azure admin center:
154
-
- Replace `Enter_the_Application_Id_Here` with the **Application (client) ID** value that was recorded earlier from the **Overview** page of the registered application.
155
-
- In **Authority**, find `Enter_the_Tenant_Subdomain_Here` and replace it with the subdomain of your tenant. For example, if your tenant primary domain is *[email protected]*, the value you should enter is *casyjensen*.
153
+
1. Replace the following values with the values from the Azure portal:
154
+
- Find the `Enter_the_Application_Id_Here` value and replace it with the **Application ID (clientId)** of the app you registered in the Microsoft Entra admin center.
155
+
- In **Authority**, find `Enter_the_Tenant_Subdomain_Here` and replace it with the subdomain of your tenant. For example, if your tenant primary domain is `contoso.onmicrosoft.com`, use `contoso`. If you don't have your tenant name, [learn how to read your tenant details](how-to-create-customer-tenant-portal.md#get-the-customer-tenant-details).
156
+
2. Save the file.
156
157
157
158
## Modify *index.js* to include the authentication provider
Copy file name to clipboardExpand all lines: articles/aks/supported-kubernetes-versions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Note important changes to make, before you upgrade to any of the available minor
59
59
| 1.24 | Azure policy 1.0.1<br>Metrics-Server 0.6.3<br>KEDA 2.9.3<br>Open Service Mesh 1.2.3<br>Core DNS V1.9.4<br>0.12.0</br>Overlay VPA 0.11.0<br>Azure-Keyvault-SecretsProvider 1.4.1<br>Ingress AppGateway 1.2.1<br>Eraser v1.1.1<br>Azure Workload Identity V1.1.1<br>ASC Defender 1.0.56<br>AAD Pod Identity 1.8.13.6<br>Gitops 1.7.0<br>KMS 0.5.0| Cilium 1.12.8<br>CNI 1.4.44<br> Cluster Autoscaler 1.8.5.3<br> | OS Image Ubuntu 18.04 Cgroups V1 <br>ContainerD 1.7<br>| No Breaking Changes | None
60
60
| 1.25 | Azure policy 1.0.1<br>Metrics-Server 0.6.3<br>KEDA 2.9.3<br>Open Service Mesh 1.2.3<br>Core DNS V1.9.4<br>0.12.0</br>Overlay VPA 0.11.0<br>Azure-Keyvault-SecretsProvider 1.4.1<br>Ingress AppGateway 1.2.1<br>Eraser v1.1.1<br>Azure Workload Identity V1.1.1<br>ASC Defender 1.0.56<br>AAD Pod Identity 1.8.13.6<br>Gitops 1.7.0<br>KMS 0.5.0| Cilium 1.12.8<br>CNI 1.4.44<br> Cluster Autoscaler 1.8.5.3<br> | OS Image Ubuntu 18.04 Cgroups V1 <br>ContainerD 1.7<br>| Ubuntu 22.04 by default with cgroupv2 and Overlay VPA 0.13.0 |CgroupsV2 - If you deploy Java applications with the JDK, prefer to use JDK 11.0.16 and later or JDK 15 and later, which fully support cgroup v2
| 1.27 Preview | Azure policy 1.0.1<br>Metrics-Server 0.6.3<br>KEDA 2.10.0<br>Open Service Mesh 1.2.3<br>Core DNS V1.9.4<br>0.12.0</br>Overlay VPA 0.11.0<br>Azure-Keyvault-SecretsProvider 1.4.1<br>Ingress AppGateway 1.2.1<br>Eraser v1.1.1<br>Azure Workload Identity V1.1.1<br>ASC Defender 1.0.56<br>AAD Pod Identity 1.8.13.6<br>Gitops 1.7.0<br>KMS 0.5.0|Cilium 1.12.8<br>CNI 1.4.44<br> Cluster Autoscaler 1.8.5.3<br> | OS Image Ubuntu 22.04 Cgroups V1 <br>ContainerD 1.7 for Linux and 1.6 for Windows<br>|Keda 2.10.0 |Because of Ubuntu 22.04 FIPS certification status, we'll switch AKS FIPS nodes from 18.04 to 20.04 from 1.27 preview onwards.
62
+
| 1.27 Preview | Azure policy 1.0.1<br>Metrics-Server 0.6.3<br>KEDA 2.10.0<br>Open Service Mesh 1.2.3<br>Core DNS V1.9.4<br>0.12.0</br>Overlay VPA 0.11.0<br>Azure-Keyvault-SecretsProvider 1.4.1<br>Ingress AppGateway 1.2.1<br>Eraser v1.1.1<br>Azure Workload Identity V1.1.1<br>ASC Defender 1.0.56<br>AAD Pod Identity 1.8.13.6<br>Gitops 1.7.0<br>KMS 0.5.0|Cilium 1.12.8<br>CNI 1.4.44<br> Cluster Autoscaler 1.8.5.3<br> | OS Image Ubuntu 22.04 Cgroups V2 <br>ContainerD 1.7 for Linux and 1.6 for Windows<br>|Keda 2.10.0 |Because of Ubuntu 22.04 FIPS certification status, we'll switch AKS FIPS nodes from 18.04 to 20.04 from 1.27 preview onwards.
Copy file name to clipboardExpand all lines: articles/api-management/soft-delete.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ Use the API Management [Get By Name](/rest/api/apimanagement/current-ga/deleted-
60
60
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}?api-version=2021-08-01
61
61
```
62
62
63
-
If available for undelete, Azure will return a record of the APIM instance showing its `deletionDate` and `scheduledPurgeDate`, for example:
63
+
If available for undelete, Azure will return a record of the API Management instance showing its `deletionDate` and `scheduledPurgeDate`, for example:
This will permanently delete your API Management instance from Azure.
127
127
128
+
## Reuse an API Management instance name after deletion
129
+
130
+
You **can** reuse the name of an API Management instance in a new deployment:
131
+
132
+
* After the instance has been permanently deleted (purged) from Azure.
133
+
134
+
* In the same subscription as the original instance.
135
+
136
+
You **can't** reuse the name of an API Management instance in a new deployment:
137
+
138
+
* While the instance is soft-deleted.
139
+
140
+
* In a subscription other than the one used to deploy the original instance, even after the original instance has been permanently deleted (purged) from Azure. This restriction applies whether the new subscription used is in the same or a different Azure Active Directory tenant. The restriction is in effect for several days or longer after deletion, depending on the subscription type.
141
+
142
+
This restriction is because Azure reserves the service host name to a customer's tenant for a reservation period to prevent the threat of subdomain takeover with dangling DNS entries. For more information, see [Prevent dangling DNS entries and avoid subdomain takeover](/azure/security/fundamentals/subdomain-takeover). To see all dangling DNS entries for subscriptions in an Azure AD tenant, see [Identify dangling DNS entries](/azure/security/fundamentals/subdomain-takeover#identify-dangling-dns-entries).
143
+
144
+
128
145
## Next steps
129
146
130
147
Learn about long-term API Management backup and recovery options:
@@ -28,12 +28,8 @@ Before you begin, you must have the following requirements in place:
28
28
29
29
+ An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
30
30
31
-
::: zone pivot="python-mode-configuration"
32
31
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 4.x.
33
-
::: zone-end
34
-
::: zone pivot="python-mode-decorators"
35
-
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 4.2.1 or later.
36
-
::: zone-end
32
+
37
33
+ One of the following tools for creating Azure resources:
38
34
39
35
+[Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later.
@@ -47,36 +43,6 @@ Before you begin, you must have the following requirements in place:
Verify your prerequisites, which depend on whether you're using Azure CLI or Azure PowerShell for creating Azure resources.
53
-
54
-
# [Azure CLI](#tab/azure-cli)
55
-
56
-
::: zone pivot="python-mode-configuration"
57
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools version is 4.x.
58
-
::: zone-end
59
-
::: zone pivot="python-mode-decorators"
60
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools version is 4.0.4785 or later.
61
-
::: zone-end
62
-
+ Run `az --version` to check that the Azure CLI version is 2.4 or later.
63
-
64
-
+ Run `az login` to sign in to Azure and verify an active subscription.
65
-
66
-
+ Run `python --version` (Linux/macOS) or `py --version` (Windows) to check your Python version reports 3.9.x, 3.8.x, or 3.7.x.
67
-
68
-
# [Azure PowerShell](#tab/azure-powershell)
69
-
70
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools version is 4.x.
71
-
72
-
+ Run `(Get-Module -ListAvailable Az).Version` and verify version 5.0 or later.
73
-
74
-
+ Run `Connect-AzAccount` to sign in to Azure and verify an active subscription.
75
-
76
-
+ Run `python --version` (Linux/macOS) or `py --version` (Windows) to check your Python version reports 3.9.x, 3.8.x, or 3.7.x.
77
-
78
-
---
79
-
80
46
## <aname="create-venv"></a>Create and activate a virtual environment
81
47
82
48
In a suitable folder, run the following commands to create and activate a virtual environment named `.venv`. Make sure that you're using Python 3.9, 3.8, or 3.7, which are supported by Azure Functions.
@@ -146,15 +112,9 @@ In Azure Functions, a function project is a container for one or more individual
146
112
func new --name HttpExample --template "HTTP trigger" --authlevel "anonymous"
147
113
```
148
114
149
-
`func new` creates a subfolder matching the function name that contains a code file appropriate to the project's chosen language and a configuration file named *function.json*.
150
-
151
-
Get the list of templates by using the following command:
152
-
153
-
```console
154
-
func templates list -l python
155
-
```
156
-
::: zone-end
157
-
::: zone pivot="python-mode-decorators"
115
+
`func new` creates a subfolder matching the function name that contains a code file appropriate to the project's chosen language and a configuration file named *function.json*.
116
+
::: zone-end
117
+
::: zone pivot="python-mode-decorators"
158
118
1. Run the `func init` command as follows to create a functions project in a folder named *LocalFunctionProj* with the specified runtime and the specified programming model version.
159
119
160
120
```console
@@ -166,51 +126,33 @@ In Azure Functions, a function project is a container for one or more individual
166
126
```console
167
127
cd LocalFunctionProj
168
128
```
169
-
129
+
170
130
This folder contains various files for the project, including configuration files named [*local.settings.json*](functions-develop-local.md#local-settings-file) and [*host.json*](functions-host-json.md). Because *local.settings.json* can contain secrets downloaded from Azure, the file is excluded from source control by default in the *.gitignore* file.
171
131
172
132
1. The file `function_app.py` can include all functions within your project. To start with, there's already an HTTP function stored in the file.
For an HTTP trigger, the function receives request data in the variable `req` as defined in *function.json*. `req` is an instance of the [azure.functions.HttpRequest class](/python/api/azure-functions/azure.functions.httprequest). The return object, defined as `$return` in *function.json*, is an instance of [azure.functions.HttpResponse class](/python/api/azure-functions/azure.functions.httpresponse). For more information, see [Azure Functions HTTP triggers and bindings](./functions-bindings-http-webhook.md?tabs=python).
198
-
199
-
#### function.json
200
-
201
-
*function.json* is a configuration file that defines the input and output `bindings` for the function, including the trigger type.
202
-
203
-
If desired, you can change `scriptFile` to invoke a different Python file.
Each binding requires a direction, a type, and a unique name. The HTTP trigger has an input binding of type [`httpTrigger`](functions-bindings-http-webhook-trigger.md) and output binding of type [`http`](functions-bindings-http-webhook-output.md).
208
-
::: zone-end
209
-
::: zone pivot="python-mode-decorators"
210
-
`function_app.py` is the entry point to the function and where functions will be stored and/or referenced. This file will include configuration of triggers and bindings through decorators, and the function content itself.
211
-
212
-
For more information, see [Azure Functions HTTP triggers and bindings](./functions-bindings-http-webhook.md?tabs=python).
return func.HttpResponse("HttpTrigger1 function processed a request!")
143
+
```
144
+
145
+
1. Open the local.settings.json project file and verify that the `AzureWebJobsFeatureFlags` setting has a value of `EnableWorkerIndexing`. This is required for Functions to interpret your project correctly as the Python v2 model. You'll add this same setting to your application settings after you publish your project to Azure.
146
+
147
+
1. In the local.settings.json file, update the `AzureWebJobsStorage` setting as in the following example:
This tells the local Functions host to use the storage emulator for the storage connection currently required by the Python v2 model. When you publish your project to Azure, you'll need to instead use the default storage account. If you're instead using an Azure Storage account, set your storage account connection string here.
154
+
::: zone-end
155
+
::: zone pivot="python-mode-decorators"
214
156
## Start the storage emulator
215
157
216
158
By default, local development uses the Azurite storage emulator. This emulator is used when the `AzureWebJobsStorage` setting in the *local.settings.json* project file is set to `UseDevelopmentStorage=true`. When using the emulator, you must start the local Azurite storage emulator before running the function.
0 commit comments