azure-automation

Get-AzureBlobContent throwing error when run from Azure Automation account

谁说我不能喝 提交于 2019-12-11 11:59:23
问题 I am receiving a failure while trying to download blob (JSON file) from Azure storage account from my Azure Automation account. It looks like an authorization issue. This works on my local laptop, but does not work on Azure Automation Account. Does not work even if I make the container "public" I have assigned OWNER privileges for the Automation accounts's service principle on the Resource Group (Automation account + Storage account stay in this RG) and specifically on the Storage Account as

Create an automation job to execute azure runbook using REST API

試著忘記壹切 提交于 2019-12-10 14:01:25
问题 In this link (Create azure automation account using REST api from java) I'd asked about how to create an automation account in order to create runbook. Now, that I've created an automation account and also a runbook which is published, I want to execute(start) the runbook. In order to do so I am following this link (https://msdn.microsoft.com/en-us/library/azure/mt163849.aspx) but I am getting an error: Server Error</h1></div> <div id="content"> <div class="content-container"><fieldset> <h2

Set-AzureRmContext error when executed within an Azure Automation Runbook

[亡魂溺海] 提交于 2019-12-10 03:51:11
问题 Update: Seems like someone else had the same issue and reported it. I am facing an issue with a simple PowerShell script when invoking it from an Azure Automation Runbook. The same piece of code works flawless when running it locally . I have added a Service Principal in an Azure Active Directory (hosted in Azure German Cloud) with password credential and grant it contributor access to a subscription (also hosted in Azure German Cloud). The Azure Automation service is hosted in North Europe

How to use Service Fabric Powershell cmdlets in an Azure Automation runbook

安稳与你 提交于 2019-12-08 12:50:50
问题 I want to use an azure automation account to connect to a service fabric cluster and run a health check. I'm struggling with establishing a connection to the cluster because the service fabric sdk is not present. Is there a way to use the service fabric powershell cmdlets in an azure automation runbook? 回答1: You could import AzureRM.ServiceFabric 0.2.4 module to Azure automation account. Open the link https://www.powershellgallery.com/packages/AzureRM.ServiceFabric/0.2.4 and click Deploy to

Create azure automation account using REST api from java

十年热恋 提交于 2019-12-06 14:52:52
问题 I am trying to create an automation account in Azure using REST API from java. Right now I am able to list images, create service using REST API from java but when I am trying to create an automation account I get the error: Forbidden <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Code>ForbiddenError</Code> <Message>The server failed to authenticate the request. Verify that the certificate is valid and is associated with this

How to AcquireToken with PromptBehavior in the latest Microsoft.IdentityModel.Clients.ActiveDirectory

南笙酒味 提交于 2019-12-05 10:05:35
In the older versions of Microsoft.IdentityModel.Clients.ActiveDirectory there is AcquireToken with PromptBehavior parameter var context = new AuthenticationContext("https://login.windows.net/tenantId"); var result = context.AcquireToken(clientId: clientIdValue, redirectUri: new Uri("http://localhost/Appcycle"), resource: "https://management.core.windows.net/", promptBehavior: PromptBehavior.Auto); In Microsoft.IdentityModel.Clients.ActiveDirectory v3.10 there is only AcquireTokenAsync var authParam = new PlatformParameters(PromptBehavior.Auto,false); var result = context.AcquireTokenAsync(

Set-AzureRmContext error when executed within an Azure Automation Runbook

喜你入骨 提交于 2019-12-05 05:28:05
Update: Seems like someone else had the same issue and reported it. I am facing an issue with a simple PowerShell script when invoking it from an Azure Automation Runbook. The same piece of code works flawless when running it locally . I have added a Service Principal in an Azure Active Directory (hosted in Azure German Cloud) with password credential and grant it contributor access to a subscription (also hosted in Azure German Cloud). The Azure Automation service is hosted in North Europe since it's currently not available in the Azure German Cloud. All I try to do is to login to my

Authenticating to Azure Resource Manager with a Service Principal in Azure Automation

半腔热情 提交于 2019-12-02 21:28:01
问题 So there's now a documented workaround to use ARM in Azure Automation, and it's also well documented how to authenticate to ARM using a Service Principal. But even after following these steps I still cannot get the combination of those to work. Running my runbook in Automation with a Service Principal always gives the following error: New-AzureTag : Your Azure credentials have not been set up or have expired, please run Add-AzureAccount to set up your Azure credentials. At Add

Does Azure Analysis Services support service principal signon to SQL Azure

匆匆过客 提交于 2019-12-01 09:10:44
I have an Azure Analysis Services model reading data out of SQL Azure with this connection string: Data Source=MySQLAzureDB.database.windows.net; Initial Catalog=MyDB;Persist Security Info=true; User ID=MyUser;Password=MyPWD; Encrypt=True;Authentication=Sql Password This uses a SQL User to connect to SQL Azure. This means I need to define user/password in two seperate places: in SQL Azure as well as in this connection string. I would like to use a service principal instead rather than a SQL user. Has anyone done this before? I've tried using different connection types but this is the typical

Azure AD authentication without app registration

一笑奈何 提交于 2019-12-01 01:57:18
I want to access Azure Directories and Subscriptions using my web app hosted on my server but i do not want to register my app in active directory because i do not have permissions to register my app in active directory I want to authenticate users from out of my active directory too. for example following sites let you authenticate any Azure AD user. https://resources.azure.com/ https://azureiotsuite.com Please help me to where to start. i have tried Azure AD authentication but it asks you to register your app in Azure AD Apps. One option is to register your app at https://apps.dev.microsoft