Skip to content

Commit

Permalink
Updated ARM templates and wiki to main branch (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
Porkai-Pandian authored Jun 21, 2022
1 parent df74742 commit a45c53d
Show file tree
Hide file tree
Showing 25 changed files with 99 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
# Azure Functions localsettings file
local.settings.json

Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stages:
jobs:
include:
- stage: WikiUpdate
if: (branch = master) AND (type = push)
if: (branch = main) AND (type = push)
script:
- rm -rf ${REPO_SOURCE}
- rm -rf ${REPO_DEST}
Expand All @@ -37,5 +37,5 @@ jobs:
git add .
git commit -m "${REPO_SOURCE} Wiki Update | Travis CI build number $TRAVIS_BUILD_NUMBER"
git remote add origin-wiki "https://${USER}:${GITHUB_TOKEN}@${GH_REPO_DEST}"
git push origin-wiki master
git push origin-wiki main
fi
2 changes: 1 addition & 1 deletion Deployment/GCC/botazuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"appIconUrl": {
"type": "string",
"minLength": 1,
"defaultValue": "https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/master/Manifest/color.png",
"defaultValue": "https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/main/Manifest/color.png",
"metadata": {
"description": "The link to the icon for the app. It must resolve to a PNG file."
}
Expand Down
2 changes: 1 addition & 1 deletion Deployment/GCC/otherresourcesazuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"metadata":{
"description":"The branch of the GitHub repository to deploy."
},
"defaultValue":"master"
"defaultValue":"main"
}
},
"variables":{
Expand Down
4 changes: 2 additions & 2 deletions Deployment/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"appIconUrl": {
"type": "string",
"minLength": 1,
"defaultValue": "https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/master/Manifest/color.png",
"defaultValue": "https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/main/Manifest/color.png",
"metadata": {
"description": "The link to the icon for the app. It must resolve to a PNG file."
}
Expand Down Expand Up @@ -193,7 +193,7 @@
"metadata": {
"description": "The branch of the GitHub repository to deploy."
},
"defaultValue": "master"
"defaultValue": "main"
},
"serviceBusWebAppRoleNameGuid": {
"defaultValue": "958380b3-630d-4823-b933-f59d92cdcada",
Expand Down
6 changes: 3 additions & 3 deletions Deployment/azuredeploywithcert.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"appIconUrl": {
"type": "string",
"minLength": 1,
"defaultValue": "https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/master/Manifest/color.png",
"defaultValue": "https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/main/Manifest/color.png",
"metadata": {
"description": "The link to the icon for the app. It must resolve to a PNG file."
}
Expand Down Expand Up @@ -199,7 +199,7 @@
"metadata": {
"description": "The branch of the GitHub repository to deploy."
},
"defaultValue": "master"
"defaultValue": "main"
},
"serviceBusWebAppRoleNameGuid": {
"defaultValue": "958380b3-630d-4823-b933-f59d92cdcada",
Expand Down Expand Up @@ -1275,4 +1275,4 @@
"value": "[if(variables('useFrontDoor'), variables('frontDoorDomain'), concat('Please create a custom domain name for ', variables('botAppDomain'), ' and use that in the manifest'))]"
}
}
}
}
4 changes: 2 additions & 2 deletions Deployment/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"Description": "The URL to the GitHub repository to deploy."
},
"gitBranch": {
"Value": "master",
"Value": "main",
"Description": "The branch of the GitHub repository to deploy."
},
"appDisplayName": {
Expand All @@ -124,7 +124,7 @@
"Description": "The app (and bot) description."
},
"appIconUrl": {
"Value": "https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/master/Manifest/color.png",
"Value": "https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/main/Manifest/color.png",
"Description": "The link to the icon for the app. It must resolve to a PNG file."
},
"companyName": {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Please report bugs and other code issues [here](https://github.com/OfficeDev/mic

## Legal notice

This app template is provided under the [MIT License](https://github.com/OfficeDev/microsoft-teams-company-communicator-app/blob/master/LICENSE) terms. In addition to these terms, by using this app template you agree to the following:
This app template is provided under the [MIT License](https://github.com/OfficeDev/microsoft-teams-company-communicator-app/blob/main/LICENSE) terms. In addition to these terms, by using this app template you agree to the following:

- You, not Microsoft, will license the use of your app to users or organization.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class DraftMessages extends React.Component<IMessageProps, IMessageState> {
});
});
this.props.getDraftMessagesList();
// tslint:disable-next-line no-string-based-set-interval
this.interval = setInterval(() => {
this.props.getDraftMessagesList();
}, 60000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class Messages extends React.Component<IMessageProps, IMessageState> {
microsoftTeams.initialize();
this.props.getMessagesList();
document.addEventListener("keydown", this.escFunction, false);
// tslint:disable-next-line no-string-based-set-interval
this.interval = setInterval(() => {
this.props.getMessagesList();
}, 60000);
Expand Down
2 changes: 1 addition & 1 deletion Source/CompanyCommunicator/ClientApp/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const defaultLocale = () => {
}

i18n
// load translation using http -> see /public/locales (i.e. https://github.com/i18next/react-i18next/tree/master/example/react/public/locales)
// load translation using http -> see /public/locales (i.e. https://github.com/i18next/react-i18next/tree/main/example/react/public/locales)
// learn more: https://github.com/i18next/i18next-http-backend
.use(Backend)
// pass the i18n instance to react-i18next.
Expand Down
4 changes: 2 additions & 2 deletions Source/Test/CompanyCommunicator.Common.Test/stylecop.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// will not take effect until additional steps are taken to enable it. See the
// following page for additional information:
//
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/EnableConfiguration.md
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/main/documentation/EnableConfiguration.md

"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/main/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"documentationRules": {
"companyName": "Microsoft",
Expand Down
4 changes: 2 additions & 2 deletions Source/Test/CompanyCommunicator.Test/stylecop.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// will not take effect until additional steps are taken to enable it. See the
// following page for additional information:
//
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/EnableConfiguration.md
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/main/documentation/EnableConfiguration.md

"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/main/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"documentationRules": {
"companyName": "Microsoft",
Expand Down
4 changes: 2 additions & 2 deletions Source/stylecop.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// will not take effect until additional steps are taken to enable it. See the
// following page for additional information:
//
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/EnableConfiguration.md
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/main/documentation/EnableConfiguration.md

"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/main/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"documentationRules": {
"companyName": "Microsoft",
Expand Down
2 changes: 1 addition & 1 deletion Wiki/Deployment-guide-certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Register three Azure AD application in your tenant's directory: one for author b
## 2. Deploy to your Azure subscription
1. Click on the **Deploy to Azure** button below.

[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmaster%2FDeployment%2Fazuredeploywithcert.json)
[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmain%2FDeployment%2Fazuredeploywithcert.json)

1. When prompted, log in to your Azure subscription.

Expand Down
8 changes: 4 additions & 4 deletions Wiki/Deployment-guide-powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To begin, you will need:
- Open a PowerShell window in **administrator** mode and navigate to the folder where you unzipped the content.
- Navigate to Deployment folder.
```
cd microsoft-teams-apps-company-communicator-master\Deployment
cd microsoft-teams-apps-company-communicator-main\Deployment
```
- Run the below command to check if jq is installed or not.
Expand Down Expand Up @@ -133,10 +133,10 @@ To begin, you will need:
> **Note:** The default value is 2 to minimize the chances of an error during app deployment. After deployment you can choose to change the size of the hosting plan.
- `gitRepoUrl` - The URL to the GitHub repository to deploy. Default value: [https://github.com/OfficeDev/microsoft-teams-company-communicator-app.git](https://github.com/OfficeDev/microsoft-teams-company-communicator-app.git)
- `gitBranch` - The branch of the GitHub repository to deploy. Default value: master
- `gitBranch` - The branch of the GitHub repository to deploy. Default value: main
- `appDisplayName` - The app (and bot) display name. Default value:Company Communicator.
- `appDescription` - The app (and bot) description. Default value: Broadcast messages to multiple teams and people in one go.
- `appIconUrl` - The link to the icon for the app. It must resolve to a PNG file. Default value [https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/master/Manifest/color.png](https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/master/Manifest/color.png)
- `appIconUrl` - The link to the icon for the app. It must resolve to a PNG file. Default value [https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/main/Manifest/color.png](https://raw.githubusercontent.com/OfficeDev/microsoft-teams-company-communicator-app/main/Manifest/color.png)
- `companyName` - The display name for the company.
- `websiteUrl` - The https:// URL to you company's website. This link should take users to your company or product-specific landing page.
Expand All @@ -149,7 +149,7 @@ To begin, you will need:
- Open a PowerShell window in **administrator** mode and navigate to Deployment folder
```
cd microsoft-teams-apps-company-communicator-master\Deployment
cd microsoft-teams-apps-company-communicator-main\Deployment
```
- Execute the `deploy.ps1` script in the Powershell window:
```
Expand Down
3 changes: 2 additions & 1 deletion Wiki/Deployment-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Register three Azure AD application in your tenant's directory: one for author b
## 2. Deploy to your Azure subscription
1. Click on the **Deploy to Azure** button below.

[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmaster%2FDeployment%2Fazuredeploy.json)
[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmain%2FDeployment%2Fazuredeploy.json)

1. When prompted, log in to your Azure subscription.

Expand All @@ -111,6 +111,7 @@ Register three Azure AD application in your tenant's directory: one for author b

1. Enter a **Base Resource Name**, which the template uses to generate names for the other resources.
* The `[Base Resource Name]` must be available. For example, if you select `contosocommunicator` as the base name, the name `contosocommunicator` must be available (not taken); otherwise, the deployment will fail with a Conflict error.
* Please make sure to limit the base resource name with maximum of 18 characters.
* Remember the base resource name that you selected. We will need it later.

1. Update the following fields in the template:
Expand Down
2 changes: 1 addition & 1 deletion Wiki/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Yes. Bot Channels Registration only supports multi-tenant account types. Please
### 4. How to clone the GitHub repository?
Please follow this [link](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository) for detailed instructions on cloning GitHub repository to create a local copy on your computer and sync between the two locations.

### 5. I'm using v4.1 Company Communicator. When I resync the Company Communicator, can I set up the v4.1 branch instead of master or v4.1.x?
### 5. I'm using v4.1 Company Communicator. When I resync the Company Communicator, can I set up the v4.1 branch instead of main or v4.1.x?
If you're planning to deploy version ~4, you can select the branch as v4.x but it will not point to the specific 4.1 version. Instead, it will have the highest 4.x version i.e., v4.1.5.

### 6. Can I change the app service plan without any issues?
Expand Down
2 changes: 1 addition & 1 deletion Wiki/Migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ https://github.com/OfficeDev/microsoft-teams-company-communicator-app/wiki/Deplo
6. Global Administrator can also grant consent using following link: https://login.microsoftonline.com/common/adminconsent?client_id=%appId%. Please replace the `%appId%` with the `bot client id` of Microsoft Teams bot app (from above).

##### 3. Click on the "Deploy to Azure" button below
[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmaster%2FDeployment%2Fazuredeploy.json)
[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmain%2FDeployment%2Fazuredeploy.json)
* When prompted, log in to the Azure subscription.

> Please use the same subscription being used for your Company Communicator v1 deployment.
Expand Down
16 changes: 15 additions & 1 deletion Wiki/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ This issue occurs when attempting multiple times node modules are installed by c
3. Once the disconnection is completed. Go to Settings and select External Git and add below URL and branch name.

* Repository : https://github.com/OfficeDev/microsoft-teams-apps-company-communicator.git
* Branch : master (If you are using older version of CC, please select the branch name accordingly.)
* Branch : main (If you are using older version of CC, please select the branch name accordingly.)

![Screenshot of troubleshooting app service deployment](images/troubleshooting_appservicesyncerror_3.png)

Expand Down Expand Up @@ -222,6 +222,20 @@ If you forgot to copy your **authorBotId**, **userBotId** and **appDomain** valu
* **userBotId:** This is the user Microsoft Application ID for the Company Communicator app. It can be found in the "UserAppId" field of your configuration e.g. 5630f8a2-c2a0-4cda-bdfa-c2fa87654321. For the following steps, it will be referred to as %userBotId%.
* **appDomain:** This is the base domain for the Company Communicator app. It is the value in the "AzureAd:ApplicationIdURI" field of your configuration without the "api://" e.g. appName.azurefd.net. For the following steps, it will be referred to as %appDomain%.

## 13. App service deployment fails with the error message "Input string was not in a correct format" due to fsevents package.
App Service deployment failed recently due to deprecation of package version used in the application, the issue is already fixed and released to GitHub. However, if you've performed the deployment already and wanted to fix the failed deployment, then use the below mentioned work around.

#### Fix

- Go to portal.azure.com. Navigate to resource group where all CC resources are deployed.
- Click on the app service -> click on Configuration
- Click on **WEBSITE_NODE_DEFAULT_VERSION.**
- Update the default value to **16.13.0** (previous value -> 10.15.2) and save.
- Click on overview and re-start the app service.
- Once the app service is restarted, navigate to Deployment Center and click on Sync.
- Wait till the deployment is completed. You can validate this once the status changes to Success under logs.

# Didn't find your problem here?
Please report the issue [here](https://github.com/OfficeDev/microsoft-teams-company-communicator-app/issues/new)


Binary file modified Wiki/images/troubleshooting_sourcecontrols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Wiki/v2-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Please refer [step 2](https://github.com/OfficeDev/microsoft-teams-company-commu

1. Click on the **Deploy to Azure** button below.

[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmaster%2FDeployment%2Fazuredeploy.json)
[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmain%2FDeployment%2Fazuredeploy.json)

2. When prompted, log in to your Azure subscription.
> Please use the same subscription being used for your Company Communicator v1 deployment (from step 1).
Expand Down
2 changes: 1 addition & 1 deletion Wiki/v3-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Please refer [step 2](https://github.com/OfficeDev/microsoft-teams-company-commu
### 2. Deploy to your Azure subscription
1. Click on the **Deploy to Azure** button below.

[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmaster%2FDeployment%2Fazuredeploy.json)
[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmain%2FDeployment%2Fazuredeploy.json)

2. When prompted, log in to your Azure subscription.
> Please use the same subscription being used for your Company Communicator v2 deployment (from step 1).
Expand Down
2 changes: 1 addition & 1 deletion Wiki/v4-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Please refer [step 2](https://github.com/OfficeDev/microsoft-teams-company-commu

1. Click on the **Deploy to Azure** button below.

[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmaster%2FDeployment%2Fazuredeploy.json)
[![Deploy to Azure](images/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FOfficeDev%2Fmicrosoft-teams-company-communicator-app%2Fmain%2FDeployment%2Fazuredeploy.json)

2. When prompted, log in to your Azure subscription.
> Please use the same subscription being used for your Company Communicator v3 deployment (from step 1).
Expand Down
Loading

0 comments on commit a45c53d

Please sign in to comment.