Skip to content

Commit 25b27c5

Browse files
authored
Merge pull request #83916 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to master to sync with https://github.com/Microsoft/azure-docs (branch master)
2 parents 41de771 + 6ca18b2 commit 25b27c5

File tree

9 files changed

+60
-55
lines changed

9 files changed

+60
-55
lines changed

articles/active-directory/develop/msal-logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Program
6666
.Build();
6767

6868
AuthenticationResult result = application.AcquireTokenInteractive(scopes)
69-
.ExecuteAsnc();
69+
.ExecuteAsync().Result;
7070
}
7171
}
7272
```

articles/active-directory/fundamentals/active-directory-faq.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Additionally, Azure AD paid services like Enterprise Mobility + Security complem
6565
**Q: How do I leave a tenant when I am added as a collaborator?**
6666

6767
**A:** When you are added to another organization's tenant as a collaborator, you can use the "tenant switcher" in the upper right to switch between tenants. Currently, there is no way to leave the inviting organization, and Microsoft is working on providing this functionality. Until this feature is available, you can ask the inviting organization to remove you from their tenant.
68+
6869
---
6970
**Q: How can I connect my on-premises directory to Azure AD?**
7071

articles/analysis-services/analysis-services-scale-out.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ To learn more, see [Monitor server metrics](analysis-services-monitor.md).
6868

6969
### In Azure portal
7070

71-
1. In the portal, click **Scale-out**. Use the slider to select the number of query replica servers. The number of replicas you choose is in addition to your existing server.
71+
1. In the portal, click **Scale-out**. Use the slider to select the number of query replica servers. The number of replicas you choose is in addition to your existing server.
7272

7373
2. In **Separate the processing server from the querying pool**, select yes to exclude your processing server from query servers. Client [connections](#connections) using the default connection string (without `:rw`) are redirected to replicas in the query pool.
7474

@@ -138,6 +138,10 @@ For SSMS, SSDT, and connection strings in PowerShell, Azure Function apps, and A
138138

139139
![Server names](media/analysis-services-scale-out/aas-scale-out-name.png)
140140

141+
## Scale up \ down vs. Scale out
142+
143+
You can change server's pricing tier on server with multiple replicas. The same pricing tier applies to all replicas. Scale up and scale down operation will first bring down all replicas all at once then bring up all replicas on the new pricing tier.
144+
141145
## Troubleshoot
142146

143147
**Issue:** Users get error **Cannot find server '\<Name of the server>' instance in connection mode 'ReadOnly'.**

articles/azure-monitor/platform/template-workspace-configuration.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ The following template sample illustrates how to:
181181
"description": "Number of days of retention. Workspaces in the legacy Free pricing tier can only have 7 days."
182182
}
183183
},
184-
{
185184
"immediatePurgeDataOn30Days": {
186185
"type": "bool",
187186
"metadata": {
@@ -565,4 +564,4 @@ The Azure quickstart template gallery includes several templates for Log Analyti
565564

566565
* [Deploy Windows agent to Azure VMs using Resource Manager template](../../virtual-machines/extensions/oms-windows.md).
567566

568-
* [Deploy Linux agent to Azure VMs using Resource Manager template](../../virtual-machines/extensions/oms-linux.md).
567+
* [Deploy Linux agent to Azure VMs using Resource Manager template](../../virtual-machines/extensions/oms-linux.md).

articles/backup/backup-instant-restore-capability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ If the recovery type is “snapshot and vault”, restore will be automatically
100100
The new model does not allow deleting the restore point (Tier2) unless the snapshot (Tier1) is deleted. We recommend scheduling restore point (Tier2) retention period greater than the snapshot retention period.
101101

102102
### Why is my snapshot existing even after the set retention period in backup policy?
103-
If the recovery point has snapshot and that is the latest RP available, it is retained until the time there is a next successful backup. This is as per the designed GC policy today that mandates at least one latest RP to be always present in case all backups further on fail due to an issue in the VM. In normal scenarios, RPs are cleaned up in maximum of 24 hours after their expiry.
103+
If the recovery point has snapshot and that is the latest RP available, it is retained until the time there is a next successful backup. This is as per the designed "garbage collection" (GC) policy today that mandates at least one latest RP to be always present in case all backups further on fail due to an issue in the VM. In normal scenarios, RPs are cleaned up in maximum of 24 hours after their expiry.

articles/blockchain/service/connect-truffle.md

Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Truffle is a blockchain development environment you can use to connect to an Azu
2424
* [Create an Azure Blockchain member](create-member.md)
2525
* Install [Truffle](https://github.com/trufflesuite/truffle). Truffle requires several tools to be installed including [Node.js](https://nodejs.org), [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
2626
* Install [Python 2.7.15](https://www.python.org/downloads/release/python-2715/). Python is needed for Web3.
27+
* Install [Visual Studio Code](https://code.visualstudio.com/download).
28+
* Install [Visual Studio Code Solidity extension](https://marketplace.visualstudio.com/items?itemName=JuanBlanco.solidity).
2729

2830
## Create Truffle project
2931

@@ -49,39 +51,52 @@ Truffle is a blockchain development environment you can use to connect to an Azu
4951
```
5052

5153
You may receive npm warnings during installation.
54+
55+
## Configure Truffle project
5256

53-
1. Launch Truffle's interactive development console.
57+
To configure the Truffle project, you need some transaction node information from the Azure portal.
5458

55-
``` bash
56-
truffle develop
57-
```
59+
### Transaction node endpoint addresses
5860

59-
Truffle creates a local development blockchain and provides an interactive console.
61+
1. In the Azure portal, navigate to each transaction node and select **Transaction nodes > Connection strings**.
62+
1. Copy and save the endpoint URL from **HTTPS (Access key 1)** for each transaction node. You need the endpoint addresses for the smart contract configuration file later in the tutorial.
6063

61-
## Connect to transaction node
64+
![Transaction endpoint address](./media/send-transaction/endpoint.png)
6265

63-
Use *Web3* to connect to the transaction node. You can get the *Web3* connection string from the Azure portal.
66+
### Edit configuration file
6467

65-
1. Sign in to the [Azure portal](https://portal.azure.com).
66-
1. Navigate to your Azure Blockchain Service member. Select **Transaction nodes** and the default transaction node link.
68+
1. Launch Visual Studio Code and open the Truffle project directory folder using the **File > Open Folder** menu.
69+
1. Open the Truffle configuration file `truffle-config.js`.
70+
1. Replace the contents of the file with the following configuration information. Add a variable containing the endpoint address. Replace the angle bracket with values you collected from previous sections.
6771

68-
![Select default transaction node](./media/connect-truffle/transaction-nodes.png)
72+
``` javascript
73+
var defaultnode = "<default transaction node connection string>";
74+
var Web3 = require("web3");
75+
76+
module.exports = {
77+
networks: {
78+
defaultnode: {
79+
provider: new Web3.providers.HttpProvider(defaultnode),
80+
network_id: "*"
81+
}
82+
}
83+
}
84+
```
6985

70-
1. Select **Sample Code > Web3**.
71-
1. Copy the JavaScript from **HTTPS (Access key 1)**. You need the code for Truffle's interactive development console.
86+
1. Save the changes to `truffle-config.js`.
7287

73-
![Web3 code](./media/connect-truffle/web3-code.png)
88+
## Connect to transaction node
7489

75-
1. Paste the JavaScript code from the previous step into the Truffle interactive development console. The code creates a web3 object that is connected to your Azure Blockchain Service transaction node.
90+
Use *Web3* to connect to the transaction node.
7691

77-
Example output:
92+
1. Use the Truffle console to connect to the default transaction node.
7893

79-
```bash
80-
truffle(develop)> var Web3 = require("Web3");
81-
truffle(develop)> var provider = new Web3.providers.HttpProvider("https://myblockchainmember.blockchain.azure.com:3200/hy5FMu5TaPR0Zg8GxiPwned");
82-
truffle(develop)> var web3 = new Web3(provider);
94+
``` bash
95+
truffle console --network defaultnode
8396
```
8497

98+
Truffle connects to the default transaction node and provides an interactive console.
99+
85100
You can call methods on the **web3** object to interact with your transaction node.
86101

87102
1. Call the **getBlockNumber** method to return the current block number.
@@ -93,7 +108,7 @@ Use *Web3* to connect to the transaction node. You can get the *Web3* connection
93108
Example output:
94109

95110
```bash
96-
truffle(develop)> web3.eth.getBlockNumber();
111+
truffle(defaultnode)> web3.eth.getBlockNumber();
97112
18567
98113
```
99114
1. Exit the Truffle development console.
@@ -109,4 +124,4 @@ In this quickstart, you created a Truffle project to connect to your Azure Block
109124
Try the next tutorial to use Truffle to send a transaction to your consortium blockchain network.
110125

111126
> [!div class="nextstepaction"]
112-
> [Send a transaction](send-transaction.md)
127+
> [Send a transaction](send-transaction.md)

articles/blockchain/service/send-transaction.md

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,17 @@ You can continue with the tutorial while the nodes are being provisioned. When p
6868
cd truffledemo
6969
```
7070

71-
1. Launch Truffle's interactive development console.
71+
1. Use the Truffle console to connect to the default transaction node.
7272

7373
``` bash
74-
truffle develop
74+
truffle console --network defaultnode
7575
```
7676

77-
Truffle creates a local development blockchain and provides an interactive console.
77+
Truffle connects to the default transaction node and provides an interactive console.
7878

7979
## Create Ethereum account
8080

81-
Use Web3 to connect to the default transaction node and create an Ethereum account. You can get the Web3 connection string from the Azure portal.
82-
83-
1. In the Azure portal, navigate to the default transaction node and select **Transaction nodes > Sample code > Web3**.
84-
1. Copy the JavaScript from **HTTPS (Access key 1)**
85-
![Web3 sample code](./media/send-transaction/web3-code.png)
86-
87-
1. Paste the Web3 JavaScript code for the default transaction node into the Truffle interactive development console. The code creates a Web3 object that is connected to your Azure Blockchain Service transaction node.
88-
89-
```bash
90-
truffle(develop)> var Web3 = require("Web3");
91-
truffle(develop)> var provider = new Web3.providers.HttpProvider("https://myblockchainmember.blockchain.azure.com:3200/hy5FMu5TaPR0Zg8GxiPwned");
92-
truffle(develop)> var web3 = new Web3(provider);
93-
```
94-
95-
You can call methods on the Web3 object to interact with your transaction node.
81+
Use Web3 to connect to the default transaction node and create an Ethereum account. You can call methods on the Web3 object to interact with your transaction node.
9682

9783
1. Create a new account on the default transaction node. Replace the password parameter with your own strong password.
9884

@@ -156,21 +142,21 @@ You can get the public key from the transaction node list. Copy the public key f
156142
})(),
157143
158144
network_id: "*",
159-
gas: 0,
160145
gasPrice: 0,
161146
from: myAccount
162147
},
163148
alpha: {
164149
provider: new Web3.providers.HttpProvider(alpha),
165150
network_id: "*",
166-
gas: 0,
167-
gasPrice: 0
168151
},
169152
beta: {
170153
provider: new Web3.providers.HttpProvider(beta),
171154
network_id: "*",
172-
gas: 0,
173-
gasPrice: 0
155+
}
156+
},
157+
compilers: {
158+
solc: {
159+
evmVersion: "byzantium"
174160
}
175161
}
176162
}

articles/storage/blobs/storage-quickstart-blobs-powershell.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Set the container name, then create the container by using [New-AzStorageContain
3535

3636
```powershell
3737
$containerName = "quickstartblobs"
38-
new-AzStoragecontainer -Name $containerName -Context $ctx -Permission blob
38+
New-AzStorageContainer -Name $containerName -Context $ctx -Permission blob
3939
```
4040

4141
## Upload blobs to the container
@@ -48,13 +48,13 @@ The following examples upload *Image001.jpg* and *Image002.png* from the *D:\\_T
4848

4949
```powershell
5050
# upload a file
51-
set-AzStorageblobcontent -File "D:\_TestImages\Image001.jpg" `
51+
Set-AzStorageBlobContent -File "D:\_TestImages\Image001.jpg" `
5252
-Container $containerName `
5353
-Blob "Image001.jpg" `
5454
-Context $ctx
5555
5656
# upload another file
57-
set-AzStorageblobcontent -File "D:\_TestImages\Image002.png" `
57+
Set-AzStorageBlobContent -File "D:\_TestImages\Image002.png" `
5858
-Container $containerName `
5959
-Blob "Image002.png" `
6060
-Context $ctx
@@ -78,13 +78,13 @@ This example downloads the blobs to *D:\\_TestImages\Downloads* on the local dis
7878

7979
```powershell
8080
# download first blob
81-
Get-AzStorageblobcontent -Blob "Image001.jpg" `
81+
Get-AzStorageBlobContent -Blob "Image001.jpg" `
8282
-Container $containerName `
8383
-Destination "D:\_TestImages\Downloads\" `
8484
-Context $ctx
8585
8686
# download another blob
87-
Get-AzStorageblobcontent -Blob "Image002.png" `
87+
Get-AzStorageBlobContent -Blob "Image002.png" `
8888
-Container $containerName `
8989
-Destination "D:\_TestImages\Downloads\" `
9090
-Context $ctx

articles/storage/files/storage-how-to-create-file-share.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ To prepare to use PowerShell, download and install the Azure PowerShell cmdlets.
8080
8181
3. **Create the file share**
8282
```azurecli
83-
az storage share create --name files --quota 2048 --connection-string $current_env_conn_string 1 > /dev/null
83+
az storage share create --name files --quota 2048 --connection-string $current_env_conn_string > /dev/null
8484
```
8585
8686
## Next steps

0 commit comments

Comments
 (0)