小编4c7*_*b41的帖子

如何将OMS用于Azure Web应用程序

我想探索Azure webApps的OMS(特别是Service Map),但它显示以下错误:"为了将服务器安装到服务映射,需要在由OMS监视的服务器上安装Microsoft Dependency Agent.可以被找寻到".

Alos,微软声称"监控服务"用于查看多个订阅,资源组等的数据.但是当我查看指标时,它需要"资源名称".虽然评论说'选择或所有资源',但它没有提供选择全部的选项.

monitoring azure azure-log-analytics

8
推荐指数
1
解决办法
691
查看次数

Azure有像AWS的CloudFormation一样的IaC工具吗?

我将 GCP 与 AWS 进行了比较,两者的 IaC 工具都是“Deploy Manager”和“CloudFormation”。蔚蓝呢?Azure有这样的工具吗(为了与两个最大的公共云提供商竞争)?

azure amazon-web-services google-cloud-platform

8
推荐指数
2
解决办法
1万
查看次数

Terraform - 如何将环境变量传递给 terraform 中的子模块

我的解决方案:

\n\n
\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 main.tf\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 modules\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 cluster1\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 cluster1.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 main.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 output.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 variables.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 cluster2\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 cluster.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 main.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 output.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 variables.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 trafficmanager\n\xe2\x94\x82\xc2\xa0\xc2\xa0     \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 main.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0     \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 output.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0     \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 trafficmanager.tf\n\xe2\x94\x82\xc2\xa0\xc2\xa0     \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 variables.tf\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 README.md\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 variables.tf\n
Run Code Online (Sandbox Code Playgroud)\n\n

为了让我创建 Azure k8s 集群,每个集群都需要服务主体 id 和密钥。我非常有兴趣看到一些有关如何将包含服务主体和秘密的环境变量传递到每个集群的示例。

\n

azure kubernetes terraform azure-aks

7
推荐指数
2
解决办法
1万
查看次数

发行人更改后,Kubernetes证书经理不更新证书

我使用cert-manager 0.5.2在我们的Kubernetes集群上管理Let的加密证书.

我使用的是Let's Encrypt暂存环境,但现在已经开始使用他们的生产证书了.问题是我的应用程序没有更新到新的有效证书.

在更新发行者,证书和入口资源时,我必须搞砸了一些东西,但我看不清楚是什么.我还重新安装了NGINX入口控制器和证书管理器,并重新创建了我的应用程序,但我仍然获得旧证书.我接下来该怎么办?

描述letsencrypt集群发行者:

Name:         letsencrypt
Namespace:
Labels:       <none>
Annotations:  kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"certmanager.k8s.io/v1alpha1","kind":"ClusterIssuer","metadata":{"annotations":{},"name":"letsencrypt","namespace":""},"spec":{"acme":{"e...
API Version:  certmanager.k8s.io/v1alpha1
Kind:         ClusterIssuer
Metadata:
  Cluster Name:
  Creation Timestamp:  2019-01-04T09:27:49Z
  Generation:          0
  Resource Version:    130088
  Self Link:           /apis/certmanager.k8s.io/v1alpha1/letsencrypt
  UID:                 00f0ea0f-1003-11e9-997f-ssh3b4bcc625
Spec:
  Acme:
    Email:  administrator@domain.com
    Http 01:
    Private Key Secret Ref:
      Key:
      Name:  letsencrypt
    Server:  https://acme-v02.api.letsencrypt.org/directory
Status:
  Acme:
    Uri:  https://acme-v02.api.letsencrypt.org/acme/acct/48899673
  Conditions:
    Last Transition Time:  2019-01-04T09:28:33Z
    Message:               The ACME account was registered with the ACME server
    Reason:                ACMEAccountRegistered
    Status:                True
    Type:                  Ready
Events:                    <none> …
Run Code Online (Sandbox Code Playgroud)

azure kubernetes azure-kubernetes azure-aks cert-manager

7
推荐指数
1
解决办法
1448
查看次数

如何从 Azure Pipelines 下载构建工件?

我在我的公共 Github 存储库的 Azure Pipeline 中成功创建了构建工件:

  - task: PublishBuildArtifacts@1
    inputs:
      pathtoPublish: '$(Build.ArtifactStagingDirectory)'
      artifactName: drop
Run Code Online (Sandbox Code Playgroud)

但是在 CI 构建之后,我想将这个工件下载到我的笔记本电脑并检查它。我所能找到的就是如何进行手动 REST API 调用,我需要知道我的内部版本号和工件名称。

是否无法下载从 Azure Pipelines Web 界面注册的工件?

azure azure-devops azure-pipelines

7
推荐指数
1
解决办法
5993
查看次数

未找到包 Az

$ Get-InstalledModule -Name Az -AllVersions

Version    Name                                Repository           Description
-------    ----                                ----------           -----------
0.5.0      Az                                  PSGallery            Azure Resource Manager Module. Cmdlets to manage...
Run Code Online (Sandbox Code Playgroud)

上面的块显示安装了 Az .. 但下面的块另有说明:

$ Update-Module -Name Az
WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'Az'. Try
Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2089 char:20
+ ...           $sid = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], …
Run Code Online (Sandbox Code Playgroud)

powershell azure azure-powershell

7
推荐指数
1
解决办法
7232
查看次数

在哪里可以从 Azure 门户找到服务主体 GUID

我需要创建一个服务主体并通过 SDK 为其分配一个新角色Python我目前正在执行此stackoverflow 问题中列出的步骤。

我目前正在进行角色分配,但我陷入了“我需要输入 a ”的步骤principal_id。例如,这里根据需要创建一个新的角色分配。principal id我在门户中哪里可以找到这项服务Azure?是在门户-> Active Directory -> 应用程序注册-> 我的应用程序下吗appIdobjectIdAzure

azure azure-active-directory azureportal azure-sdk-python

7
推荐指数
1
解决办法
1万
查看次数

如何使用Luigi处理输出

我正在努力了解luigi是如何工作的,我得到了这个想法,但实际实现有点困难;)这就是我所拥有的:

class MyTask(luigi.Task):

    x = luigi.IntParameter()

    def requires(self):
        return OtherTask(self.x)

    def run(self):
        print(self.x)

class OtherTask(luigi.Task):

    x = luigi.IntParameter()

    def run(self):
        y = self.x + 1
        print(y)
Run Code Online (Sandbox Code Playgroud)

这失败了RuntimeError: Unfulfilled dependency at run time: OtherTask_3_5862334ee2.我想我需要生成输出def output(self):来解决这个问题\功能.我无法理解如何在不写入文件的情况下生成合理的输出,例如:

def output(self):
    return luigi.LocalTarget('words.txt')

def run(self):

    words = [
            'apple',
            'banana',
            'grapefruit'
            ]

    with self.output().open('w') as f:
        for word in words:
            f.write('{word}\n'.format(word=word))
Run Code Online (Sandbox Code Playgroud)

我试过阅读文档,但我根本无法理解输出背后的概念.如果我只需要输出到屏幕怎么办?如果我需要将对象输出到另一个任务怎么办?谢谢!

python luigi

6
推荐指数
1
解决办法
2380
查看次数

Azure Active Directory 的 ARM 模板

如果我想为 Azure Active Directory 创建 ARM 模板,资源下的类型应该是什么?

是否有任何资源可以通过 ARM 模板在 Azure Active Directory 中添加用户/组/应用程序功能?

azure azure-active-directory azure-rm-template azure-template

6
推荐指数
2
解决办法
4210
查看次数

Terraform azurerm_virtual_machine_extension

我正在使用azurerm_virtual_machine_extensionazure 引导一些虚拟机。

我发现的所有示例都使用类似于以下内容的内容:

settings = <<SETTINGS
    {   
    "fileUris": [ "https://my.bootstrapscript.com/script.sh}" ],
    "commandToExecute": "bash script.sh"
    }
SETTINGS
Run Code Online (Sandbox Code Playgroud)

虽然这有效,但我的问题是我必须公开托管script以与fileUris. 设置中是否有允许我从 terraform 文件夹发送本地文件内容的选项?

就像是:

settings = <<SETTINGS
    {   
    "file": [ ${file("./script.txt")} ],
    "commandToExecute": "bash script.sh"
    }
SETTINGS
Run Code Online (Sandbox Code Playgroud)

谢谢。

bootstrapping virtual-machine azure terraform terraform-provider-azure

6
推荐指数
1
解决办法
7438
查看次数