Skip to content

Commit 1bfaac9

Browse files
authored
Merge pull request #79057 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 7306847 + ff25a75 commit 1bfaac9

File tree

6 files changed

+92
-51
lines changed

6 files changed

+92
-51
lines changed

articles/azure-cache-for-redis/cache-how-to-premium-vnet.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ There are eight inbound port range requirements. Inbound requests in these range
127127

128128
| Port(s) | Direction | Transport Protocol | Purpose | Local IP | Remote IP |
129129
| --- | --- | --- | --- | --- | --- |
130-
| 6379, 6380 |Inbound |TCP |Client communication to Redis, Azure load balancing | (Redis subnet) | (Redis subnet), Virtual Network, Azure Load Balancer |
130+
| 6379, 6380 |Inbound |TCP |Client communication to Redis, Azure load balancing | (Redis subnet) | (Redis subnet), Virtual Network, Azure Load Balancer <sup>2</sup> |
131131
| 8443 |Inbound |TCP |Internal communications for Redis | (Redis subnet) |(Redis subnet) |
132132
| 8500 |Inbound |TCP/UDP |Azure load balancing | (Redis subnet) |Azure Load Balancer |
133133
| 10221-10231 |Inbound |TCP |Internal communications for Redis | (Redis subnet) |(Redis subnet), Azure Load Balancer |
@@ -136,6 +136,8 @@ There are eight inbound port range requirements. Inbound requests in these range
136136
| 16001 |Inbound |TCP/UDP |Azure load balancing | (Redis subnet) |Azure Load Balancer |
137137
| 20226 |Inbound |TCP |Internal communications for Redis | (Redis subnet) |(Redis subnet) |
138138

139+
<sup>2</sup> You can use the Service Tag 'AzureLoadBalancer' (Resource Manager) (or 'AZURE_LOADBALANCER' for classic) for authoring the NSG rules.
140+
139141
#### Additional VNET network connectivity requirements
140142

141143
There are network connectivity requirements for Azure Cache for Redis that may not be initially met in a virtual network. Azure Cache for Redis requires all the following items to function properly when used within a virtual network.

articles/azure-databricks/howto-regional-disaster-recovery.md

Lines changed: 63 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -130,45 +130,84 @@ To create your own regional disaster recovery topology, follow these requirement
130130
Copy and save the following python script to a file, and run it in your Databricks command line. For example, `python scriptname.py`.
131131

132132
```python
133-
from subprocess import call, check_output import json
133+
from subprocess import call, check_output
134+
import json, os
134135

135136
EXPORT_PROFILE = "primary"
136137
IMPORT_PROFILE = "secondary"
137138

138-
# Get all clusters info from old workspace
139-
clusters_out = check_output(["databricks", "clusters", "list", "--profile", EXPORT_PROFILE]) clusters_info_list = clusters_out.splitlines()
139+
# Get all clusters info from old workspace
140+
clusters_out = check_output(["databricks", "clusters", "list", "--profile", EXPORT_PROFILE])
141+
clusters_info_list = clusters_out.splitlines()
142+
143+
# Create a list of all cluster ids
144+
clusters_list = []
145+
##for cluster_info in clusters_info_list: clusters_list.append(cluster_info.split(None, 1)[0])
140146

141-
# Create a list of all cluster ids
142-
clusters_list = [] for cluster_info in clusters_info_list: clusters_list.append(cluster_info.split(None, 1)[0])
147+
for cluster_info in clusters_info_list:
148+
if cluster_info != '':
149+
clusters_list.append(cluster_info.split(None, 1)[0])
143150

144151
# Optionally filter cluster ids out manually, so as to create only required ones in new workspace
145152

146-
# Create a list of mandatory / optional create request elements
147-
cluster_req_elems = ["num_workers","autoscale","cluster_name","spark_version","spark_conf"," node_type_id","driver_node_type_id","custom_tags","cluster_log_conf","sp ark_env_vars","autotermination_minutes","enable_elastic_disk"]
153+
# Create a list of mandatory / optional create request elements
154+
cluster_req_elems = ["num_workers","autoscale","cluster_name","spark_version","spark_conf","node_type_id","driver_node_type_id","custom_tags","cluster_log_conf","spark_env_vars","autotermination_minutes","enable_elastic_disk"]
155+
156+
print(str(len(clusters_list)) + " clusters found in the primary site" )
148157

158+
print ("---------------------------------------------------------")
149159
# Try creating all / selected clusters in new workspace with same config as in old one.
150-
cluster_old_new_mappings = {} for cluster in clusters_list: print "Trying to migrate cluster " + cluster
160+
cluster_old_new_mappings = {}
161+
i = 0
162+
for cluster in clusters_list:
163+
i += 1
164+
print("Checking cluster " + str(i) + "/" + str(len(clusters_list)) + " : " + cluster)
165+
cluster_get_out = check_output(["databricks", "clusters", "get", "--cluster-id", cluster, "--profile", EXPORT_PROFILE])
166+
print ("Got cluster config from old workspace")
167+
168+
# Remove extra content from the config, as we need to build create request with allowed elements only
169+
cluster_req_json = json.loads(cluster_get_out)
170+
cluster_json_keys = cluster_req_json.keys()
171+
172+
#Don't migrate Job clusters
173+
if cluster_req_json['cluster_source'] == u'JOB' :
174+
print ("Skipping this cluster as it is a Job cluster : " + cluster_req_json['cluster_id'] )
175+
print ("---------------------------------------------------------")
176+
continue
151177

152-
cluster_get_out = check_output(["databricks", "clusters", "get", "--cluster-id", cluster, "--profile", EXPORT_PROFILE])
153-
print "Got cluster config from old workspace"
178+
for key in cluster_json_keys:
179+
if key not in cluster_req_elems:
180+
cluster_req_json.pop(key, None)
154181

155-
# Remove extra content from the config, as we need to build create request with allowed elements only
156-
cluster_req_json = json.loads(cluster_get_out)
157-
cluster_json_keys = cluster_req_json.keys()
182+
# Create the cluster, and store the mapping from old to new cluster ids
158183

159-
for key in cluster_json_keys:
160-
if key not in cluster_req_elems:
161-
cluster_req_json.pop(key, None)
162-
163-
# Create the cluster, and store the mapping from old to new cluster ids
164-
cluster_create_out = check_output(["databricks", "clusters", "create", "--json", json.dumps(cluster_req_json), "--profile", IMPORT_PROFILE])
165-
cluster_create_out_json = json.loads(cluster_create_out)
166-
cluster_old_new_mappings[cluster] = cluster_create_out_json['cluster_id']
184+
#Create a temp file to store the current cluster info as JSON
185+
strCurrentClusterFile = "tmp_cluster_info.json"
167186

168-
print "Sent cluster create request to new workspace successfully"
187+
#delete the temp file if exists
188+
if os.path.exists(strCurrentClusterFile) :
189+
os.remove(strCurrentClusterFile)
169190

170-
print "Cluster mappings: " + json.dumps(cluster_old_new_mappings)
171-
print "All done"
191+
fClusterJSONtmp = open(strCurrentClusterFile,"w+")
192+
fClusterJSONtmp.write(json.dumps(cluster_req_json))
193+
fClusterJSONtmp.close()
194+
195+
#cluster_create_out = check_output(["databricks", "clusters", "create", "--json", json.dumps(cluster_req_json), "--profile", IMPORT_PROFILE])
196+
cluster_create_out = check_output(["databricks", "clusters", "create", "--json-file", strCurrentClusterFile , "--profile", IMPORT_PROFILE])
197+
cluster_create_out_json = json.loads(cluster_create_out)
198+
cluster_old_new_mappings[cluster] = cluster_create_out_json['cluster_id']
199+
200+
print ("Cluster create request sent to secondary site workspace successfully")
201+
print ("---------------------------------------------------------")
202+
203+
#delete the temp file if exists
204+
if os.path.exists(strCurrentClusterFile) :
205+
os.remove(strCurrentClusterFile)
206+
207+
print ("Cluster mappings: " + json.dumps(cluster_old_new_mappings))
208+
print ("All done")
209+
print ("P.S. : Please note that all the new clusters in your secondary site are being started now!")
210+
print (" If you won't use those new clusters at the moment, please don't forget terminating your new clusters to avoid charges")
172211
```
173212

174213
6. **Migrate the jobs configuration**

articles/iot-hub/iot-hub-node-node-schedule-jobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ In this section, you create a Node.js console app that responds to a direct meth
101101
102102
// Respond the cloud app for the direct method
103103
response.send(200, function(err) {
104-
if (!err) {
104+
if (err) {
105105
console.error('An error occurred when sending a method response:\n' + err.toString());
106106
} else {
107107
console.log('Response to method \'' + request.methodName + '\' sent successfully.');

articles/marketplace/cloud-partner-portal/azure-applications/cpp-handling-review-feedback.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ ms.author: pabutler
1313

1414
This article explains how to access the Azure DevOps environment used by the Microsoft Azure Marketplace review team. If critical issues are found in your Azure application offer during the **Microsoft review** step, you can sign into this system to view detailed information about these issues (review feedback). After you fix all these issues, you must resubmit your offer to continue to publish it on the Azure Marketplace. The following diagram illustrates how this feedback process relates to the publishing process.
1515

16-
![Publishing steps with VSTS feedback](./media/pub-flow-vsts-access.png)
16+
![Publishing steps with Azure DevOps feedback](./media/pub-flow-vsts-access.png)
1717

1818
Typically, review issues are referenced as pull request (PR). Each PR is linked to an online [Azure DevOps](https://azure.microsoft.com/services/devops/) (previously named Visual Studio Team Services (VSTS)) item, which contains details about the issue. The following image displays an example of a review PR reference. For complex situations, the review and support teams may also email you.
1919

2020
![Status tab displaying review feedback](./media/status-tab-ms-review.png)
2121

2222

23-
## VSTS access
23+
## Azure DevOps access
2424

2525
To view the PR items referenced in review feedback, publishers must first be granted proper authorization. Otherwise, new publishers receive a `401 - Not Authorized` response page when trying to view PRs. To request access to this Azure DevOps repository, perform the following steps:
2626

@@ -35,7 +35,7 @@ To view the PR items referenced in review feedback, publishers must first be gra
3535
![Support ticket category](./media/support-incident1.png)
3636

3737
4. In **Step 1 of 2** page, supply your contact information and select **Continue**.
38-
5. In **Step 2 of 2** page, specify an incident title (for example `Request VSTS access`) and supply the information you collected in the first step (above). Read and accept the agreement, then select **Submit**.
38+
5. In **Step 2 of 2** page, specify an incident title (for example `Request Azure DevOps access`) and supply the information you collected in the first step (above). Read and accept the agreement, then select **Submit**.
3939

4040
If the incident creation was successful, a confirmation page is displayed. Save the confirmation information on this page for your reference. The Microsoft Support Team should reply to your access request within a few business days.
4141

articles/marketplace/cloud-partner-portal/manage-offers/cpp-view-status-offer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The next example **Status** tab for a consulting service, showing a reported err
3434

3535
![Status tab for consulting service showing error](./media/consulting-service-error.png)
3636

37-
The final example status of an Azure application shows a critical Microsoft review issue. It contains a hot link to the VSTS item that contains detailed information about this review issue. For more information, see [Publish Azure application offer](cpp-publish-offer.md).
37+
The final example status of an Azure application shows a critical Microsoft review issue. It contains a hot link to the Azure DevOps item that contains detailed information about this review issue. For more information, see [Publish Azure application offer](cpp-publish-offer.md).
3838

3939
![Status tab for Azure app showing review issue](../azure-applications/media/status-tab-ms-review.png)
4040

articles/traffic-manager/traffic-manager-powershell-arm.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ New-AzResourceGroup -Name MyRG -Location "West US"
4949
To create a Traffic Manager profile, use the `New-AzTrafficManagerProfile` cmdlet:
5050

5151
```powershell
52-
$profile = New-AzTrafficManagerProfile -Name MyProfile -ResourceGroupName MyRG -TrafficRoutingMethod Performance -RelativeDnsName contoso -Ttl 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/"
52+
$TmProfile = New-AzTrafficManagerProfile -Name MyProfile -ResourceGroupName MyRG -TrafficRoutingMethod Performance -RelativeDnsName contoso -Ttl 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/"
5353
```
5454

5555
The following table describes the parameters:
@@ -72,7 +72,7 @@ The cmdlet creates a Traffic Manager profile in Azure and returns a correspondin
7272
To retrieve an existing Traffic Manager profile object, use the `Get-AzTrafficManagerProfle` cmdlet:
7373

7474
```powershell
75-
$profile = Get-AzTrafficManagerProfile -Name MyProfile -ResourceGroupName MyRG
75+
$TmProfile = Get-AzTrafficManagerProfile -Name MyProfile -ResourceGroupName MyRG
7676
```
7777

7878
This cmdlet returns a Traffic Manager profile object.
@@ -90,9 +90,9 @@ All profile properties can be changed except the profile's RelativeDnsName. To c
9090
The following example demonstrates how to change the profile's TTL:
9191

9292
```powershell
93-
$profile = Get-AzTrafficManagerProfile -Name MyProfile -ResourceGroupName MyRG
94-
$profile.Ttl = 300
95-
Set-AzTrafficManagerProfile -TrafficManagerProfile $profile
93+
$TmProfile = Get-AzTrafficManagerProfile -Name MyProfile -ResourceGroupName MyRG
94+
$TmProfile.Ttl = 300
95+
Set-AzTrafficManagerProfile -TrafficManagerProfile $TmProfile
9696
```
9797

9898
There are three types of Traffic Manager endpoints:
@@ -125,12 +125,12 @@ In each case:
125125
In this example, we create a Traffic Manager profile and add two App Service endpoints using the `Add-AzTrafficManagerEndpointConfig` cmdlet.
126126

127127
```powershell
128-
$profile = New-AzTrafficManagerProfile -Name myprofile -ResourceGroupName MyRG -TrafficRoutingMethod Performance -RelativeDnsName myapp -Ttl 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/"
128+
$TmProfile = New-AzTrafficManagerProfile -Name myprofile -ResourceGroupName MyRG -TrafficRoutingMethod Performance -RelativeDnsName myapp -Ttl 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/"
129129
$webapp1 = Get-AzWebApp -Name webapp1
130-
Add-AzTrafficManagerEndpointConfig -EndpointName webapp1ep -TrafficManagerProfile $profile -Type AzureEndpoints -TargetResourceId $webapp1.Id -EndpointStatus Enabled
130+
Add-AzTrafficManagerEndpointConfig -EndpointName webapp1ep -TrafficManagerProfile $TmProfile -Type AzureEndpoints -TargetResourceId $webapp1.Id -EndpointStatus Enabled
131131
$webapp2 = Get-AzWebApp -Name webapp2
132-
Add-AzTrafficManagerEndpointConfig -EndpointName webapp2ep -TrafficManagerProfile $profile -Type AzureEndpoints -TargetResourceId $webapp2.Id -EndpointStatus Enabled
133-
Set-AzTrafficManagerProfile -TrafficManagerProfile $profile
132+
Add-AzTrafficManagerEndpointConfig -EndpointName webapp2ep -TrafficManagerProfile $TmProfile -Type AzureEndpoints -TargetResourceId $webapp2.Id -EndpointStatus Enabled
133+
Set-AzTrafficManagerProfile -TrafficManagerProfile $TmProfile
134134
```
135135
### Example 2: Adding a publicIpAddress endpoint using `New-AzTrafficManagerEndpoint`
136136

@@ -156,10 +156,10 @@ When specifying external endpoints:
156156
In this example, we create a Traffic Manager profile, add two external endpoints, and commit the changes.
157157

158158
```powershell
159-
$profile = New-AzTrafficManagerProfile -Name myprofile -ResourceGroupName MyRG -TrafficRoutingMethod Performance -RelativeDnsName myapp -Ttl 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/"
160-
Add-AzTrafficManagerEndpointConfig -EndpointName eu-endpoint -TrafficManagerProfile $profile -Type ExternalEndpoints -Target app-eu.contoso.com -EndpointLocation "North Europe" -EndpointStatus Enabled
161-
Add-AzTrafficManagerEndpointConfig -EndpointName us-endpoint -TrafficManagerProfile $profile -Type ExternalEndpoints -Target app-us.contoso.com -EndpointLocation "Central US" -EndpointStatus Enabled
162-
Set-AzTrafficManagerProfile -TrafficManagerProfile $profile
159+
$TmProfile = New-AzTrafficManagerProfile -Name myprofile -ResourceGroupName MyRG -TrafficRoutingMethod Performance -RelativeDnsName myapp -Ttl 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/"
160+
Add-AzTrafficManagerEndpointConfig -EndpointName eu-endpoint -TrafficManagerProfile $TmProfile -Type ExternalEndpoints -Target app-eu.contoso.com -EndpointLocation "North Europe" -EndpointStatus Enabled
161+
Add-AzTrafficManagerEndpointConfig -EndpointName us-endpoint -TrafficManagerProfile $TmProfile -Type ExternalEndpoints -Target app-us.contoso.com -EndpointLocation "Central US" -EndpointStatus Enabled
162+
Set-AzTrafficManagerProfile -TrafficManagerProfile $TmProfile
163163
```
164164

165165
### Example 2: Adding external endpoints using `New-AzTrafficManagerEndpoint`
@@ -189,7 +189,7 @@ In this example, we create new Traffic Manager child and parent profiles, add th
189189
$child = New-AzTrafficManagerProfile -Name child -ResourceGroupName MyRG -TrafficRoutingMethod Priority -RelativeDnsName child -Ttl 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/"
190190
$parent = New-AzTrafficManagerProfile -Name parent -ResourceGroupName MyRG -TrafficRoutingMethod Performance -RelativeDnsName parent -Ttl 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/"
191191
Add-AzTrafficManagerEndpointConfig -EndpointName child-endpoint -TrafficManagerProfile $parent -Type NestedEndpoints -TargetResourceId $child.Id -EndpointStatus Enabled -EndpointLocation "North Europe" -MinChildEndpoints 2
192-
Set-AzTrafficManagerProfile -TrafficManagerProfile $profile
192+
Set-AzTrafficManagerProfile -TrafficManagerProfile $parent
193193
```
194194

195195
For brevity in this example, we did not add any other endpoints to the child or parent profiles.
@@ -209,7 +209,7 @@ Traffic Manager can work with endpoints from different subscriptions. You need t
209209

210210
```powershell
211211
Set-AzContext -SubscriptionId $EndpointSubscription
212-
$ip = Get-AzPublicIpAddress -Name $IpAddresName -ResourceGroupName $EndpointRG
212+
$ip = Get-AzPublicIpAddress -Name $IpAddressName -ResourceGroupName $EndpointRG
213213
214214
Set-AzContext -SubscriptionId $trafficmanagerSubscription
215215
New-AzTrafficManagerEndpoint -Name $EndpointName -ProfileName $ProfileName -ResourceGroupName $TrafficManagerRG -Type AzureEndpoints -TargetResourceId $ip.Id -EndpointStatus Enabled
@@ -227,10 +227,10 @@ There are two ways to update an existing Traffic Manager endpoint:
227227
In this example, we modify the priority on two endpoints within an existing profile.
228228

229229
```powershell
230-
$profile = Get-AzTrafficManagerProfile -Name myprofile -ResourceGroupName MyRG
231-
$profile.Endpoints[0].Priority = 2
232-
$profile.Endpoints[1].Priority = 1
233-
Set-AzTrafficManagerProfile -TrafficManagerProfile $profile
230+
$TmProfile = Get-AzTrafficManagerProfile -Name myprofile -ResourceGroupName MyRG
231+
$TmProfile.Endpoints[0].Priority = 2
232+
$TmProfile.Endpoints[1].Priority = 1
233+
Set-AzTrafficManagerProfile -TrafficManagerProfile $TmProfile
234234
```
235235

236236
### Example 2: Updating an endpoint using `Get-AzTrafficManagerEndpoint` and `Set-AzTrafficManagerEndpoint`
@@ -306,8 +306,8 @@ This cmdlet prompts for confirmation. This prompt can be suppressed using the '-
306306
The profile to be deleted can also be specified using a profile object:
307307

308308
```powershell
309-
$profile = Get-AzTrafficManagerProfile -Name MyProfile -ResourceGroupName MyRG
310-
Remove-AzTrafficManagerProfile -TrafficManagerProfile $profile [-Force]
309+
$TmProfile = Get-AzTrafficManagerProfile -Name MyProfile -ResourceGroupName MyRG
310+
Remove-AzTrafficManagerProfile -TrafficManagerProfile $TmProfile [-Force]
311311
```
312312

313313
This sequence can also be piped:

0 commit comments

Comments
 (0)