Skip to content

Commit

Permalink
Update package versions (#764)
Browse files Browse the repository at this point in the history
* Update packages for security updates

* Fix number and formatting

* Remove scripts
  • Loading branch information
davidchesnut committed May 2, 2024
1 parent 43fa720 commit 6cbb756
Show file tree
Hide file tree
Showing 8 changed files with 7,072 additions and 17,060 deletions.
37 changes: 3 additions & 34 deletions Samples/excel-create-worksheet-from-web-site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,46 +61,14 @@ or download and extract the repository *.zip* file.

### Step 3: Register the sample application(s) in your tenant

The **WebApp** must be registered in Azure AD. To register it, you can:

- follow the steps below for manually register your apps
- or use PowerShell scripts that:
- **automatically** creates the Azure AD applications and related objects (passwords, permissions, dependencies) for you.
- modify the projects' configuration files.

<details>
<summary>Expand this section if you want to use this automation:</summary>

> :warning: If you have never used **Microsoft Graph PowerShell** before, we recommend you go through the [App Creation Scripts Guide](./WebApplication/AppCreationScripts/AppCreationScripts.md) once to ensure that your environment is prepared correctly for this step.

1. On Windows, run PowerShell as **Administrator** and navigate to the root of the cloned directory
1. In PowerShell run:

```PowerShell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
```

1. Run the script to create your Azure AD application and configure the code of the sample application accordingly.
1. For interactive process -in PowerShell, run:

```PowerShell
cd .\AppCreationScripts\
.\Configure.ps1 -TenantId "[Optional] - your tenant id" -AzureEnvironmentName "[Optional] - Azure environment, defaults to 'Global'"
```

> Other ways of running the scripts are described in [App Creation Scripts guide](./AppCreationScripts/AppCreationScripts.md). The scripts also provide a guide to automated application registration, configuration and removal which can help in your CI/CD scenarios.
</details>

#### Choose the Azure AD tenant where you want to create your applications

To manually register the apps, as a first step you'll need to:

1. Sign in to the [Azure portal](https://portal.azure.com).
1. If your account is present in more than one Azure AD tenant, select your profile at the top right corner in the menu on top of the page, and then **switch directory** to change your portal session to the desired Azure AD tenant.

#### Register the client app (contoso-addin-data-to-excel)

1. Navigate to the [Azure portal](https://portal.azure.com) and select the **Azure Active Directory** service.
1. Go to the [Azure portal](https://portal.azure.com) and select the **Azure Active Directory** service.
1. Select the **App Registrations** blade on the left, then select **New registration**.
1. In the **Register an application page** that appears, enter your application's registration information:
1. In the **Name** section, enter a meaningful application name that will be displayed to users of the app, for example `contoso-addin-data-to-excel`.
Expand Down Expand Up @@ -179,7 +147,7 @@ This sample was built using the code from [Vanilla JavaScript single-page applic

### Implement the Excel button

The `WebApplicatoin/App/index.html` page has an `<img>` tag that displays the Excel icon. The click handler calls `openInExcel()` which is in the `WebApplication/App/authPopup.js` file. The `openInExcel` function sends the sales data from `WebApplication/App/tableData.js` in a POST request to the `FunctionCreateSpreadsheet` Azure Functions app.
The `WebApplication/App/index.html` page has an `<img>` tag that displays the Excel icon. The click handler calls `openInExcel()` which is in the `WebApplication/App/authPopup.js` file. The `openInExcel` function sends the sales data from `WebApplication/App/tableData.js` in a POST request to the `FunctionCreateSpreadsheet` Azure Functions app.

### Construct the spreadsheet

Expand Down Expand Up @@ -259,6 +227,7 @@ Open data from your web page in a spreadsheet | Microsoft
Version | Date | Comments
---------| -----| --------
1.0 | January 31, 2023 | Initial release
1.1 | April 24, 2024 | Update package versions

## Copyright

Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6cbb756

Please sign in to comment.