简美

文章 评论 浏览 26

简美 2025-02-11 11:25:21

这是您想要的吗?

qplot(ymin = min,
      ymax = max,
      x = reorder(Common.name,-min),
      colour = Animal.group,
      geom = "linerange",
      data = gantt1.dat,
      size = I(4)) +
    coord_flip() +
    scale_y_continuous(breaks = c(1960, 1965, 1970, 1975, 1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015, 2020), 
                       labels = c("1960s", "", "1970s", "", "1980s", "", "1990s", "", "2000s", "", "2010s", "", "2020s")) +
    theme_classic() +
    theme(axis.title = element_text(face = "bold"),
          legend.title = element_text(face = "bold")) +
    labs(y="Year of publication", x = "", colour="Class")```

Is this what you are looking for?

qplot(ymin = min,
      ymax = max,
      x = reorder(Common.name,-min),
      colour = Animal.group,
      geom = "linerange",
      data = gantt1.dat,
      size = I(4)) +
    coord_flip() +
    scale_y_continuous(breaks = c(1960, 1965, 1970, 1975, 1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015, 2020), 
                       labels = c("1960s", "", "1970s", "", "1980s", "", "1990s", "", "2000s", "", "2010s", "", "2020s")) +
    theme_classic() +
    theme(axis.title = element_text(face = "bold"),
          legend.title = element_text(face = "bold")) +
    labs(y="Year of publication", x = "", colour="Class")```

enter image description here

订购和分组的甘特图

简美 2025-02-11 08:37:51

简单地将每个第四个项目添加到新列表并返回该列表并不容易?这也将消除从列表中删除元素时可能涉及的任何重复复制。目标列表可以适当尺寸开始。

public static List<String> reduziereKommentare(List<String> zeilen) {
    Objects.requireNonNull(zeilen);
    List<String> zeilen1= new ArrayList<>(zeilen.size()/4);

    for(int i = 3; i < zeilen.size(); i+=4) {
            zeilen1.add(zeilen.get(i));
    }

    return zeilen1;
}

您也可以使用流。


zeilen = IntStream.iterate(3, i ->i < zeilen.size(), i->i+=4)
                .mapToObj(zeilen::get).toList();

注意:

  • 是列表是空还是大小不被4排除,这将起作用。它将忽略额外的元素。
  • 将结果分配给原始变量将导致收集的旧列表。
  • 我只检查一个零论点,因为这会导致例外。当然,如果向用户提醒大小很重要,只需添加其他检查。

Would it not be easier to simply add every fourth item to a new list and return that? This would also eliminate any repetitive copying that could be involved when removing elements from a list. And the target list can be appropriately sized to start.

public static List<String> reduziereKommentare(List<String> zeilen) {
    Objects.requireNonNull(zeilen);
    List<String> zeilen1= new ArrayList<>(zeilen.size()/4);

    for(int i = 3; i < zeilen.size(); i+=4) {
            zeilen1.add(zeilen.get(i));
    }

    return zeilen1;
}

You could also use a stream.


zeilen = IntStream.iterate(3, i ->i < zeilen.size(), i->i+=4)
                .mapToObj(zeilen::get).toList();

Notes:

  • whether the list is empty or the size is not divisible by 4, this will work. It will just ignore the extra elements.
  • assigning the result to the original variable will result in the old list being garbage collected.
  • I only check for a null argument since that would cause an exception. Of course, if alerting the user of the size is important just add the other check(s) back in.

在特定索引中从列表中删除元素

简美 2025-02-10 18:41:24

您可以使用被动事件侦听器即使在运行时创建/破坏/重新加载元素,也可以保留它们

function updateDiv() {  $("#here").load(window.location.href + " #here");}



$("#here").on("click", () => { alert(" hello world !") })
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="here">here</div>
<button onclick="updateDiv()">Click here</button>

You can use passive event listener to keep them even if the element is created/destroyed/reloaded at runtime

function updateDiv() {  $("#here").load(window.location.href + " #here");}



$("#here").on("click", () => { alert(" hello world !") })
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="here">here</div>
<button onclick="updateDiv()">Click here</button>

如何与jQuery重新加载并保持AddeventListener的工作

简美 2025-02-10 17:23:07

对于这个特定的问题,为什么不基因呢?

特定的正则:“^[。]+\\ public \\”

常规式,仅保留最后两个路径:“^([^\\]*\\)*(。+) \\)“并将其替换为第二组:“ $ 2”

如果您想学习Regex,这是非常简洁的资源: https://github.com/ziishaned/learn-regex

For this specific question, why not substring?

Specific regex: "^[.]+\\public\\"

General regex, keep only last two path: "^([^\\]*\\)*(.+\\)" and replace it with the second group: "$2"

If your want to learn regex, this is very concise resource: https://github.com/ziishaned/learn-regex

我们如何使用Regex删除点和后斜线以及单词

简美 2025-02-10 16:54:13

您应该能够使用get_template_part(字符串$ slug,string $ name = null,array $ args = array())本身传递值。您可以在此处阅读更多详细信息: get_template_part_part_part

WordPress的示例

get_template_part(
'template-part',
'name',
array(
    'key'   => 'value',
    'key2'  => 'value2'
));

来自

var_dump( $args );  // Everything
echo $args['key'];`  // Specific values

在您的示例中,您可以在数组中传递AltColorClass的参数,并在模板部分中检索它,希望这会有所帮助。

You should be able to pass the values using get_template_part( string $slug, string $name = null, array $args = array() ) itself. You can read more details here: get_template_part

examples from Wordpress functions:

get_template_part(
'template-part',
'name',
array(
    'key'   => 'value',
    'key2'  => 'value2'
));

In your template part

var_dump( $args );  // Everything
echo $args['key'];`  // Specific values

in your example, you can pass arguments altColorClass in the array and retrieve it in the template part, hope this helps.

通过get_template_part通过变量

简美 2025-02-09 00:39:40

我找到了这个解决方案,

$all_posts = get_posts(array(
  'posts_per_page' => -1, 
  'post_type' => 'news'

));



$myMonth = array();
foreach ($all_posts as $single) {
 $month = mysql2date('F', $single->post_date);
 $month_number = mysql2date('m', $single->post_date);
 $myMonth[$month] = $month_number;
}



$ordered_posts = array();
foreach ($all_posts as $single) {
  $year  = mysql2date('Y', $single->post_date);
  $month = mysql2date('F', $single->post_date);
  $month_number = mysql2date('m', $single->post_date);

  $ordered_posts[$year][$month][] = $single;
  
}

foreach ($ordered_posts as $year => $months) {
foreach ($months as $month => $posts ) { 
?>

<?php 

  ?>
    <a href="/news-date/<?php echo $year ?>/<?php echo $myMonth[$month]; ?>">
                <div class="arch-year-month">
                 
                <div class="arch-month"><?php echo $month ?></div><div class="arch-year">  <?php echo $year ?>
                </div>
                </div>
                </a>
                
                
                
      <?php
      } 
    
} 
?>

I found this solution,

$all_posts = get_posts(array(
  'posts_per_page' => -1, 
  'post_type' => 'news'

));



$myMonth = array();
foreach ($all_posts as $single) {
 $month = mysql2date('F', $single->post_date);
 $month_number = mysql2date('m', $single->post_date);
 $myMonth[$month] = $month_number;
}



$ordered_posts = array();
foreach ($all_posts as $single) {
  $year  = mysql2date('Y', $single->post_date);
  $month = mysql2date('F', $single->post_date);
  $month_number = mysql2date('m', $single->post_date);

  $ordered_posts[$year][$month][] = $single;
  
}

foreach ($ordered_posts as $year => $months) {
foreach ($months as $month => $posts ) { 
?>

<?php 

  ?>
    <a href="/news-date/<?php echo $year ?>/<?php echo $myMonth[$month]; ?>">
                <div class="arch-year-month">
                 
                <div class="arch-month"><?php echo $month ?></div><div class="arch-year">  <?php echo $year ?>
                </div>
                </div>
                </a>
                
                
                
      <?php
      } 
    
} 
?>

如何获得档案的日期链接?

简美 2025-02-08 17:38:59

以某种方式,我过度复杂化了,当我尝试了有效的绝对最低限度时。

import requests

headers = { 'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36' }

response = requests.get("http://www.example.com/insert.php?network=testnet&id=1245200&c=2803824&lat=7555457", headers=headers)
print(response.text)

Somehow I overcomplicated it and when I tried the absolute minimum that works.

import requests

headers = { 'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36' }

response = requests.get("http://www.example.com/insert.php?network=testnet&id=1245200&c=2803824&lat=7555457", headers=headers)
print(response.text)

与urllib.open一起使用的URL与请求无关。

简美 2025-02-08 15:07:56

DataGenerator并未创建新图像,而只是为每个时代转换它。
如果您的x_train)= [x1,x2,x3]整个训练集中的图像,在每个时期训练时,模型应看到相同的x_train,但是您的x_train很小(只有3张图像) datagen将为模型提供整个x_train稍微转换(根据您在成像中的参数(根据您放入的参数)),例如:

  • 对于epoch 1 x_train:[x1,x2,x3]
  • for epoch 2 x_train:[x1_t1,x2_t1,x2_t1,x3_t1
  • for Epoch 3 for Epoch 3 x_train:[x1_t2,x2_t2,x3_t2]
    ETC...

The datagenerator doesn't create new images it rather just transforms it for each epoch.
if you have x_train ) = [x1,x2,x3] images in your entire training set, upon training in each epoch the model should see the same x_train BUT your x_train is so small (just 3 images) so the thing is for each epoch the datagen will feed the model the whole x_train slightly transformed (according to the parameters you put in ImageDataGenerator) e.g.:

  • for epoch 1 x_train: [x1,x2,x3]
  • for epoch 2 x_train: [x1_t1,x2_t1,x3_t1]
  • for epoch 3 x_train: [x1_t2,x2_t2,x3_t2]
    etc...

Keras即时的增强图像数量

简美 2025-02-08 03:06:41

您可以使用循环的

for item in data:
    if item['name'] == 'kabuto':
        print(item)
        break

此输出:

{'name': 'kabuto', 'id': 140}

You can use a for loop:

for item in data:
    if item['name'] == 'kabuto':
        print(item)
        break

This outputs:

{'name': 'kabuto', 'id': 140}

从字典列表(Python)中提取一个字典

简美 2025-02-07 18:13:54

同样,您可以使用日期解析器 -

from dateutil.parser import parse

fecha_csv = row[7]
csv_date = parse(fetch_csv).date()

Similarly, you could use a date parser -

from dateutil.parser import parse

fecha_csv = row[7]
csv_date = parse(fetch_csv).date()

如何将日期格式更改为另一种日期格式

简美 2025-02-07 13:53:18

我的问题最终是Ubuntu 22.04安装了WSL版本

  NAME                   STATE           VERSION
  Ubuntu-22.04           Running         1

1

My issue ended up being Ubuntu 22.04 was installed with wsl version 1.

wsl -l -v

  NAME                   STATE           VERSION
  Ubuntu-22.04           Running         1

wsl --set-version Ubuntu-22.04 2

如何在Ubuntu 22.04中正确安装Docker吗?

简美 2025-02-07 13:32:05

使用这种方式不需要其他表

table#customDataTable{
width:100%;}
table#customDataTable th{text-align:left;}
@media screen and (max-width: 640px) {
  table#customDataTable caption {
    background-image: none;
  }
  table#customDataTable thead {
    display: none;
  }
  table#customDataTable tbody td {
    display: block;
    padding: .6rem;
  }
  table#customDataTable tbody tr td:first-child {
    background: #666;
    color: #fff;
  }
  table#customDataTable tbody tr td:first-child a {
    color: #fff;
  }
  table#customDataTable tbody tr td:first-child:before {
    color: rgb(225, 181, 71);
  }
  table#customDataTable tbody td:before {
    content: attr(data-th);
    font-weight: bold;
    display: inline-block;
    width: 10rem;
  }
  table#customDataTable tr th:last-child,
  table#customDataTable tr td:last-child {
    max-width: 100% !important;
    min-width: 100px !important;
    width: 100% !important;
  }
}
<table class="table" id="customDataTable">
  <thead>
    <tr>
      <th>#</th>
      <th>Firstname</th>
      <th>Lastname</th>
      <th>Age</th>
      <th>City</th>
      <th>Country</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
  </tbody>
</table>

Use This Way no need any other table

table#customDataTable{
width:100%;}
table#customDataTable th{text-align:left;}
@media screen and (max-width: 640px) {
  table#customDataTable caption {
    background-image: none;
  }
  table#customDataTable thead {
    display: none;
  }
  table#customDataTable tbody td {
    display: block;
    padding: .6rem;
  }
  table#customDataTable tbody tr td:first-child {
    background: #666;
    color: #fff;
  }
  table#customDataTable tbody tr td:first-child a {
    color: #fff;
  }
  table#customDataTable tbody tr td:first-child:before {
    color: rgb(225, 181, 71);
  }
  table#customDataTable tbody td:before {
    content: attr(data-th);
    font-weight: bold;
    display: inline-block;
    width: 10rem;
  }
  table#customDataTable tr th:last-child,
  table#customDataTable tr td:last-child {
    max-width: 100% !important;
    min-width: 100px !important;
    width: 100% !important;
  }
}
<table class="table" id="customDataTable">
  <thead>
    <tr>
      <th>#</th>
      <th>Firstname</th>
      <th>Lastname</th>
      <th>Age</th>
      <th>City</th>
      <th>Country</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
    <tr>
      <td data-th="#">1</td>
      <td data-th="Firstname">Anna</td>
      <td data-th="Lastname">Pitt</td>
      <td data-th="Age">35</td>
      <td data-th="City">New York</td>
      <td data-th="Country">USA</td>
    </tr>
  </tbody>
</table>

根据其表头的大小(移动),将CSS应用于表中的每一行

简美 2025-02-07 11:34:27

首先,我认为目标函数内的!= np.nan没有必要检查。取而代之的是,您可以清理数据框,并用零替换所有np.nan。在优化程序中,该目标函数被调用多次,因此应将其写入尽可能效率和快速。因此,我们删除了np.where的呼叫。还要注意,依靠索引变量i在外部范围中知道的事实是不良练习,并且使代码难以读取。我建议这样的事情:

col1 = df1.col1.values[df1.col1.values != np.nan]
col2 = df1.col2.values[df1.col2.values != np.nan]
col1_const = np.array([0,0,0,0,60.0,0,0,0])
col2_const = np.array([0,0,0,0,0,100.0,0,0])

def cost_fun1(v, *args):
    i, col1, col2, col1_const, col2_const = args
    col1_res = ((1/0.095)*(np.sqrt(col1[i]) - np.sqrt(col1_const[4]*(0.1*v[1]+v[2])**2)))**2
    col2_res = ((1/0.12)*(np.sqrt(col2[i]) - np.sqrt(col2_const[5]*(0.1*v[0]+v[2])**2)))**2
    return 0.5*np.sqrt(col1_res + col2_res)

接下来,更重要的是,您正在解决多个优化问题,而不是解决一个大规模优化问题。从数学上讲,由于您的目标函数保证是积极的,因此您可以以同样的方式重新重新制定问题,以此答案。然后,cost_fun2基本上返回所有索引i的所有cost_fun1的总和。使用一些重塑魔法,该功能几乎看起来相同:

def cost_fun2(vv, *args):
    col1, col2, col1_const, col2_const = args
    v = vv.reshape(3, col1.size)
    col1_res = ((1/0.095)*(np.sqrt(col1) - np.sqrt(col1_const[4]*(0.1*v[1]+v[2])**2)))**2
    col2_res = ((1/0.12)*(np.sqrt(col2) - np.sqrt(col2_const[5]*(0.1*v[0]+v[2])**2)))**2
    return np.sum(0.5*np.sqrt(col1_res + col2_res))

然后,我们只需解决问题并将解决方案值写入数据框中:

from scipy.optimize import minimize

# initial guess
x0 = np.ones(3*col1.size)

# solve the problem
res = minimize(lambda vv: cost_fun2(vv, col1, col2, col1_const, col2_const), x0=x0, method="trust-constr")

# write to dataframe
type1_vals, type2_vals, type3_vals = np.split(res.x, 3)
df1['type1'] = type1_vals
df1['type2'] = type2_vals
df1['type3'] = type3_vals

如果您需要col1_rescol2_res在数据框中,相应地修改目标函数是直截了当的。

最后但并非最不重要的一点是,根据您的数据框的大小,强烈建议将确切的目标梯度传递给scipy.optimize.minimize,以获得良好的收敛性能。目前,梯度被有限差异近似,该差异很慢,容易舍入错误。

Firstly, I don't think it's necessary to check for != np.nan inside the objective function. Instead, you could clean up your dataframe and replace all np.nan with zero. The objective function is called several times during the optimization routine, so it should be written as efficient and fast as possible. Consequently, we remove the call of np.where. Note also that relying on the fact that the index variable i is known at the outer scope is bad practice and makes the code hard to read. I'd recommend something like this:

col1 = df1.col1.values[df1.col1.values != np.nan]
col2 = df1.col2.values[df1.col2.values != np.nan]
col1_const = np.array([0,0,0,0,60.0,0,0,0])
col2_const = np.array([0,0,0,0,0,100.0,0,0])

def cost_fun1(v, *args):
    i, col1, col2, col1_const, col2_const = args
    col1_res = ((1/0.095)*(np.sqrt(col1[i]) - np.sqrt(col1_const[4]*(0.1*v[1]+v[2])**2)))**2
    col2_res = ((1/0.12)*(np.sqrt(col2[i]) - np.sqrt(col2_const[5]*(0.1*v[0]+v[2])**2)))**2
    return 0.5*np.sqrt(col1_res + col2_res)

Next, and more importantly, you are solving multiple optimization problems instead of solving one large-scale optimization problem. Mathematically, because your objective function is guaranteed to be positive, you can reformulate your problem in the same vein to this answer. Then, cost_fun2 basically returns the sum of all cost_fun1 for all indices i. Using a bit of reshaping magic, the function nearly looks the same:

def cost_fun2(vv, *args):
    col1, col2, col1_const, col2_const = args
    v = vv.reshape(3, col1.size)
    col1_res = ((1/0.095)*(np.sqrt(col1) - np.sqrt(col1_const[4]*(0.1*v[1]+v[2])**2)))**2
    col2_res = ((1/0.12)*(np.sqrt(col2) - np.sqrt(col2_const[5]*(0.1*v[0]+v[2])**2)))**2
    return np.sum(0.5*np.sqrt(col1_res + col2_res))

Then, we simply solve the problem and write the solution values into the dataframe afterwards:

from scipy.optimize import minimize

# initial guess
x0 = np.ones(3*col1.size)

# solve the problem
res = minimize(lambda vv: cost_fun2(vv, col1, col2, col1_const, col2_const), x0=x0, method="trust-constr")

# write to dataframe
type1_vals, type2_vals, type3_vals = np.split(res.x, 3)
df1['type1'] = type1_vals
df1['type2'] = type2_vals
df1['type3'] = type3_vals

If you need col1_res and col2_res in the dataframe, it's straighforward to modify the objective function accordingly.

Last but not least, depending on the size of your dataframe, it's highly recommended to pass the exact objective gradient to scipy.optimize.minimize in order to obtain a good convergence performance. At the moment, the gradient is approximated by finite differences which is quite slow and prone to rounding errors.

通过使用PANDAS DATAFRAME将Scipy与Group最小化

简美 2025-02-06 18:56:50

您想使用关联阵列。例如,在这种情况下,使用箭头令牌将吉他名称与“名称”键关联。

$guitars = ['names' => ['Warvick', 'Gibson', 'Fender']];
$guitars['names'][] = "Ibanez";
echo "<pre>";
var_dump($guitars);
echo "</pre>";

You want to use associative arrays. In this case, for example, use the arrow token to associate the guitar names with the "names" key.

$guitars = ['names' => ['Warvick', 'Gibson', 'Fender']];
$guitars['names'][] = "Ibanez";
echo "<pre>";
var_dump($guitars);
echo "</pre>";

按名称php添加数组数据

简美 2025-02-06 10:59:38

要遇到以下错误,

New-AzSqlServerVirtualNetworkRule: The client has permission to perform action 'Microsoft.Network/virtualNetworks/subnets/joinViaServiceEndpoint/Action' on scope '/subscriptions/{subscription ID}/resourceGroups/{resource group name}/providers/Microsoft.Sql/servers/{SQL Server name}/virtualNetworkRules/{rule name}', however the current tenant 'xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' is not authorized to access linked subscription 'xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.
  • Azure SQL Server中的服务连接跨Azure租户只能访问一个租户中的虚拟网络。它无法访问其他租户中的虚拟网络。
  • 您可以在以下步骤中为该虚拟网络分配网络撰稿人角色:

转到 azure portal - &gt; 资源组 - &gt; 访问控制(IAM) - &gt; 添加角色分配。 - &gt; 选择网络 贡献者 - &gt;添加

“在此处输入图像描述”

To encounter the following error

New-AzSqlServerVirtualNetworkRule: The client has permission to perform action 'Microsoft.Network/virtualNetworks/subnets/joinViaServiceEndpoint/Action' on scope '/subscriptions/{subscription ID}/resourceGroups/{resource group name}/providers/Microsoft.Sql/servers/{SQL Server name}/virtualNetworkRules/{rule name}', however the current tenant 'xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' is not authorized to access linked subscription 'xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.
  • The service connection in your Azure SQL Server across azure tenants will have only access to the virtual network in one tenant. It does not have access to the virtual network in the other tenant.
  • You can assign Network Contributor role to that virtual network in below steps:

Go to Azure Portal ->Resource group -> Access Control (IAM) -> Add Role assignment. -> Select network Contributor -> Add

enter image description here

Azure SQL Server跨Azure租户的VNET白名单

更多

推荐作者

櫻之舞

文章 0 评论 0

弥枳

文章 0 评论 0

m2429

文章 0 评论 0

野却迷人

文章 0 评论 0

我怀念的。

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文