azure

Any command on Fluent.Azure Results in “Method not found”

空扰寡人 提交于 2021-02-11 13:41:24
问题 Any command on Fluent.Azure results in a "Method not found" exception. System.MissingMethodException: Method not found: 'Void Microsoft.Rest.TokenCredentials..ctor(Microsoft.Rest.ITokenProvider, System.String, System.String)'. Looking it up online and there isn't a constructor like that: https://docs.microsoft.com/en-us/dotnet/api/microsoft.rest.tokencredentials.-ctor?view=azure-dotnet I am creating the azure object like so, and it seems to be working. var azure = Microsoft.Azure.Management

Update User info using Graph API

旧街凉风 提交于 2021-02-11 13:40:57
问题 This is a question about updating a signed-in User's profile info using Graph API I am using the tutorial at (https://docs.microsoft.com/en-us/graph/tutorials/javascript). It lets you: sign in get signed in user info get calendar events create calendar events It works perfectly and looks great. However, I'm having a hard time updating the user info. I stripped the sample code down to just getting the user info because I'm not dealing with calendar events. Getting an access token, creating a

Update User info using Graph API

丶灬走出姿态 提交于 2021-02-11 13:40:41
问题 This is a question about updating a signed-in User's profile info using Graph API I am using the tutorial at (https://docs.microsoft.com/en-us/graph/tutorials/javascript). It lets you: sign in get signed in user info get calendar events create calendar events It works perfectly and looks great. However, I'm having a hard time updating the user info. I stripped the sample code down to just getting the user info because I'm not dealing with calendar events. Getting an access token, creating a

Error : Format of the initialization string does not conform to specification starting at index 0. when trying to invoke the function app

血红的双手。 提交于 2021-02-11 13:38:47
问题 I am testing my deployed Azure function and getting the following error. My function runs locally connecting to Azure database but fails when its deployed and run. I have configured the application settings to read the secret url to the connection string. This is how my connectionstring looks like Server=tcp:ranjitazuredb.database.windows.net,1433;Initial Catalog=Srl;Persist Security Info=False;User ID=usr;Password=pwd;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False

IDP initiated SSO fails with OKTA as an IDP in Azure

怎甘沉沦 提交于 2021-02-11 13:37:18
问题 We have configured OKTA as an IDP in Azure AD. While testing the IDP(OKTA) authentication flow, it throws error. Configured Okta & Azure AD using below microsoft link as reference. https://docs.microsoft.com/en-us/azure/active-directory/b2b/direct-federation What we did so far? Registered company "example.com" in OKTA. Created a custom SAML app in OKTA to export the OKTA IDP metadata Configured the app SSO settings as above reference link Imported OKTA metadata as external IDP in AzureAD

AzureAD IDP Initiated SAML always return nameid-format:persistent instead of nameid-format:emailAddress

家住魔仙堡 提交于 2021-02-11 13:34:42
问题 I'm developing SSO using SAML and my IdP is Azure. I'm having problem with IDP Initiated flow. In SAML Response I always get this NameID: <NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"> bMFy2VsLxPyxxxxxx..... </NameID> This is what I'm expected: <NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"> user-email-address@foo.bar </NameID> I always get nameid-format:persistent instead of nameid-format:emailAddress . Although I have set "name identifier

How do I get instance id/name from public ip address of VM in azure via python sdk

情到浓时终转凉″ 提交于 2021-02-11 13:32:03
问题 def get_instance_id_from_pip(self, pip): subscription_id="69ff3a41-a66a-4d31-8c7d-9a1ef44595c3" compute_client = ComputeManagementClient(self.credentials, subscription_id) network_client = NetworkManagementClient(self.credentials, subscription_id) print("Get all public IP") for public_ip in network_client.public_ip_addresses.list_all(): if public_ip.ip_address == pip: print(public_ip) # Get id pip_id= public_ip.id.split('/') print("pip id : {}".format(pip_id)) rg_from_pip = pip_id[4].lower()

How do I get instance id/name from public ip address of VM in azure via python sdk

天涯浪子 提交于 2021-02-11 13:30:50
问题 def get_instance_id_from_pip(self, pip): subscription_id="69ff3a41-a66a-4d31-8c7d-9a1ef44595c3" compute_client = ComputeManagementClient(self.credentials, subscription_id) network_client = NetworkManagementClient(self.credentials, subscription_id) print("Get all public IP") for public_ip in network_client.public_ip_addresses.list_all(): if public_ip.ip_address == pip: print(public_ip) # Get id pip_id= public_ip.id.split('/') print("pip id : {}".format(pip_id)) rg_from_pip = pip_id[4].lower()

How to copy files from one container to another containers fits equally in all dest containers according to size using powershell

拈花ヽ惹草 提交于 2021-02-11 13:28:59
问题 I have one container in blob of storage account in azure contains different folder having files of different sizes. In other side, in same storage account, I have 10 different containers. I have to copy these files from source container to destination 10 containers but the condition is the files should be equally distributed to all the containers. I have tried below so far $key = "abcdxyz" # declaring the azure context $context = New-AzStorageContext -StorageAccountName abcd

How to copy files from one container to another containers fits equally in all dest containers according to size using powershell

≡放荡痞女 提交于 2021-02-11 13:28:56
问题 I have one container in blob of storage account in azure contains different folder having files of different sizes. In other side, in same storage account, I have 10 different containers. I have to copy these files from source container to destination 10 containers but the condition is the files should be equally distributed to all the containers. I have tried below so far $key = "abcdxyz" # declaring the azure context $context = New-AzStorageContext -StorageAccountName abcd